[Asterisk-Users] PRI incoming call????
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Wed Dec 15 09:52:20 MST 2004
On December 15, 2004 11:13 am, Ning Zhou wrote:
> my extensions.conf file for incoming call is:
> [default]
> exten => , 1,Answer
> exten => s,1,Dial(SIP/2001,20)
> exten => s,2,Hangup
>
> And when the incoming call comes, it appears:
>
> -- Executing Dial("Zap/1-1", "SIP/2001|20") in new stack
> -- Called 2001
> -- Accepting call from '' to '' on channel 0/1, span 1
> -- SIP/2001-5ef8 is ringing
> -- SIP/2001-5ef8 answered Zap/1-1
> -- Channel 0/1, span 1 got hangup
> == Spawn extension (default, s, 1) exited non-zero on 'Zap/1-1'
> -- Hungup 'Zap/1-1'
>
> My question is what's the meaning of "Accepting call from '' to '' on
> channel 0/1, span 1", and why I must have something like "exten => ,
> 1,Answer" in the 'default' context?
You've got a PRI that doesn't pass any digits for the DID called to you? My
PRI passes me 7 digits and my dialplan looks like this:
exten -> 2922001,1,Dial(IAX2/user at user2001)
exten -> 2922002,1,Dial(IAX2/user at user2002)
and then a catchall:
exten -> _29220XX,1,Answer
exten -> _29220XX,2,Play(num-i-have)
exten -> _29220XX,3,SayDigits(${EXTEN})
exten -> _29220XX,4,Play(goodbye)
exten -> _29220XX,5,Hangup
Are you positive that your telco isn't sending you any digits?
-A.
More information about the asterisk-users
mailing list