[Freeswitch-users] Registering with external SIP provider

Martin Paterson martin.paterson at technologywithin.com
Thu Jul 23 09:21:59 UTC 2020


LuKaRo,

The "sofia status profile my-sip reg" shows telephones registered to the profile, it doesn't show gateway connections.

To see whether the call arrived you could look in the FreeSWITCH log (/var/log/freeswitch/freeswitch.log), there should be entries in there whenever something happens. In addition you could run tcpcump to capture the traffic and check for the incoming INVITE.

Martin.




Martin Paterson
Development Team
Phone: 0207 953 8840
Email: martin.paterson at technologywithin.com
Chevron Business Park, Limekiln Lane, Southampton, Hampshire, SO45 2QL
Registered Office: CP House, Otterspool Way, Watford, WD25 8JJ, U.K 
​Registered in England No: 5964349 | VAT Number: GB 902 5369 37 
-----Original Message-----
From: FreeSWITCH-users <freeswitch-users-bounces at lists.freeswitch.org> On Behalf Of LuKaRo
Sent: 14 July 2020 15:31
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] Registering with external SIP provider

Hi everyone,

I'm unable to register freeswitch with an external SIP provider. I gave the pages on sofia on the wiki already a good read, but I can't get it to work. One special thing is that my machine has multiple network interfaces and needs to use a specific one to connect to the external SIP provider. Therefore, I copied "external.xml" in "/opt/freeswitch/conf/sip_profiles" to "my-sip.xml" and changed the values for "rtp-ip", "sip-ip", "ext-rtp-ip" and "ext-sip-ip" to the IP address of the interface freeswitch should use, and added the "my-sip" directory to the "<X-PRE-PROCESS cmd="include" header.

Then I created "/opt/freeswitch/conf/sip_profiles/my-sip/my-sip.xml" with the following contents:

<include>
  <gateway name="my-telephony">
  <param name="proxy" value="<ip address of SIP provider>"/>
  <param name="username" value="49xxxxxxxxxx"/>
  <param name="extension" value="49xxxxxxxxxx"/>
  <param name="password" value="passwordisnotneeded"/>
  <param name="register" value="true"/>
  <param name="register-transport" value="tcp"/>
  <param name="context" value="public"/>
  </gateway>
</include>

"sofia status" on the fs_cli lists the profile as "REGED":

            my-sip    profile                 sip:mod_sofia@<local ip address>:5060    RUNNING (0)
     my-sip::my-sip    gateway                   sip:49xxxxxxxxxx@<ip address of SIP provider>    REGED

ss -an|grep <ip address of SIP provider> also lists two established TCP-connections:

tcp    ESTAB      0      0      <local ip address>:46878              <ip address of SIP provider>:5060 tcp    ESTAB      0      0      <local ip address>:5060               <ip address of SIP provider>:25976

However, "sofia status profile my-sip reg" shows 0 registrations:

Registrations:
=================================================================================================
Total items returned: 0
=================================================================================================

And when issuing a call from outside to the extension registered at the SIP provider, I just get a busy signal on the phone. Logs of the external SIP provider report "recipient unavailable".

Any ideas what could be wrong or how to further diagnose this issue? How can I check if the call reaches freeswitch?

Thanks a lot in advance,

LuKaRo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image030223.png
Type: image/png
Size: 2305 bytes
Desc: image030223.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image505034.png
Type: image/png
Size: 32472 bytes
Desc: image505034.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image569424.png
Type: image/png
Size: 402 bytes
Desc: image569424.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image585762.png
Type: image/png
Size: 589 bytes
Desc: image585762.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image606499.png
Type: image/png
Size: 725 bytes
Desc: image606499.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image462476.png
Type: image/png
Size: 932 bytes
Desc: image462476.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image566542.png
Type: image/png
Size: 85623 bytes
Desc: image566542.png
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200723/f1050a93/attachment-0013.png>


More information about the FreeSWITCH-users mailing list