[OpenSIPS-Users] How to pass a variable in sethostport function .
Liviu Chircu
liviu at opensips.org
Mon Jul 20 10:59:50 EST 2020
On 20.07.2020 13:56, Sasmita Panda wrote:
> I am using opensips-2.2 . If it wont take any variable that means this
> function will take only fix value which must be a "domain:port "or
> "IP:port " . Am I right ?
Yes.
>
> Is there any way I can fill this dynamically while processing the INVITE ?
Try to use the "$rd" [1] and "$rp" [2] variables. You should be able to
obtain the same effect.
Cheers,
[1]: https://opensips.org/Documentation/Script-CoreVar-3-2#toc69
[2]: https://opensips.org/Documentation/Script-CoreVar-3-2#toc74
--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
More information about the Users
mailing list