I’m struggling trying to have asterisk echo test working from my mobile (an iphone with Bria softphone app) to my home server (a linux machine running asterisk 11.21.1 and shorewall firewall).
If the mobile is connected with my wifi, everything works fine. If the mobile is connected with a mobile carrier, I can register, make the call but I cannot hear anything.
I dumped the ip traffic in both case and I compared them.
I found a difference in the INVITE message. In wifi connection, the IP of the sender and the “Sent-by address” is the same. In the mobile carrier connection, those values are different. Notably, the “Sent-By address” is 10.x.x.x ip class. There is and excerpt at the bottom of this message.
If I configure my mobile phone to use a SIP provider insted of my asterisk server, everything works fine even if it is connected with the mobile carrier so the problem is not related to the mobile carrier or the mobile app.
Can you have a suggestion in order to fix my asterisk configuration, please?
Internet Protocol Version 4, Src: 220.127.116.11, Dst: 192.168.100.1
Transmission Control Protocol, Src Port: 19174 (19174), Dst Port: 5060 (5060), Seq: 9523, Ack: 6786, Len: 1059
Session Initiation Protocol (INVITE)
Request-Line: INVITE sip:email@example.com:5060 SIP/2.0
Via: SIP/2.0/TCP 10.72.94.250:62373;branch=z9hG4bK-524287-1—b801fd72c9931d01;rport
Sent-by Address: 10.72.94.250
Sent-by port: 62373