[Asterisk-Users] iax2 registration problems

Bartosz Wegrzyn - asterisk junk at lexoncom.com
Thu Jun 22 13:17:36 MST 2006


On the asterisk1 I got this:

register => username:secret at ipaddress2

[eop]
username=username
secret=secret
type=peer
host=ipaddress1
auth=md5


on the second box I got this

this host is ipaddress2

[incommingiax2]
username=username
type=user
secret=secret
host=dynamic
context=from-internal-custom
auth=md5


on first host 1 am getting:

Jun 22 14:42:10 NOTICE[2398]: chan_iax2.c:7411 socket_read: Registration
of 'proxy1' rejected: 'Registration Refused' from: 'ipaddress2'

if I enable debuging I got this:

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00004ms SCall: 00006 DCall: 00000 [ipaddress2:4569]
USERNAME : username
REFRESH : 60

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00017ms SCall: 00001 DCall: 00006 [ipaddress2:4569]
CAUSE : Registration Refused
CAUSE CODE : 29

Jun 22 14:43:50 NOTICE[2398]: chan_iax2.c:7411 socket_read: Registration
of 'username' rejected: 'Registration Refused' from: 'ipaddress2'
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00017ms SCall: 00006 DCall: 00001 [ipaddress2:4569]


Why the box is refusing the registration.
That box is on DMZ vlan with local ip
On the pix firewall public ip address2 is mapped to that box ip

debug on the second box

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00007ms SCall: 00002 DCall: 00000 [ipaddress1:4569]
USERNAME : username REFRESH : 60

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00001ms SCall: 00003 DCall: 00002 [ipaddress1:4569]
CAUSE : Registration Refused
CAUSE CODE : 29

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00001ms SCall: 00002 DCall: 00003 [ipaddress1:4569]


any ideas what could be wrong?

Thanks

Bart



More information about the asterisk-users mailing list