Bartosz Wegrzyn - asterisk
2005-Mar-06 01:20 UTC
[Asterisk-Users] IAX - Registration Problems
Hi everyone, THis is my second thread regarding the issue.(before I was having problems with accessing my email, which slow down my responses, sorry for that) My setup looks like this Firewall | | Asterisk---Asterisk (two asterisk servers with the same setup for high avail) | | phones Ports 5060, 10000-20000, 4569, 5036 are forwared to 192.168.1.251 which is virtual ip address on one of the asterisk servers. (the one that is currently running) The real ip addresses of the asterisk servers are 192.168.1.253, 192.168.1.252. When I try to use the softphone like firefly with SIP everything works fine. But, when I switch to IAX then the client can't register. I was trying to register using the 192.168.1.251 which is virtual Ip. When I change it to real server IP, then I was able to register using IAX. I know that IAX is a very friendly protocol. I am planing to use it so clients can connect to my asterisk box from outside through my firewall. Why the Virtual ip is causing the problems. My ifconfig output looks like this: eth0 Link encap:Ethernet HWaddr 00:01:29:94:34:2E inet addr:192.168.1.252 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::201:29ff:fe94:342e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:46594 errors:0 dropped:0 overruns:0 frame:0 TX packets:45836 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9715330 (9.2 Mb) TX bytes:9752890 (9.3 Mb) Interrupt:10 Base address:0xb000 eth0:0 Link encap:Ethernet HWaddr 00:01:29:94:34:2E inet addr:192.168.1.251 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:10 Base address:0xb000 I turned the iax debug to find out more. This is the output when clients tries to register: voip*CLI> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ Timestamp: 00000ms SCall: 03341 DCall: 00000 [192.168.1.101:4569] USERNAME : client1 REFRESH : 1800 Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGAUTH Timestamp: 00016ms SCall: 00003 DCall: 03341 [192.168.1.101:4569] AUTHMETHODS : 1 USERNAME : client1 Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: INVAL Timestamp: 00016ms SCall: 03341 DCall: 00003 [192.168.1.101:4569] when I change the ip to 192.168.1.252 the output looks like this: Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: REGREQ Timestamp: 00003ms SCall: 26603 DCall: 00001 [192.168.1.101:4569] USERNAME : client1 REFRESH : 1800 PASSWORD : test -- Registered 'client1' (AUTHENTICATED) at 192.168.1.101:4569 Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REGACK Timestamp: 00017ms SCall: 00001 DCall: 26603 [192.168.1.101:4569] USERNAME : client1 DATE TIME : 174460996 REFRESH : 60 APPARENT ADDRES : IPV4 192.168.1.101:4569 Looks like the password is missing in the first transaction. Any ideas why??? I would like to move on to running iax throuh nat, but so far I am unable to make it running locally. Thanks Bartosz Wegrzyn
Bartosz Wegrzyn - asterisk
2005-Mar-08 00:54 UTC
[Asterisk-Users] IAX - Registration Problems
I solved the problem by adding the bindaddress option to iax.conf file. bindaddr=192.168.1.251 and everything works. Bart, > Hi everyone,> > THis is my second thread regarding the issue.(before I was having problems > with accessing my email, which slow down my responses, sorry for that) > My setup looks like this > > Firewall > | > | > Asterisk---Asterisk (two asterisk servers with the same setup for high > avail) > | > | > phones > > Ports 5060, 10000-20000, 4569, 5036 are forwared to 192.168.1.251 which is > virtual ip address on one of the asterisk servers. (the one that is > currently running) > > The real ip addresses of the asterisk servers are 192.168.1.253, > 192.168.1.252. > > When I try to use the softphone like firefly with SIP everything works > fine. > But, when I switch to IAX then the client can't register. > > I was trying to register using the 192.168.1.251 which is virtual Ip. > When I change it to real server IP, then I was able to register using IAX. > > I know that IAX is a very friendly protocol. > I am planing to use it so clients can connect to my asterisk box from > outside through my firewall. Why the Virtual ip is causing the problems. > My ifconfig output looks like this: > > eth0 Link encap:Ethernet HWaddr 00:01:29:94:34:2E > inet addr:192.168.1.252 Bcast:192.168.1.255 Mask:255.255.255.0 > inet6 addr: fe80::201:29ff:fe94:342e/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:46594 errors:0 dropped:0 overruns:0 frame:0 > TX packets:45836 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:9715330 (9.2 Mb) TX bytes:9752890 (9.3 Mb) > Interrupt:10 Base address:0xb000 > > eth0:0 Link encap:Ethernet HWaddr 00:01:29:94:34:2E > inet addr:192.168.1.251 Bcast:192.168.1.255 Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > Interrupt:10 Base address:0xb000 > > > I turned the iax debug to find out more. > This is the output when clients tries to register: > > voip*CLI> > Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: > REGREQ > Timestamp: 00000ms SCall: 03341 DCall: 00000 [192.168.1.101:4569] > USERNAME : client1 > REFRESH : 1800 > > Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: > REGAUTH > Timestamp: 00016ms SCall: 00003 DCall: 03341 [192.168.1.101:4569] > AUTHMETHODS : 1 > USERNAME : client1 > > Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: > INVAL > Timestamp: 00016ms SCall: 03341 DCall: 00003 [192.168.1.101:4569] > > > > when I change the ip to 192.168.1.252 the output looks like this: > > > Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: > REGREQ > Timestamp: 00003ms SCall: 26603 DCall: 00001 [192.168.1.101:4569] > USERNAME : client1 > REFRESH : 1800 > PASSWORD : test > > -- Registered 'client1' (AUTHENTICATED) at 192.168.1.101:4569 > Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: > REGACK > Timestamp: 00017ms SCall: 00001 DCall: 26603 [192.168.1.101:4569] > USERNAME : client1 > DATE TIME : 174460996 > REFRESH : 60 > APPARENT ADDRES : IPV4 192.168.1.101:4569 > > > Looks like the password is missing in the first transaction. > Any ideas why??? > > I would like to move on to running iax throuh nat, but so far I am unable > to make it running locally. > > Thanks > > > Bartosz Wegrzyn > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >