Mani Sridhar
2007-Apr-23 18:37 UTC
[asterisk-users] problem when using Dial(Local/extension@context)
hi folks, I use Dial(Local/extension@context) to make calls received on my DID number to ring a local extension. I notice that on 8 out of 10 calls, the audio is NOT working in the incoming direction (DID provider to asterisk). Local extension 2055 maps to SIP destination "homephone", and if i replace the Dial(Local/2055@local) with Dial(SIP/homephone), it works fine 100% of the time. any suggestions? thanks sridhar CLI> core show version Asterisk 1.4.1 built by root @ astpbx on a i686 running Linux on 2007-03-07 11:25:52 UTC extensions.conf ----------------------- [local] ; Incoming calls on DID number, call lands on the home phone exten => 845,1,Answer() exten => 845,n,Dial(Local/2055@local) exten => 2055,1,Dial(SIP/homephone,${RINGTIMEOUT}) exten => 2055,n,VoiceMail(2055@voicemail-context,su) exten => 2055,n,Hangup() exten => 2055,102,VoiceMail(2055@voicemail-context,sb) [level-zero] include => local CLI output with "core set verbose 5" --------------------------------------------------- -- Executing [845@level-zero:1] Answer("SIP/sip.didprovider.com-b7de3400", "") in new stack -- Executing [845@level-zero:2] Dial("SIP/sip.didprovider.com-b7de3400", "Local/2055@local") in new stack -- Called 2055@local -- Executing [2055@local:1] Dial("Local/2055@local-28da,2", "SIP/homephone|25") in new stack -- Called homephone -- SIP/homephone-08f4ed10 is ringing -- Local/2055@local-28da,1 is ringing -- Call on SIP/homephone-08f4ed10 left from hold -- SIP/homephone-08f4ed10 answered Local/2055@local-28da,2 -- Local/2055@local-28da,1 stopped sounds -- Local/2055@local-28da,1 answered SIP/sip.didprovider.com-b7de3400 -- Packet2Packet bridging SIP/sip.didprovider.com-b7de3400 and SIP/homephone-08f4ed10 == Spawn extension (local, 2055, 1) exited non-zero on 'Local/2055@local-28da,2' (at this point, i can hear the voice of the person at extension 2055, but she can't hear me. I give up eventually.) == Spawn extension (level-zero, 845, 2) exited non-zero on 'SIP/sip.didprovider.com-b7de3400' _________________________________________________________________ Get a FREE Web site, company branded e-mail and more from Microsoft Office Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
Mani Sridhar
2007-Apr-25 16:34 UTC
[asterisk-users] Re: problem when using Dial(Local/extension@context)
FYI, the problem is solved by using the /n at the end of the Dial command, ie. Dial(Local/extension@context/n) . thanks sridhar ***** hi folks, I use Dial(Local/extension at context) to make calls received on my DID number to ring a local extension. I notice that on 8 out of 10 calls, the audio is NOT working in the incoming direction (DID provider to asterisk). Local extension 2055 maps to SIP destination "homephone", and if i replace the Dial(Local/2055 at local) with Dial(SIP/homephone), it works fine 100% of the time. any suggestions? thanks sridhar CLI> core show version Asterisk 1.4.1 built by root @ astpbx on a i686 running Linux on 2007-03-07 11:25:52 UTC extensions.conf ----------------------- [local] ; Incoming calls on DID number, call lands on the home phone exten => 845,1,Answer() exten => 845,n,Dial(Local/2055 at local) exten => 2055,1,Dial(SIP/homephone,${RINGTIMEOUT}) exten => 2055,n,VoiceMail(2055 at voicemail-context,su) exten => 2055,n,Hangup() exten => 2055,102,VoiceMail(2055 at voicemail-context,sb) [level-zero] include => local CLI output with "core set verbose 5" --------------------------------------------------- -- Executing [845 at level-zero:1] Answer("SIP/sip.didprovider.com-b7de3400", "") in new stack -- Executing [845 at level-zero:2] Dial("SIP/sip.didprovider.com-b7de3400", "Local/2055 at local") in new stack -- Called 2055 at local -- Executing [2055 at local:1] Dial("Local/2055 at local-28da,2", "SIP/homephone|25") in new stack -- Called homephone -- SIP/homephone-08f4ed10 is ringing -- Local/2055 at local-28da,1 is ringing -- Call on SIP/homephone-08f4ed10 left from hold -- SIP/homephone-08f4ed10 answered Local/2055 at local-28da,2 -- Local/2055 at local-28da,1 stopped sounds -- Local/2055 at local-28da,1 answered SIP/sip.didprovider.com-b7de3400 -- Packet2Packet bridging SIP/sip.didprovider.com-b7de3400 and SIP/homephone-08f4ed10 == Spawn extension (local, 2055, 1) exited non-zero on 'Local/2055 at local-28da,2' (at this point, i can hear the voice of the person at extension 2055, but she can't hear me. I give up eventually.) == Spawn extension (level-zero, 845, 2) exited non-zero on 'SIP/sip.didprovider.com-b7de3400' _________________________________________________________________ Sign in and get updated on all the action from Formula One http://content.msn.co.in/Sports/FormulaOne/Default