[SR-Users] question bout UA and BOX in same NAT

MingHon gminghon at gmail.com
Mon Sep 12 14:35:27 CEST 2011


Hi,

Thanks Daniel. It work like charm :)

Cheers,


On Thu, Sep 8, 2011 at 10:22 PM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:

>  Hello,
>
>
> On 9/8/11 3:12 AM, MingHon wrote:
>
> Hi,
>
>  Sorry, let me explain my situation.
>
>  my box is behind nat with private ip 192.168.2.3 and nat ip is 60.x.x.x
>
>  and asterisk is same nat as the box with private ip 192.168.2.23
>
>  now let say i got 2 UA. one UA is located on different nat and another UA
> is same nat with the box.
>
>  UA1- private ip 10.10.10.123 and nat ip is 60.y.y.y
> UA2- private ip 192.168.2.100 and nat ip is 60.x.x.x
>
>  with advertised_address = 60.x.x.x
> UA1 successfully register.
> UA2 registration fail. because when box send option method, UA2 reply 200OK
> to 60.x.x.x
>
>  is there anyway to rewrite the via header when sending to UA2 ?
>
> then maybe is better to use set_advertise_address based on source IP, not
> only as global option:
>
>
> http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address
>
> So depending who is sending the request, you set the right advertised
> address per request.
>
> Cheers,
> Daniel
>
>
>  Thanks and Regards,
>
>  MingHon
>
> On Wed, Sep 7, 2011 at 4:40 PM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>>  Hello,
>>
>>
>> On 9/6/11 8:53 AM, MingHon wrote:
>>
>> Hello List,
>>
>>  Can i have UA in the same nat with the box and also UA in different nat
>> at the same time?
>>
>>  My box is currrently working behind nat with ip 192.168.2.3
>> and advertised_address is set to sip.mydomain.com
>>
>>  is it possible to append the via header replace the sip.mydomain.com to
>> 192.168.2.3 ?
>>
>>  not sure I understand what you want to achieve. First you say that you
>> want advertised address to be sip.mydomain.com but then you want it to be
>> 192.168.2.3, which would be if you don't set advertised address parameter.
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla -- http://www.asipto.com
>> Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- http://www.asipto.com
> Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>


-- 
Regards,

MingHon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110912/5e0fb906/attachment.htm>


More information about the sr-users mailing list