[Freeswitch-users] Registering and Calling on the same port.

David Villasmil david.villasmil.work at gmail.com
Wed Mar 2 19:04:13 MSK 2016


Hello Brian,

Thanks for replying. Actually I'm tracing on the box itself, done with ngrep

The register:

T 10.0.160.3:35841 -> 1.2.3.4:5060 [AP]
REGISTER sip:mydomain.com;transport=tcp SIP/2.0.

T 1.2.3.4:5060 -> 10.0.160.3:35841 [AP]
SIP/2.0 200 OK.


The Call:

U 10.0.160.3:5111 -> 1.2.3.4:5060
INVITE sip:2325201 at mydomain.com SIP/2.0.

U 1.2.3.4:5060 -> 10.0.160.3:5111
SIP/2.0 100 Trying.

U 1.2.3.4:5060 -> 10.0.160.3:5111
SIP/2.0 403 Forbidden.

U 10.0.160.3:5111 -> 1.2.3.4:5060
ACK sip:2325201 at mydomain.com SIP/2.0.



the profile:


...
    <param name="sip-port" value="5111"/>
...

The gateway:

  <gateways>
        <gateway name="whatever">
                <param name="username" value="whatever"/>
                <param name="realm" value="mydomain"/>
                <param name="password" value="password"/>
                <param name="extension" value="auto_to_user"/>
                <param name="context" value="public"/>
                <param name="proxy" value="mydomain"/>
                <param name="register" value="true"/>
                <param name="register-transport" value="tcp"/>
                <param name="retry-seconds" value="15"/>
<param name="from-domain" value="mydomain"/>
        </gateway>
  </gateways>


Am I doing something wrong?

Regards,


David




On Wed, Mar 2, 2016 at 4:32 PM, Brian West <brian at freeswitch.org> wrote:

> If you're not seeing this then you've got a NAT issue possibly.
>
> On Wed, Mar 2, 2016 at 9:20 AM, David Villasmil <
> david.villasmil.work at gmail.com> wrote:
>
>> Hello guys,
>>
>> It was my understanding that if I:
>>
>> - create a profile with, i.e.: por 5009
>> - create a gateway on that profile
>>
>> both REGISTERs and INVITES going out would use the same (5009) port?
>>
>> Because I am not seeing this behaviour.
>>
>> Thanks all!
>>
>>
>> David
>>>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.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
>> http://www.freeswitch.org
>>
>
>
>
> --
>
> *Brian West*
> brian at freeswitch.org
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.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
> http://www.freeswitch.org
>

ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160302/e10b7c21/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list