[Freeswitch-users] Port Required to communicate with Gateway

Harshita Pandey harshita19012 at iiitd.ac.in
Mon Oct 19 07:20:40 UTC 2020


I executed the sofia global siptrace on command and get the following error

2020-10-19 07:18:34.576508 [DEBUG] sofia.c:4597 sip-ip [192.168.2.215]
                                                              2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 ext-rtp-ip [103.25.231.107]
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 ext-sip-ip [103.25.231.107]
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 rtp-timeout-sec [300]
                                                   2020-10-19
07:18:34.576508 [WARNING] sofia.c:5192 rtp-timeout-sec deprecated use
media_timeout variable.                                 2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 rtp-hold-timeout-sec [1800]
                                                   2020-10-19
07:18:34.576508 [WARNING] sofia.c:5199 rtp-hold-timeout-sec deprecated use
media_hold_timeout variable.                       2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls [false]
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-only [false]
                                                  2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-bind-params [transport=tls]
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-sip-port [5081]
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-passphrase []
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-verify-date [true]
                                                  2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-verify-policy [none]
                                                  2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-verify-depth [2]
                                                  2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-verify-in-subjects []
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:4597 tls-version [tlsv1,tlsv1.1,tlsv1.2]
                                                   2020-10-19
07:18:34.576508 [INFO] sofia.c:5993 Setting MAX Auth Validity to 0 Attempts
                                                  2020-10-19
07:18:34.576508 [NOTICE] sofia.c:6160 Started Profile external
[sofia_reg_external]                                           2020-10-19
07:18:34.576508 [DEBUG] sofia.c:3134 Creating agent for external
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:3253 Created agent for external
                                                  2020-10-19
07:18:34.576508 [DEBUG] sofia.c:3302 Set params for external
                                                   2020-10-19
07:18:34.576508 [DEBUG] sofia.c:3349 Activated db for external
                                                   2020-10-19
07:18:34.576508 [INFO] switch_core_sqldb.c:1870 sofia:external Starting SQL
thread.                                           2020-10-19
07:18:34.576508 [DEBUG] sofia.c:3387 Starting thread for external
                                                  2020-10-19
07:18:34.576508 [DEBUG] sofia.c:3034 Launching worker thread for external
                                                  2020-10-19
07:18:34.576508 [NOTICE] sofia_reg.c:3426 Added gateway 'MySIP' to profile
'external'                                         2020-10-19
07:18:34.576508 [NOTICE] sofia_reg.c:3426 Added gateway 'MySIP1' to profile
'external'                                        2020-10-19
07:18:34.576508 [NOTICE] sofia_reg.c:3426 Added gateway 'example.com' to
profile 'external'                                   2020-10-19
07:18:35.576510 [NOTICE] sofia_reg.c:453 Registering MySIP1
                                                  2020-10-19
07:18:35.576510 [NOTICE] sofia_reg.c:453 Registering MySIP
                                                   2020-10-19
07:18:35.756510 [ERR] sofia_reg.c:2469 MySIP1 Failed Registration with
status Service Unavailable [503]. failure #1           2020-10-19
07:18:35.756510 [ERR] sofia_reg.c:2469 MySIP Failed Registration with
status Service Unavailable [503]. failure #1            2020-10-19
07:18:36.576508 [WARNING] sofia_reg.c:510 MySIP1 Failed Registration [503],
setting retry to 5 seconds.                       2020-10-19
07:18:36.576508 [WARNING] sofia_reg.c:510 MySIP Failed Registration [503],
setting retry to 30 seconds.                       2020-10-19
07:18:42.596508 [NOTICE] sofia_reg.c:453 Registering MySIP1
                                                  2020-10-19
07:18:42.956509 [ERR] sofia_reg.c:2469 MySIP1 Failed Registration with
status Service Unavailable [503]. failure #2           2020-10-19
07:18:43.596508 [WARNING] sofia_reg.c:510 MySIP1 Failed Registration [503],
setting retry to 5 seconds.                       2020-10-19
07:18:49.596509 [NOTICE] sofia_reg.c:453 Registering MySIP1
                                                  2020-10-19
