[asterisk-users] IAX & WaitExten

Christian Stuellenberg asterisk at condor-edv.com
Sun Dec 31 06:20:20 MST 2006


Hello list,

I've got a problem (maybe only a problem of understanding how * works) with IAX and WaitExten.

To simplify the problem I've brought it down to the following scenario:

- 3 Asterisk Server A,B and C (central).
- A and B both register with C.

Now I want to be able to dial an extension at A to become connected to C and there I want to dial an extension to become connected to B.

I've done the (following) tests all in *CLI at ServerA, so that no other dtmf methods may have impact on the results:
> dial 161 at default
 --> connection with Zap/1 at server B can be established
> hangup

> dial 17 at default
 --> connection with server C established and waitexten waiting for input
> dial 161
 --> connection with Zap/1 at server B can be established
> hangup

So far so good, but:
> dial 16 at default
 --> connection with server B established and waitexten waiting for input
> dial 301
 --> nothing happens (either on server b nor c or even a) 
 --> timeout! 

Does asterisk at server C "eat" the extensions I dial, although they ought be send to B??

Thanks in advance for any help or hint towards a solution,
Christian


Here are the config details:

iax.conf at A:
======================================================================
[general]
bindport=4569
bindaddr=0.0.0.0
bandwidth=low
allow=all
disallow=g723.1
disallow=lpc10
allow=gsm

jitterbuffer=no
forcejitterbuffer=no

register => c1:xxx at m.domain

[m]
type=user
auth=md5
secret=xxx
context=iax2-in

[m]
type=peer
host=m.domain
username=c1
auth=md5
secret=xxx
======================================================================

iax.conf at B:
======================================================================
[general]
bindport=4569
bindaddr=0.0.0.0
bandwidth=low
allow=all
disallow=g723.1
disallow=lpc10
allow=gsm

jitterbuffer=no
forcejitterbuffer=no

register => c2:xxx at m.domain

autokill=yes

[m] 
type=user 
auth=md5 
secret=xxx 
context=iax2-in 
 
[m] 
type=peer 
host=m.domain 
username=c2 
auth=md5 
secret=xxx
======================================================================

iax.conf at C:
======================================================================
[general]
bindport=4569
bindaddr=0.0.0.0
bandwidth=low
allow=all
disallow=g723.1
disallow=lpc10
allow=gsm

jitterbuffer=no
forcejitterbuffer=no

autokill=yes
tos=lowdelay

[c]
type=user
auth=md5
secret=xxx
context=iax2-in

[c]
type=peer
host=dynamic
username=m
auth=md5
secret=xxx

[c2]
type=user
auth=md5
secret=xxx
context=iax2-in

[c2]
type=peer
host=dynamic
username=m
auth=md5
secret=xxx
======================================================================

extensions.conf at A:
======================================================================
[default]
exten => 16,1,Dial(IAX2/m/16)
exten => 161,1,Dial(IAX2/m/161)
exten => 17,1,Dial(IAX2/m/17)
=====================================================================

extensions.conf at B:
======================================================================
[iax2-in]
exten => s,1,Playtones(internal) 
exten => s,n,Set(TIMEOUT(digit)=${DIGIT_WAIT}) 
exten => s,n,WaitExten(${EXTEN_WAIT}) 

exten => 301,1,Dial(Zap/1)
exten => 302,1,Dial(Zap/2)
=====================================================================

extensions.conf at C:
======================================================================
[iax2-in]
exten => 15,1,Dial(IAX2/c)
exten => 16,1,Dial(IAX2/c2)
exten => 161,1,Dial(IAX2/c2/301)
exten => 162,1,Dial(IAX2/c2/302)
exten => 17,1,WaitExten(15)
======================================================================




More information about the asterisk-users mailing list