[SR-Users] problem with rewriteuri

Eric Hosch EHosch at klbk13.tv
Fri Aug 10 23:43:05 CEST 2018


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 at 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>
ehosch at klbk13.tv<mailto:ehosch at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180810/e12afa4b/attachment.html>


More information about the sr-users mailing list