[OpenSIPS-Users] Manipulation with the received parameter in Via for force_rport()

Bogdan-Andrei Iancu bogdan at opensips.org
Thu May 30 09:12:37 UTC 2024


Hi Denys,

Unfortunately this is not possible from script level - to pick the spot 
where the `received` will be inserted. Of course, there is all the time 
to options to put your fingers into the code :D .

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 28.05.2024 10:37, Denys Pozniak wrote:
> Hello!
>
> Is it possible to change where the received parameter is added to the 
> Via header using force_rport()?
> I need to put it after the branch parameter, since this turned out to 
> be important for very ancient SIP terminals.
>
> REGISTER sip:sip.local.net <http://sip.local.net> SIP/2.0
> Via: SIP/2.0/UDP 
> 192.168.1.216:5060;branch=z9hG4bK59d0cba274f66fa62e82a5a7d383b461;rport
>
> REGISTER sip:sip.local.net <http://sip.local.net> SIP/2.0
> Via: SIP/2.0/UDP 185.99.99.99:5060;branch=z9hG4bK92e8.8d908052.0;cid=1
> Via: SIP/2.0/UDP 192.168.1.216:5060 
> <http://192.168.1.216:5060>;*received=185.44.44.44*;branch=z9hG4bK59d0cba274f66fa62e82a5a7d383b461;rport=5060
>
> Thanks in advance!
>
>
> -- 
>
> BR,
> Denys Pozniak
>
>
>
> _______________________________________________
> 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/20240530/0d6a6049/attachment-0001.html>


More information about the Users mailing list