by david55 » Tue Mar 06, 2012 4:50 am
SIP lines are a commercial concept, which doesn't have very much physical significance.
If the SIP service provider allows it, and you don't use conflicting features, you can use "directmedia=yes" to have the media stream bypass Asterisk. This is actually the default.
You could also try using the Transfer application, rather than the second Dial. There is a good chance that your SIP service provider will not support this, and it is almost certain that they will not push a transfer back to the PSTN, as that would stop them blling for the call. If doing this, it is stronly advised not to Answer the call, as post answer redirections in Asterisk are flakey, particularly when they go wrong.