[Asterisk-Users] /var/spool/asterisk/outgoing/ failure: the plot thickens

Tom Engleward engleward at yahoo.com
Wed May 3 11:33:02 MST 2006


Please please, if anybody has experience using
/var/spool/asterisk/outgoing/ with SIP and IAX2
trunks, please explain what's going wrong here.
If I make the file "2.call" containing:
Channel: SIP/sipphone
MaxRetries: 1
RetryTime: 5
WaitTime: 10
Context: outgoingtest
Extension: 17475555555
Priority: 1
and copy it to /var/spool/asterisk/outgoing/
it works fine. The sipphone 17475555555 answers,
asterisk plays my message at custom/testmsg (see my
outgoingtest context definition below), and hangs up.
(The 555... numbers here are just examples of course.)
I can also call 817475555555 manually from a local
extension on asterisk with no problem (my dial rule
for SIP/sipphone outgoing is "8|.").
As I noted in a previous message (quoted below), I can
also call 515555555555 (my dial rule for IAX2/foo
outgoing is "5|.") from a local extension on asterisk,
and the PSTN phone at 5555555555 will ring.
The above facts show that my SIP/sipphone and IAX2/foo
trunks, sipphone and foo outbound routes, and
extensions (including outgoingtest) are definitely all
configured correctly, and furthermore than my PSTN
termination provider is working correctly when it
receives outbound calls like 15555555555 from my
asterisk machine.

Yet if I make the file "1.call" containing:
Channel: IAX2/foo
MaxRetries: 1
RetryTime: 5
WaitTime: 10
Context: outgoingtest
Extension: 15555555555
Priority: 1
and copy it to /var/spool/asterisk/outgoing/
then asterisk fails and immediately hangs up, with the
following showing up on the asterisk console with iax2
debug enabled:
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

So, in this particular error message, WHO is claiming
that there's no such context/extension; is it
asterisk, or my PSTN provider? If it's asterisk, then
how is this so, since asterisk succeeds with an
identical call file using sipphone instead of foo? And
if it's my PSTN provider, then how is this so, since I
can manually call via a local asterisk extension the
very same PSTN phone number for which the call file is
failing, and the manual call succeeds?

Tom


My previous message on this topic:
> > 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