[SR-Users] variable in rewritehost ?`

Ali Jawad ali.jawad at splendor.net
Mon Dec 17 12:06:43 CET 2012


Thanks Alex, I did try the following :

        $du = "sip:support1 at ip.of.second.server:5060";
        route(1);

I am getting too many hops though, the alias on both servers is different
and the hosts file includes the alias for each server.

Regards

On Mon, Dec 17, 2012 at 12:45 PM, Alex Balashov
<abalashov at evaristesys.com>wrote:

> rewritehost doesn't accept PVs.  It's a rather legacy function.  Just
> modify the RURI directly, instead using $ru (and $rU, $rd, and $rp).
>
> For more information, see:
>
> http://www.kamailio.org/wiki/**cookbooks/3.3.x/**pseudovariables<http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables>
>
>
> On 12/17/2012 04:51 AM, Ali Jawad wrote:
>
>  Hi
>> I am using slqops to get some user related info from location table, I
>> want to use that info in rewritehost, however when I do use a variable
>> in rewritehost I get an error "Unable to resolve variable". Is it
>> possible to use a variable in rewritehost ? If not what is the workaround
>> ?
>> Thanks
>>
>>
>> ______________________________**_________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>>
>>
>
> --
> Alex Balashov - Principal
> Evariste Systems LLC
> 235 E Ponce de Leon Ave
> Suite 106
> Decatur, GA 30030
> United States
> Tel: +1-678-954-0670
> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
>
> ______________________________**_________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>



-- 
*Ali Jawad
*
*Information Systems Manager
CISSP - PMP - ITIL V3 - RHCE - VCP - C|EH - CCNA - MCSA
*
*Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +9611373725/ext 116
FAX: +9611375554

*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121217/0f3ad477/attachment.htm>


More information about the sr-users mailing list