Hi all ,
i have in interesting issue here
i am attempting for forward a vitrual number to a cell phone by doing this
exten => 15555555555,1,NoOp()
same => n,Set(CALLERID(num)=${CALLERID(num)})
same => n,Dial(SIP/MyAccount/15554444444
The issue is i get no audio - wait for the catch
after much troubleshooting and analasys…(as it really does not seem to be a firewall issue ) i tried the following
exten => 15555555555,1,NoOp()
same => n,Playback(filename)
same => n,Set(CALLERID(num)=${CALLERID(num)})
same => n,Dial(SIP/MyAccount/15554444444
In this case caller hear the playback - then heard the ringing and then i had two way audio
What gives?
Thank you!
check for the directmedia/nat-settings of Your peer MyAccount.
This seems to bew a problem with native bridging which would not work when using a provider. If You issue a Playback like in the 2nd exampe, Asterisk answers the call and thus stays in the media-way no matter what the settings of directmedia and nat are.
Thank you - i will check that setting and report back
Appreciate the tip
i solved by doing canreinvite=no
asterisk stays in the path and audio is good.
thank you
The “canreinvite” option has changed. canreinvite=yes used to disable re-invites if you had NAT=yes. In 1.4, you need to set canreinvite=nonat to disable re-invites when NAT=yes. This is propably what you want. The settings are now: “yes”, “no”, “nonat”, “update”. Please consult sip.conf.sample for detailed information.
canreinvite= was renamed to directmedia= in Asterisk 1.6.2 to more accurately describe what this setting does. See also the closely related setting directrtpsetup.
Asterisk 1.8 added directmediapermit and directmediadeny to limit which peers can send direct media to each other.
voip-info.org/wiki/view/Aste … anreinvite
that is a really useful information - thank you for the details!