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