[OpenSIPS-Users] Opensips 2.1.2 - can't pass var in rewritehostport()
    Liviu Chircu 
    liviu at opensips.org
       
    Tue Nov 20 06:23:43 EST 2018
    
    
  
Minor nit: $rd is not exactly the equivalent of rewritehostport(), 
rather $rd used together with $rp [1].
[1]: https://www.opensips.org/Documentation/Script-CoreVar-3-0#toc70
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 20.11.2018 10:44, Răzvan Crainea wrote:
> All you have to do is to assingn the $rd pseudo-variable, which does 
> the same thing as rewritehostport() function.
>
> On 11/14/18 12:39 PM, maatohewetbi wrote:
>> How can I use it, like that?
>> $rd=$hdr(X-IP-Header)
>> rewritehostport($rd:5060)
>>
>>
>>
>>
>> -- 
>> Sent from: 
>> http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
    
    
More information about the Users
mailing list