[asterisk-dev] OK, IAX2 - something is major wack - 1.2.3

Edward Eastman ed at dm3.co.uk
Sat Jan 28 15:13:43 MST 2006


This is a users question, but here's a clue:

  -= Info about application 'Goto' =-

[Synopsis]
Jump to a particular priority, extension, or context

[Description]
  Goto([[context|]extension|]priority): This application will cause the
calling channel to continue dialplan execution at the specified priority.
If no specific extension, or extension and context, are specified, then this
application will jump to the specified priority of the current extension.
  If the attempt to jump to another location in the dialplan is not
successful,
then the channel will continue at the next priority of the current
extension.



________________________________________
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of mezzmor at aim.com
Sent: 28 January 2006 21:35
To: asterisk-dev at lists.digium.com
Subject: [asterisk-dev] OK, IAX2 - something is major wack - 1.2.3

3 asterisk servers in 3 different locations
 
A
 
extensions.conf
 
[outgoing-iax]
exten => _402XXX,1,Dial,IAX2/ast-helpdesk at 10.11.1.1/${EXTEN}
exten => _1NXXNXXXXXX,1,Dial,IAX2/ast-helpdesk at 10.11.1.1/${EXTEN} 
exten => _011.,2,Dial,IAX2/ast-helpdesk at 10.11.1.1/${EXTEN} 
 
 
B
 
extensions.conf
[iax-inbound-from-stl]
 
exten => _101XXX,1,Goto(iax-to-ast-helpdesk,${EXTEN})
exten => _1NXXNXXXXXX,1,SetCallerID(3147860221)
exten => _1NXXNXXXXXX,2,Goto(iax-to-pstn,${EXTEN})
exten => _011.,1,SetCallerID(3147860221)
exten => _011.,2,Goto(iax-to-pstn,${EXTEN})
[iax-outbound-to-stl]
 
exten => _402XXX,1,Dial(IAX2/aststl-srv01,${EXTEN})
[iax-inbound-from-ast-helpdesk]
exten => _402XXX,1,Goto(iax-outbound-to-stl,${EXTEN})
exten => _1NXXNXXXXXX,1,SetCallerID(4079022643)
exten => _1NXXNXXXXXX,2,Goto(iax-to-pstn,${EXTEN})
exten => _011.,1,SetCallerID(4079022643)
exten => _011.,2,Goto(iax-to-pstn,${EXTEN})
[iax-to-ast-helpdesk]
 
exten => _101XXX,1,Dial(IAX2/ast-helpdesk,${EXTEN})
[iax-to-pstn]
 
exten => _1NXXNXXXXXX,1,Dial,IAX2/XXXX at voipjet/${EXTEN} 
exten => _011.,1,1,Dial,IAX2/XXXX at voipjet/${EXTEN}
 
C
 
[outgoing-iax]
 
exten => _1NXXNXXXXXX,1,Dial(IAX2/aststl-srv01 at 10.11.1.1/${EXTEN})
exten => _1XXXXX,1,Dial(IAX2/aststl-srv01 at 10.11.1.1/${EXTEN})
 
[incoming-iax]
 
; Receptionist
exten => 402100,1,Dial(SIP/402100,20,tr)
exten => 402100,2,Voicemail,u402100 at 402
exten => 402100,102,Voicemail,b402100 at 402
; Steve
exten => 402101,1,Dial(SIP/402101,20,tr)
exten => 402101,2,Voicemail,u402101 at 402
exten => 402101,102,Voicemail,b402101 at 402
; Jeff
exten => 402102,1,Dial(SIP/402102,20,tr)
exten => 402102,2,Voicemail,u402102 at 402
exten => 402102,102,Voicemail,b402102 at 402
; Kari
exten => 402103,1,Dial(SIP/402103,20,tr)
exten => 402103,2,Voicemail,u402103 at 402
exten => 402103,102,Voicemail,b402103 at 402
 
I try to dial an outbound number, my cellphone from location a.
 
Check out what I get at the CLI on server a:
 
-- Executing Dial("SIP/101200-53a6",
"IAX2/ast-helpdesk at 10.11.1.1/13214380707") in new stack
    -- Called ast-helpdesk at 10.11.1.1/13214380707
Jan 28 16:10:30 NOTICE[2070]: chan_iax2.c:2821 auto_congest: Auto-congesting
call due to slow response
    -- IAX2/10.11.1.1:4569-3 is circuit-busy
    -- Hungup 'IAX2/10.11.1.1:4569-3'
  == Everyone is busy/congested at this time (1:0/1/0)
 
Now, Check This Out, from server B:
 
 -- Accepting UNAUTHENTICATED call from 192.168.14.25:
       > requested format = ulaw,
       > requested prefs = (ulaw),
       > actual format = ulaw,
       > host prefs = (ulaw),
       > priority = mine
    -- Executing SetCallerID("IAX2/ast-helpdesk-2", "4079022643") in new
stack
    -- Executing Goto("IAX2/ast-helpdesk-2", "iax-to-pstn|13214380707") in
new stack
    -- Goto (iax-inbound-from-ast-helpdesk,iax-to-pstn,2147483647)
Jan 28 16:09:10 WARNING[13641]: pbx.c:2345 __ast_pbx_run: Channel
'IAX2/ast-helpdesk-2' sent into invalid extension 'iax-to-pstn' in context
'iax-inbound-from-ast-helpdesk', but no invalid handler
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
Jan 28 16:09:10 NOTICE[13288]: chan_iax2.c:1597 iax2_destroy: Avoiding IAX
destroy deadlock
    -- Hungup 'IAX2/ast-helpdesk-2'
 
Anyone notice anything? The call gets to server B. Sets the caller ID, goes
to the correct context, with the correct extension.
 
Why is the phone number I am dialing getting munched to another telephone
number?!?!?!?!
 
I really was scratching my head until I thought, weird, I wonder if this
number exists? I dial it and hear somebody saying they aren't available,
press 5 to leave a message, and Allison's voice answered "Please leave a
message after the tone". 
 
Does anyone have any ideas?
 
________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading
spam and email virus protection.




More information about the asterisk-dev mailing list