Dear Sirs, I've got a weird problem with IAX2 transfers. My setup consist of 3 Asterisk servers. One is located in Europe on a public IP and a local PSTN connection through ISDN. Two are located in South-east Asia - both on public, but dynamic IP. These two each have a bunch of SIP phones attached. All 3 systems are running latest CVS (ok - might be a day or two old) on Linux 2.6.6 with the patched ztdummy timing device (based on Linux 2.6 kernel timers). Since only one of the asterisk servers are on a known IP, the two systems on dymanic IP registers at the one in Europe. Ok - that was the setup - here's the problem. SIP device on dynamic asterisk A calls SIP device on dynamic asterisk B. The call obviously is routed through the asterisk with fixed IP. After the call has been picked up - asterisk attempts a transfer. The problem is that sometimes (I would estimate around half the times) the transfer fails without any error messages (only "Hungup 'IAX@[foobar]/xxxxx'). No indication of what went wrong. The problem can only be reproduced about half the times - half the times it goes well. Now it is pretty obvious that my setup is ok since it work half the times. Forbidding transfers is not a good idea - the whole point of this setup is to be able to transfer since network wise the two systems with dynamic addresses are much closer to each other (ping round-trip of about 40 ms) compared with the one with fixed (about 400 ms ping round-trip from EACH of the dynamic systems). Any ideas? Regards, Lars... -- Lars Boegild Thomsen Technical Director JustIT Sdn. Bhd. Cell Phone (MY): +60 (16) 323 1999 ICQ: 6478559 Yahoo Chat: lars_boegild_thomsen@yahoo.com MSN Chat: lars_boegild_thomsen@hotmail.com http://www.justit.ws Phone: +1 (360) 515 3551 (US) +45 8692 1951 (DK) +60 (3) 2057 2646 (MY) Fax : +60 (3) 2057 2647 (MY)
Dear Sirs, I've got a weird problem with IAX2 transfers. My setup consist of 3 Asterisk servers. One is located in Europe on a public IP and a local PSTN connection through ISDN. Two are located in South-east Asia - both on public, but dynamic IP. These two each have a bunch of SIP phones attached. All 3 systems are running latest CVS (ok - might be a day or two old) on Linux 2.6.6 with the patched ztdummy timing device (based on Linux 2.6 kernel timers). Since only one of the asterisk servers are on a known IP, the two systems on dymanic IP registers at the one in Europe. Ok - that was the setup - here's the problem. SIP device on dynamic asterisk A calls SIP device on dynamic asterisk B. The call obviously is routed through the asterisk with fixed IP. After the call has been picked up - asterisk attempts a transfer. The problem is that sometimes (I would estimate around half the times) the transfer fails without any error messages (only "Hungup 'IAX@[foobar]/xxxxx'). No indication of what went wrong. The problem can only be reproduced about half the times - half the times it goes well. Now it is pretty obvious that my setup is ok since it work half the times. Forbidding transfers is not a good idea - the whole point of this setup is to be able to transfer since network wise the two systems with dynamic addresses are much closer to each other (ping round-trip of about 40 ms) compared with the one with fixed (about 400 ms ping round-trip from EACH of the dynamic systems). Any ideas? Regards, Lars...>>>>>>>>>>>>>>>>>Maybe, maybe when the IPs on dynamic servers change, * has different information internally hence the transfer fails? Ta SJ
Hi!>> Now it is pretty obvious that my setup is ok since it work half the >> times.> Maybe, maybe when the IPs on dynamic servers change, * has different > information internally hence the transfer fails?My feeling is that you have a firewall/NAT issue. Look at the qualify= paramter and do some reading on NAT in order to make sure your devices keep the ports required for SIP operation open at all times. Sounds like at the moment those ports are often closed for outside callers. Cheers, Philipp
Hi,> Now it is pretty obvious that my setup is ok since it work half the > times. Forbidding transfers is not a good idea - the whole point of this > setup is to be able to transfer since network wise the two systems with > dynamic addresses are much closer to each other (ping round-trip of > about 40 ms) compared with the one with fixed (about 400 ms ping > round-trip from EACH of the dynamic systems). > Maybe, maybe when the IPs on dynamic servers change, * has different > information internally hence the transfer fails?Nope - not that either :) The IP only change on the rare occations my xDSL line craps out - say every second day or so. The PPP daemon reconnects and on those occation I do get a new IP. Asterisk however reregister with the new IP address without problems. I by the way found a fix by patching the chan_iax2.c - see the bug tracker for details. Regards, Lars
On Tue, 15 Jun 2004, Lars Boegild Thomsen wrote:> Since only one of the asterisk servers are on a known IP, the two > systems on dymanic IP registers at the one in Europe.Just one question: is there any reason not to use a dyndns name for these two dynamic boxes? I believe they are PPPoE xDSL, so you can setup your rules (iax.conf) to call directly the otherbox1.dyndns.org, instead of routing it via the fixed_ip. If you decide not to use dyndns for these dynamic boxes, try adding a notransfer=yes in the iax.conf for the router/fixed ip box (your dynamic box iax.conf will have an entry saying notransfer=yes within the context). -- Lista asterisk em portugues: http://groups.yahoo.com/group/asteriskbr/