Hi,then maybe is better to use set_advertise_address based on source IP, not only as global option:
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.yUA2- private ip 192.168.2.100 and nat ip is 60.x.x.x
with advertised_address = 60.x.x.xUA1 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 ?
Thanks and Regards,
MingHon
On Wed, Sep 7, 2011 at 4:40 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,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.
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 ?
Cheers,
Daniel
-- Daniel-Constantin Mierla -- http://www.asipto.com Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat http://linkedin.com/in/miconda -- http://twitter.com/miconda
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://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/kat http://linkedin.com/in/miconda -- http://twitter.com/miconda