IAX only working with no secret

Hi all,

I have a Natted Asterisk box (version 1.4) and a Idefisk IAX softphone that I both tested NAT-ed and un-NAT-ed.

What I came to discover is that the softphone only registers succesfully when not using a secret.

This is my iax.conf:

[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes

[331]
callerid=331
auth=md5
username=331
secret=123456
type=friend
host=dynamic
context=intern
qualify=yes

Anyone any idea why this is not working. I enabled debugging, but that does not really give me a clear indication of what is happening.

Thank you,

Bart

Hi all,

I enabled some debugging for this and this is the result, if anyone can make sence of it:

IAX2 Debugging Enabled

Tx-Frame Retry[000] – OSeqno: 002 ISeqno: 001 Type: IAX Subclass: PING

Timestamp: 20016ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Tx-Frame Retry[000] – OSeqno: 003 ISeqno: 001 Type: IAX Subclass: LAGRQ

Timestamp: 20019ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Tx-Frame Retry[002] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: LAGRQ

Tx-Frame Retry[003] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGACK

Timestamp: 10015ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Timestamp: 00011ms SCall: 00005 DCall: 00065 [192.168.1.23:4569]

Tx-Frame Retry[003] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH

Timestamp: 00014ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

AUTHMETHODS : 1

USERNAME : 331

pbx02*CLI>

USERNAME : 331

DATE TIME : 2007-11-07 18:38:22

pbx02*CLI>

Tx-Frame Retry[001] – OSeqno: 002 ISeqno: 001 Type: IAX Subclass: PING

Timestamp: 20016ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Tx-Frame Retry[001] – OSeqno: 003 ISeqno: 001 Type: IAX Subclass: LAGRQ

Timestamp: 20019ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ

Timestamp: 00003ms SCall: 00067 DCall: 00000 [192.168.1.23:4569]

USERNAME : 331

REFRESH : 60

pbx02*CLI>

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH

Timestamp: 00016ms SCall: 00004 DCall: 00067 [192.168.1.23:4569]

AUTHMETHODS : 1

USERNAME : 331

Tx-Frame Retry[001] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH

Timestamp: 00016ms SCall: 00004 DCall: 00067 [192.168.1.23:4569]

AUTHMETHODS : 1

USERNAME : 331

Tx-Frame Retry[000] – OSeqno: 004 ISeqno: 001 Type: IAX Subclass: LAGRQ

Timestamp: 30017ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Tx-Frame Retry[003] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: LAGRQ

Timestamp: 10015ms SCall: 00006 DCall: 00066 [192.168.1.23:4569]

Tx-Frame Retry[000] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: LAGRQ

Timestamp: 10017ms SCall: 00004 DCall: 00067 [192.168.1.23:4569]

Tx-Frame Retry[001] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: LAGRQ

Timestamp: 10017ms SCall: 00004 DCall: 00067 [192.168.1.23:4569]

Tx-Frame Retry[002] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH

Timestamp: 00016ms SCall: 00004 DCall: 00067 [192.168.1.23:4569]

AUTHMETHODS : 1

USERNAME : 331

Thank you,

Bart