If I manually pass a string value to rewriteuri it works, but if I pass the 
same string from a database value it doesn't:

if ($dbr(ra=>[0,4]) == "callfwd_noanswer") {    $
does not work --> rewriteuri("$dbr(ra=>[0,6])");
works -->                rewriteuri("sip:someone@somewhere");
                                append_branch();
                                route(0);

Eric Hosch
Chief Engineer
KLBK-TV | KAMC-TV
7403 S. University Ave.
Lubbock, TX 79423
O * 806.748.2208<tel:806.748.2208>
F * 806.748.2269<tel:806.748.2269>
eho...@klbk13.tv<mailto:eho...@klbk13.tv>
www.everythinglubbock.com<http://www.everythinglubbock.com/>
[Nexstar Media Group, Inc. | everythinglubbock.com | KLBK-TV | KAMC-TV]
Nexstar Media Group, Inc. provides services for KAMC-TV and Mission 
Broadcasting, Inc. through an Outsourcing Agreement. KLBK and KAMC do not 
discriminate in advertising contracts on the basis of race, ethnicity or gender 
and further requires that in the performance of all KLBK/KAMC advertising 
agreements. KLBK/KAMC requires that each party not discriminate on the basis of 
race or ethnicity. This e-mail and any files transmitted with it are the 
property of NexstarMedia Group, Inc., are confidential, and are intended solely 
for the use of the individual or entity to whom this e-mail is addressed and/or 
as indicated in the applicable file. If you are not one of the named 
recipient(s) or otherwise have reason to believe that you have received this 
message in error, please notify the sender and delete this message immediately 
from your computer. Any other use, retention, dissemination, forwarding, 
printing or copying of this e-mail is strictly prohibited.

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to