[Asterisk-Users] /var/spool/asterisk/outgoing/ prematurely hanging up

Tom Engleward engleward at yahoo.com
Tue May 2 18:01:17 MST 2006


> I have a PSTN termination provider "foo" which will
> accept standard U.S. calls in the form 1<10 digit
> ph#>.
> I have an outbound route named "foo", with dial
> pattern "5|.", with the only entry in trunk sequence
> being "IAX2/foo".
> 
> I have an X-lite local extension, on which I can
> dial
> 51<10 digit ph#>, and asterisk will call out over
> foo
> and the phone at <10 digit ph#> will ring. This
> rules
> out a lot of possible problems.
> 
> extensions.conf includes this:
> [outgoingtest]
> exten => s,1,Playback(custom/testmsg)
> exten => s,2,Wait(1)
> exten => s,3,Hangup
> 
> And yes, asterisk has been restarted since the last
> time any config files were modified.
> 
> I have a test message at
> /var/lib/asterisk/sounds/custom/testmsg.gsm
> 
> If I make the file "1.call" containing:
> Channel: IAX2/foo
> MaxRetries: 1
> RetryTime: 5
> WaitTime: 10
> Context: outgoingtest
> Extension: 1<10 digit ph#>
> Priority: 1
> 
> and copy it to /var/spool/asterisk/outgoing/
> then the phone doesn't ring, but this shows up on
> the
> asterisk console:
> -- Attempting call on IAX2/foo for 1<10 digit
> ph#>@outgoingtest:1 (Retry 1)
> -- Hungup 'IAX2/foo-7'
> -- Attempting call on IAX2/foo for 1<10 digit
> ph#>@outgoingtest:1 (Retry 2)
> -- Hungup 'IAX2/foo-8'
> 
> The "foo-7" and "foo-8" on the console are different
> (numbers anywhere from 1 to 9) every time I try
> copying the file to outgoing.
> 
> I tried using extension 51<10 digit ph#> instead of
> 1<10 digit ph#> in 1.call, but that didn't work
> either.
> 
> Why is it failing?


Here's an update. With iax2 debugging enabled, when I
copy 1.call to /var/spool/asterisk/outgoing/ here's
what I get on the console:

    -- Attempting call on IAX2/foo for 1<10 digit
ph#>@outgoingtest:1 (Retry 1)
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type:
IAX     Subclass: NEW
    Timestamp: 00001ms  SCall: 00001  DCall: 00000
[<PSTN provider's IP>:4569]
    VERSION         : 2
    CALLED NUMBER   : s
    CODEC_PREFS     : (ulaw|alaw|gsm)
    CALLING PRESNTN : 67
    CALLING TYPEOFN : 0
    CALLING TRANSIT : 0
    LANGUAGE        : en
    USERNAME        : <my username>
    FORMAT          : 64
    CAPABILITY      : 2097151
    ADSICPE         : 0
    DATE TIME       : 2006-05-02  13:39:26

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type:
IAX     Subclass: AUTHREQ
    Timestamp: 00016ms  SCall: 00330  DCall: 00001
[<PSTN provider's IP>:4569]
    AUTHMETHODS     : 3
    CHALLENGE       : <code>
    USERNAME        : <my username>

 Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type:
IAX     Subclass: AUTHREP
    Timestamp: 00091ms  SCall: 00001  DCall: 00330
[<PSTN provider's IP>:4569]
    MD5 RESULT      : c8cd34a533731f2ad50121395e0fe2a1

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type:
IAX     Subclass: REJECT
    Timestamp: 00105ms  SCall: 00330  DCall: 00001
[<PSTN provider's IP>:4569]
    CAUSE           : No such context/extension
    CAUSE CODE      : 3

 Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type:
IAX     Subclass: ACK
    Timestamp: 00105ms  SCall: 00001  DCall: 00330
[<PSTN provider's IP>:4569]
    -- Hungup 'IAX2/foo-1'


So far as I can tell, I'm properly following the
directions listed at
http://www.voip-info.org/wiki/index.php?page=Asterisk+auto-dial+out
So, based on the above, can anybody identify what's
going wrong? Asterisk is saying "No such
context/extension", but clearly there is such a
context, as shown in my files above.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the asterisk-users mailing list