IAXY not registering with an Asterisk Server


#1

Hi,

i seem to have a problem with my IAXY registration with an asterisk server.

The config file that was provisioned to the IAXY was the following:

;
; IAXY Provisioning description
;
dhcp
codec: ulaw
;codec: adpcm
server: 192.168.1.1
user: myname
pass: mypasswd
register
;heartbeat
;debug
;

where 192.168.1.1 is my ASterisk server (it is on the same subnet as the Iaxy) and myname/mypasswd my username and password.

I then provisioned the conf file to the IAXy:

[root@IBM-PC iaxyprov]# ./iaxyprov 192.168.1.35 iaxy.conf.sample
01:

05:
11 d9
0d:
00 00 00 04
0f:
c3 86 5a 3c
10:
11 d9
06:
70 61 6e 6f 73
07:
70 61 6e 6f 73 31 32 33
0c:
00 00 00 01
Provisioning is 45 bytes
Total packet is 59 bytes
Got response back from ‘192.168.1.35’

I then rebooted the iaxy.

My iax.conf file is as follows:

[iaxy]
type=friend
accountcode=iaxy
username=myname
host=dynamic
secret=mypassword
context=iax
allow=ulaw
callerid=“My Iaxy” <1234>
trunk=no

and my extensions.conf file has an entry for the iaxy:

[iax]
exten => 1234,1,Dial{IAX2/192.168.1.1@iaxy/s}

However, i seem to have registration problems:

IBM-PC*CLI>
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00002ms SCall: 07373 DCall: 00000 [195.134.90.35:4569]
USERNAME : myname
REFRESH : 60
DEVICE TYPE : iaxy
SERVICE IDENT : 000fd3000e62
PROVISIONG VER : 0

Jun 15 18:06:06 NOTICE[17376]: chan_iax2.c:4919 register_verify: No registration for peer ‘myname’ (from 192.168.1.35)
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00013ms SCall: 00002 DCall: 07373 [192.168.1.35:4569]
CAUSE : Registration Refused
CAUSE CODE : 29

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00013ms SCall: 07373 DCall: 00002 [192.168.1.35:4569]

Any ideas?

Thank you,

Budoka.


#2

Have you tried this kind of config:

[myname] type=friend accountcode=iaxy username=myname host=dynamic secret=mypassword context=iax allow=ulaw callerid="My Iaxy" <1234> trunk=no


#3

SGM thank you for your help.

The authorization messages stopped. I can now call from the analogue phone that is attached to the iaxy.

However when i do :

IBM-PC*CLI> iax2 show peers
Name/Username Host Mask Port Status
myname/myname 192.168.1.35 (D) 255.255.255.255 4569 Unmonitored
demo/asterisk 216.207.245.47 (S) 255.255.255.255 4569 Unmonitored
2 iax2 peers [0 online, 0 offline, 2 unmonitored]

i get the message that there are two IAX2 peers but noone is online.

As i recall from sip when a sip client registers with Asterisk it is considered online.

Panos.


#4

Add a qualify=yes in your iax.conf file :wink:


#5

These were the errors:

Jun 7 21:22:10 NOTICE[5443]: chan_iax2.c:7410 socket_read: Registration of ‘carmen123’ rejected: ‘Registration Refused’ from: ‘64.61.93.90’

with iax2 debug on:
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00003ms SCall: 01125 DCall: 00006 [64.61.93.87:4569]
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00003ms SCall: 00634 DCall: 00005 [64.61.93.90:4569]
Rx-Frame Retry[ No] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 01002ms SCall: 01125 DCall: 00006 [64.61.93.87:4569]
CAUSE : Registration Refused
CAUSE CODE : 29

The problem was that the username and password I was given by my client regarding the voicepulse account was not the “chanell” username and password.

The voicepulse configuration guide and all else on the web seems to gloss over this detail.

To get the username:password, log onto the connect.voicepulse.com site, and look under “chanell”. Each chanell will have its own username and password.

Hope this helps you avoid the time I wasted.

Jonathan Galpin
Iqzero.net