Author
Topic: iphone (SIAX client) and asterisk (Read 2687 times)

I'm using SIAX on my iphone as an extension in linuxmce and am experiencing a strange situation.

When using the iphone over wifi (connected to internal linuxmce network) I must use 192.168.80.1 as the host name to register. If I use the internet IP address of my core, i get no registration (asterisk CLI shows nada in the way of connection attempts).

When using the iphone on 3G, using the internet IP address of my core works. Since obviously using 192.168.80.1 when connected via 3G won't work, this means I have to switch the server name each time I go on and off wifi.

Any ideas why I can't use the internet IP when inside the linuxmce network?

hmm possibly because the LMCE firewall is NAT'ing any traffic coming out of the internal network. You could try temporarily turning off the LMCE firewall and seeing if that changes the behaviour (because this will turn off the NATing as well). Is your external IP address of your core still a private address or is your core getting a public address from your ISP? Do ifconfig -a

For a start of, as your core is exposed to the Internet, re-enable the firewall!

I'm not familiar with the IAX protocol so I'm flapping around in the dark!

Can you start by checking what IP address, net mask and default gateway the phone gets whilst it is on the Internal network? Do you have any network tools for the iPhone? (such as ping, traceroute, telnet, arp, etc)

That's just it... There isn't any CLI output, unless of course I use the settings that work mentioned in the original post at which point it mentions successful registration etc.

This suggests the packets sent when the phone tries to register aren't even making it to Asterisk. Is there a way to trace the packets through the various stages of routing that occurs within the core, to see where they are getting stopped? I suppose it's possible they're not even leaving the iPhone (if apple's draconian firmware is meddling with things) This is beyond my level of troubleshooting... Appreciate your help.

Well the issue is NOT specifically with the iphone. I installed an IAX softphone on one of my PCs on the linuxmce internal network, and the same thing happens. ie. can connect no problem to 192.168.80.1, but not to <MY INET IP>.

Here is a 30s log of IAX traffic when the client attempts (and succeeds) to register using 192.168.80.1, on both eth0 and eth1 interfaces:

Well the issue is NOT specifically with the iphone. I installed an IAX softphone on one of my PCs on the linuxmce internal network, and the same thing happens. ie. can connect no problem to 192.168.80.1, but not to <MY INET IP>.

Here is a 30s log of IAX traffic when the client attempts (and succeeds) to register using 192.168.80.1, on both eth0 and eth1 interfaces:

I have no idea what 24.114.232.35 is. It's not my IP, nor does it belong to my VOIP provider (iax04.unlimitel.ca)

hmmm... strange.... the 24.114.232.x addresses are Rogers Cable ... are you perhaps using Rogers for your iPhone telco? If so, then it looks like your phone is still attempting to connect externally at that point as well as internally.... realistically the only traffic on that interface you should see (when connecting internally) is your VSP, and probably only SIP traffic even then. Theres a stray 209.217.98.134 address to which is Magma Communications (part of Primus Canada).....

The second capture looks much the same.... still seeing traffic on both sides when really you shouldn't.... stronly suspect that the 24.114.232.x addresses are your iPhone's IP address through your telco..

hmmm... strange.... the 24.114.232.x addresses are Rogers Cable ... are you perhaps using Rogers for your iPhone telco? If so, then it looks like your phone is still attempting to connect externally at that point as well as internally.... realistically the only traffic on that interface you should see (when connecting internally) is your VSP, and probably only SIP traffic even then. Theres a stray 209.217.98.134 address to which is Magma Communications (part of Primus Canada).....

The second capture looks much the same.... still seeing traffic on both sides when really you shouldn't.... stronly suspect that the 24.114.232.x addresses are your iPhone's IP address through

Rogers is my ISP, but the test below was done with a softphone client installed on a windows PC inside the lmce internal network, not the iPhone. The iPhone was off. It's all very puzzling

By VSP I assume you mean Voip Service Provider. My VSP is iax04.unlimitel.ca (209.217.98.134) and is most definitely connecting to my core via IAX. Why Rogers and Magma Communications IPs are involved is beyond me.