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@ServerA, so that no other dtmf
methods may have impact on the results:> dial 161@default
--> connection with Zap/1 at server B can be
established> hangup
> dial 17@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@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@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@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@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@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@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@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@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@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)
======================================================================