[Kamailio-Users] rewritehostport

Andrew Nowrot andrew.nowrot at gmail.com
Wed May 27 16:06:18 CEST 2009


Hi

I am having the following problem. Can I use avp variable and
rewritehostport function in this way:

exec_avp("pool2domain.py $tU", "$avp(s:domainport)");
rewritehostport("$avp(s:domainport)");

Script called from exec_avp returns the string sample.sip.domain:port
and it is written to avp variable. Can I use this variable in
rewritehospport function because kamailio does not rewrite the host
and the port number

If  I can not use it in this way is there any other solution.

Cheers
Andrew



More information about the Users mailing list