>From what I saw, Nat´d por does not change. It always use 52548. Questions:
1 - In order to get rport, as you mentioned, i can use transformation. ¿What variable / pseudovariable I can use to get a string that contains rport? 2 - After I get that info, what would be the best way to insert that info in kamailio.cfg file 3 - After updating the file in some way, how can I restart the service? and last but not least, Is there a more elegant way to do this? I am feeling like reinvent the wheel. Thank you for all your support 2016-01-19 19:06 GMT+01:00 Daniel-Constantin Mierla <mico...@gmail.com>: > To get rport you can use transformations. > > If you restart kamailio, is the firewall preserving the same value for > rport? > > Cheers, > Daniel > > On 19/01/16 18:18, Nelson Migliaro wrote: > > I am thinking that I cat get the port during the first call and then > > use that port for the rest of calls. > > Maybe that first call will fail but after that, all calls will go fine. > > > > Example of a Trying showing received port: 52548 > > > > ¿Do you know what pseudovariable represent that value? > > > > I tested with all variables I could find but I could not find anyone. > > > > Thank you > > > > > --------------------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > 2016/01/19 17:38:38.981987 VENDOR-IP:5060 -> KAMAILIO-IP:5060 > > SIP/2.0 100 trying -- your call is important to us > > Via: SIP/2.0/UDP > > > PUBLIC-IP:52548;branch=z9hG4bK8b5c.b122371ac0ac2f3ef3204b0f192cb16c.1;rport=52548 > > Via: SIP/2.0/UDP > > ASTERISK-IP:5060;received=ASTERISK-IP;branch=z9hG4bK4082d124;rport=5060 > > From: 888888888 <sip:888888888@ASTERISK-IP>;tag=as34f971fe > > To: <sip:999999999@VENDOR-DOMAIN> > > Call-ID: 0b5307fa290674a97b47970643fce42a@ASTERISK-IP:5060 > > CSeq: 102 INVITE > > Server: kamailio > > Content-Length: 0 > > > > > > -- > Daniel-Constantin Mierla > http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda > Book: SIP Routing With Kamailio - http://www.asipto.com > http://miconda.eu > > > _______________________________________________ > 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 >
_______________________________________________ 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