[OpenSIPS-Users] NAT traversal issue in case of different internal and external ports

Krunal Patel krunal.lists at gmail.com
Tue Dec 16 15:06:42 CET 2008


Hi,

I am doing force_rport.
& that's why external port is being added in via
Via: SIP/2.0/UDP
[INTERNAL_IP]:5065;received=XXX.XXX.XXX.XXX;branch=z9hG4bK-a85eb9f3;rport=50034.

But from reply route, reply is not being sent to correct port which is in
via.
Please have a look to below given 183 progress trace

U YYY.YYY.YYY.YYY:5060 -> XXX.XXX.XXX.XXX:5065
SIP/2.0 183 Session Progress.
Call-ID: df9cc79e-ffa2ffb3@[INTERNAL_IP].
CSeq: 102 INVITE.
From: "FROM_NUM"
<sip:FROM_NUM at voip.convergenze.it<sip%3AFROM_NUM at voip.convergenze.it>
>;tag=45a59ea2bc86747fo0.
To: <sip:TO_NUM at voip.convergenze.it <sip%3ATO_NUM at voip.convergenze.it>
>;tag=3eddfbdb7400749.
Via: SIP/2.0/UDP
[INTERNAL_IP]:5065;received=XXX.XXX.XXX.XXX;branch=z9hG4bK-a85eb9f3;rport=50034.

Let me know hwat can be the issue?
On Tue, Dec 16, 2008 at 5:39 PM, Krunal Patel <krunal.lists at gmail.com>wrote:

> Hi
> I put force_rport at the beginning of main route.
> now signaling issue is fixed but facing audio issue.
> & getting error: empty response from mediaproxy for PSTN to behind nated
> users.
>
>
>
> On Mon, Dec 15, 2008 at 7:58 PM, Jeff Pyle <jpyle at fidelityvoice.com>wrote:
>
>>  Iñaki,
>>
>> Some time back I had a lab setup that used force_rport() on everything
>> that came in.  This caused problems if the INVITE came from a Broadworks
>> server.  Broadworks does not use source port 5060 on its traffic, for load
>> handling they say.  Anyway, my replies went to the source port Broadworks
>> used instead of to 5060.  And, of course, failed.
>>
>> I never did spend time on how to handle this properly.  Perhaps someone
>> here has some thoughts.
>>
>>
>> - Jeff
>>
>>
>>
>>
>> On 12/15/08 8:05 AM, "Iñaki Baz Castillo" <ibc at aliax.net> wrote:
>>
>> > El Lunes, 15 de Diciembre de 2008, Krunal Patel escribió: >
>> > force_rport(); Use force_rport(); at the beginning of your script, just
>> > there. And take if off from on_reply_route. -- Iñaki Baz Castillo
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081216/6da9a880/attachment.htm 


More information about the Users mailing list