[Asterisk-Users] IAX problems using CVS HEAD, but not CVS STABLE

Shaun Ewing asterisk at ewing.tk
Mon May 24 04:00:22 MST 2004


Hi All,

Sorry if this has been covered in the past; I've tried searching the
archives, but haven't had any luck finding a similar problem.

Basically I have problems when using IAX2 (which I now understand is just
IAX). I have three IAX connections setup - VoicePulse, IAXtel, and an
Asterisk IAX<->PSTN termination provider here in Sydney (ATP)

If I try to use the CVS STABLE version of Asterisk, incoming calls from ATP
work fine and IAX as a whole works perfectly. However, if I try to use CVS
HEAD, incoming calls via ATP don't work (but everything else does).

Looking at the debug output produced with "iax2 debug", my Asterisk box is
prompting the remote ATP Asterisk box for iaxtel authorisation which isn't
correct (when using CVS STABLE, it prompts for atp authorisation which is
correct). The debug output is below (I have removed phone numbers and
hostname):

-- begin debug

IAX2 Debugging Enabled
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00001ms  SCall: 16386  DCall: 00000 [<snipped>:4569]
   VERSION         : 2
   CALLED NUMBER   : 8231xxxx
   CALLING NUMBER  : 024625xxxx
   LANGUAGE        : en
   FORMAT          : 2
   CAPABILITY      : 2
   ADSICPE         : 2
   DATE TIME       : 146315671
jazz*CLI>
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
AUTHREQ
   Timestamp: 00003ms  SCall: 16385  DCall: 16386 [<snipped>:4569]
   AUTHMETHODS     : 4
   CHALLENGE       : 207264430
   USERNAME        : iaxtel
jazz*CLI>
Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
   Timestamp: 00003ms  SCall: 16386  DCall: 16385 [<snipped>:4569]
Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: HANGUP
   Timestamp: 09160ms  SCall: 16386  DCall: 16385 [<snipped>:4569]
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 09160ms  SCall: 16385  DCall: 16386 [<snipped>:4569]
Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
   Timestamp: 00001ms  SCall: 00012  DCall: 00000 [<snipped>:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG
   Timestamp: 00001ms  SCall: 00002  DCall: 00012 [<snipped>:4569]
Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
   Timestamp: 00001ms  SCall: 00012  DCall: 00002 [<snipped>:4569]

-- end debug

Any input would be greatly appreciated. I've included my iax.conf below
(based on the sample.conf - many comments have been stripped and usernames
removed).

Thanks,

Shaun

-- begin iax.conf


[general]
port=5036
;bindaddr=192.168.0.1

bandwidth=high

allow=all

register => <iaxtelusername>:<iaxtelpassword>@iaxtel.com
register => <vpusername>:<vppassword>@<gw>.voicepulse.com
register => <atpusername>:<atppassword>@<atpgw>

tos=lowdelay

;
; Guest sections for unauthenticated connection attempts.  Just
; specify an empty secret, or provide no secret section.
;
[guest]
type=user
context=default
callerid="Guest IAX User"

;
; Trust Caller*ID Coming from iaxtel.com
;
[iaxtel]
type=user
context=incoming-iaxtel
auth=rsa
inkeys=iaxtel

[iaxtel2]
;
; Backwards compatible entry for IAXtel pre-RSA
;
type=user
context=incoming-iaxtel
deny=0.0.0.0/0.0.0.0
permit=69.73.19.178/255.255.255.255

[voicepulse]
context = VPWS
secret=<vpsecret>
auth=md5
type=friend
host=<gw>.voicepulse.com
trunk=no
disallow=all
allow=gsm

[atp]
context=atp
secret=<secret>
auth=md5
type=friend
host=<atpgw>
trunk=yes
;disallow=all
;allow=gsm




More information about the asterisk-users mailing list