Peter J Dean
2006-Jun-25 21:13 UTC
[Asterisk-Users] [ISSUE] Unable to divert external calls.
I have a issue trying to understand why Asterisk-PBX, when a SNOM (320 or 360) successfully redirects/diverts a call when it is a local extension, but fails when you enter external number. Both the local extension dial and external extension dial are within the same context [from-sip] and both phones are capable of making external calls. I have looked at the standard sites, but not finding the information I need to understand the issue and create a work around. Your assistance would be greatly appreciated. Asterisk v1.2.9.1 Linux v2.6.15-1.1830_FC4smp (FC4) SNOM v6.2.1 <---SNIP---> [from-sip] exten => _[2345]XX, 1,Macro(dial_localextension, ${EXTEN}) exten => _0XXXXXXXXX/_[2345]XX,1,Macro(outbound-calling,${EXTEN}) <----------> Successful call diversion on the SNOM phone to a local extension. ----------------------------------------------------------------- 2006-06-26 13:34:22 VERBOSE[18902] logger.c: -- Executing NoOp ("SIP/225-cdf5", ""Debug [from-sip]: Caller 225 is calling 229"") in new stack 2006-06-26 13:34:22 VERBOSE[18902] logger.c: -- Executing Dial ("SIP/225-cdf5", "SIP/229|15") in new stack 2006-06-26 13:34:22 VERBOSE[18902] logger.c: -- Called 229 2006-06-26 13:34:22 VERBOSE[31118] logger.c: -- Got SIP response 302 "Moved Temporarily" back from 10.255.6.142 2006-06-26 13:34:22 VERBOSE[18902] logger.c: -- Now forwarding SIP/225-cdf5 to 'SIP/227@sip.bisabicara.swsa.com.au' (thanks to SIP/ 229-f3ed) 2006-06-26 13:34:22 VERBOSE[31118] logger.c: -- Got SIP response 482 "Loop Detected" back from 10.255.6.2 2006-06-26 13:34:22 VERBOSE[18902] logger.c: -- Now forwarding SIP/225-cdf5 to 'Local/227@from-sip' (thanks to SIP/ sip.bisabicara.swsa.com.au-7b9c) 2006-06-26 13:34:22 VERBOSE[18905] logger.c: -- Executing NoOp ("Local/227@from-sip-1680,2", ""Debug [from-sip]: Caller 225 is calling 227"") in new stack 2006-06-26 13:34:22 VERBOSE[18905] logger.c: -- Executing Dial ("Local/227@from-sip-1680,2", "SIP/227|15") in new stack 2006-06-26 13:34:22 VERBOSE[18905] logger.c: -- Called 227 2006-06-26 13:34:22 VERBOSE[18905] logger.c: -- SIP/227-c3f7 is ringing 2006-06-26 13:34:22 VERBOSE[18902] logger.c: -- Local/227@from- sip-1680,1 is ringing 2006-06-26 13:34:23 VERBOSE[18905] logger.c: -- SIP/227-c3f7 is ringing 2006-06-26 13:34:24 VERBOSE[18905] logger.c: -- SIP/227-c3f7 is ringing 2006-06-26 13:34:24 VERBOSE[18905] logger.c: == Spawn extension (from-sip, 227, 17) exited non-zero on 'Local/227@from-sip-1680,2' 2006-06-26 13:34:24 VERBOSE[18902] logger.c: == Spawn extension (from-sip, 229, 17) exited non-zero on 'SIP/225-cdf5' Unsuccessful call diversion on the SNOM phone to an external mobile. -------------------------------------------------------------------- 2006-06-26 12:55:42 VERBOSE[16759] logger.c: -- Executing NoOp ("SIP/225-b434", ""Debug [from-sip]: Caller 225 is calling 229"") in new stack 2006-06-26 12:55:42 VERBOSE[16759] logger.c: -- Executing Dial ("SIP/225-b434", "SIP/229|15") in new stack 2006-06-26 12:55:42 VERBOSE[16759] logger.c: -- Called 229 2006-06-26 12:55:43 VERBOSE[16759] logger.c: -- SIP/229-a85e is ringing 2006-06-26 12:55:43 VERBOSE[16759] logger.c: -- SIP/229-a85e is ringing 2006-06-26 12:55:44 VERBOSE[31118] logger.c: -- Got SIP response 302 "Moved Temporarily" back from 10.255.6.133 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Now forwarding SIP/225-b434 to 'SIP/0412785041@sip.bisabicara.swsa.com.au' (thanks to SIP/229-a85e) 2006-06-26 12:55:44 VERBOSE[31118] logger.c: -- Got SIP response 482 "Loop Detected" back from 10.255.6.2 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Now forwarding SIP/225-b434 to 'Local/0412785041@from-sip' (thanks to SIP/ sip.bisabicara.swsa.com.au-506a) <---> It is at this point here where I would expect it to match a dial plan exten => _0XXXXXXXXX/_[2345]XX,1,Macro(outbound-calling,${EXTEN}), just like it does for the extension number. <---> 2006-06-26 12:55:44 VERBOSE[16759] logger.c: == Everyone is busy/ congested at this time (1:0/0/1) 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Executing Goto ("SIP/225-b434", "CHANUNAVAIL") in new stack 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Goto (from-sip, 229,226) 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Executing Goto ("SIP/225-b434", "NOANSWER") in new stack 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Goto (from-sip, 229,19) 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Executing MailboxExists("SIP/225-b434", "229@swsa") in new stack 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Executing Goto ("SIP/225-b434", "novoicemail") in new stack 2006-06-26 12:55:44 VERBOSE[16759] logger.c: -- Goto (from-sip, 229,229) .... <--- No voicemail handling ---> ....
Steve Davies
2006-Jun-27 06:19 UTC
[Asterisk-Users] [ISSUE] Unable to divert external calls.
On 6/26/06, Peter J Dean <peter.john.dean@gmail.com> wrote:> I have a issue trying to understand why Asterisk-PBX, when a SNOM > (320 or 360) successfully redirects/diverts a call when it is a local > extension, but fails when you enter external number. > Both the local extension dial and external extension dial are within > the same context [from-sip] and both phones are capable of making > external calls. >There is probably some difference between the "302 Moved" SIP messages being sent back by the snom in each case. Your logs seem to imply that: For the extension, it is asking for nnn@pabx. For the external number is is asking for SIP/nnnnnnnn@pabx I am not sure why this is, but you /are/ running a pre-release firmware version, so it may be a known issue? Steve
Peter J Dean
2006-Jun-28 14:36 UTC
[Asterisk-Users] [WORKAROUND] Unable to divert external calls.
I have checked with SNOM, they have came to the same conclusion I did, and that is Asterisk is not matching the external number to the dial plan, and thus not making the external call. I have taken a different approach, and now looking at the Asterisk- PBX to manage the call diversion. A little bit of work to change the dial plans around and removes the dependancy from the VoIP phone. But still it would be nice if it could would from the VoIP phone. On 27/06/2006, at 11:19 PM, Steve Davies wrote:> On 6/26/06, Peter J Dean <peter.john.dean@gmail.com> wrote: >> I have a issue trying to understand why Asterisk-PBX, when a SNOM >> (320 or 360) successfully redirects/diverts a call when it is a local >> extension, but fails when you enter external number. >> Both the local extension dial and external extension dial are within >> the same context [from-sip] and both phones are capable of making >> external calls. >> > > There is probably some difference between the "302 Moved" SIP messages > being sent back by the snom in each case. > > Your logs seem to imply that: > For the extension, it is asking for nnn@pabx. > For the external number is is asking for SIP/nnnnnnnn@pabx > > I am not sure why this is, but you /are/ running a pre-release > firmware version, so it may be a known issue? > > Steve > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users