07:18:49.956507 [ERR] sofia_reg.c:2469 MySIP1 Failed Registration with
status Service Unavailable [503]. failure #3           2020-10-19
07:18:50.596510 [WARNING] sofia_reg.c:510 MySIP1 Failed Registration [503],
setting retry to 5 seconds.

On Fri, Oct 9, 2020 at 2:52 AM Jay Desai <rangeare.01 at gmail.com> wrote:

> I suspect this to be something related to your sip configuration. If you
> are getting 4XX or 5XX response from gateway means the ports are open (you
> don't have to open ports for outbound connections unless they are
> explicitly blocked by any firewall or program.)
>
> Share your sip trace by executing *sofia global sip trace on* or by using
> the *tcpdump* command.
>
> On Thu, Oct 8, 2020 at 8:44 PM Harshita Pandey <harshita19012 at iiitd.ac.in>
> wrote:
>
>> Okay. I am actually trying to configure Gateway so that I can start
>> making calls through a number. The virtual machine in which I have
>> installed freeswitch has only port 22 opened, so wanted to know the other
>> ports which need to be opened to configure the Gateway correctly.
>>
>> I get the following errors:
>> MySIP Failed Registration with status Forbidden [403]. failure #1still
>> getting the same error
>> OR
>> MySIP failed Registration error [503]. retrying in 30 seconds.
>>
>> According to what I have understood this is because some ports are not
>> opened in the VM
>>
>> On Thu, Oct 8, 2020 at 7:52 PM Jay Desai <rangeare.01 at gmail.com> wrote:
>>
>>> Freeswitch uses different profiles for outgoing and incoming calls.
>>> The default port for an internal profile is 5060 and external profile
>>> uses 5080.
>>> Can you provide more details about the gateway and what you are trying
>>> to do?
>>>
>>> On Thu, Oct 8, 2020 at 4:58 PM Harshita Pandey <
>>> harshita19012 at iiitd.ac.in> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have installed freeswitch on a Virtual Machine, and I am not able to
>>>> configure the gateway for some reason. Can someone tell me which ports are
>>>> required and need to be opened on the virtual machine to communicate with
>>>> Gateway in freeswitch?
>>>> Since all the ports are not opened in the Virtual Machine, this could
>>>> help me open up those ports and configure Gateway for freeswitch
>>>>
>>>>
>>>> Much help is needed.
>>>> It's Urgent
>>>> Thanks in advance.
>>>>
>>>> _________________________________________________________________________
>>>>
>>>> The FreeSWITCH project is sponsored by SignalWire
>>>> https://signalwire.com
>>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>>>> services.
>>>> Build your next product on our scalable cloud platform.
>>>>
>>>> Join our online community to chat in real time
>>>> https://signalwire.community
>>>>
>>>> Professional FreeSWITCH Services
>>>> sales at freeswitch.com
>>>> https://freeswitch.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> https://freeswitch.com/oss
>>>> https://freeswitch.org/confluence
>>>> https://cluecon.com
>>>>
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:
>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> https://freeswitch.com
>>>
>>> _________________________________________________________________________
>>>
>>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>>> services.
>>> Build your next product on our scalable cloud platform.
>>>
>>> Join our online community to chat in real time
>>> https://signalwire.community
>>>
>>> Professional FreeSWITCH Services
>>> sales at freeswitch.com
>>> https://freeswitch.com
>>>
>>> Official FreeSWITCH Sites
>>> https://freeswitch.com/oss
>>> https://freeswitch.org/confluence
>>> https://cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> https://freeswitch.com
>>
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>> services.
>> Build your next product on our scalable cloud platform.
>>
>> Join our online community to chat in real time
>> https://signalwire.community
>>
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20201019/0b3dcf2e/attachment-0001.html>


More information about the FreeSWITCH-users mailing list