[SR-Users] t_on_failure to named failure route

Daniel-Constantin Mierla miconda at gmail.com
Fri Apr 30 20:28:04 CEST 2010



On 4/30/10 8:11 PM, Steven C. Blair wrote:
>
> The error is produced within the following block per the config file 
> syntax check "-c".
>
> if (method=="INVITE" && !@to.tag) {
>
>                 t_on_failure("FAILURE_ROUTE");
>
>         }
>

not using selects in this way but via PV framework, but I think the 
problem is '!@to.tag' since the select is returning string.

Try to use 'strempty(@to.tag)'.


Alternative with PV is $tt==$null or via sipuri module function has_totag()

Cheers.
Daniel
>
> *From:* Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> *Sent:* Friday, April 30, 2010 2:09 PM
> *To:* Steven C. Blair
> *Cc:* sr-users at lists.sip-router.org
> *Subject:* Re: [SR-Users] t_on_failure to named failure route
>
> Hello,
>
> On 4/30/10 7:58 PM, Steven C. Blair wrote:
>
> I'm attempting to run an existing SER config file under a recent build 
> of sip-router. I get a syntax error on the t_on_failure("noroute") 
> call  that exists in my config file. The specific error is "bad 
> expression: type mismatch (str instead of int)". I presume this means 
> sip-router does not support named failure route labels. Is that correct?
>
>
> no, t_on_failure("xyz") can take string parameter -- actually it was 
> always string, but converted to int in past versions. The error is in 
> an expression like statement. Can you paste the snippet where you get 
> the error (several lines before and after).
>
> Cheers,
> Daniel
>
>
> Thanks,Steve
>
> ---
>
> ISC Networking & Telecommunications
>
> 3401 Walnut Street, Suite 221A
>
> Philadelphia, PA 19104
>
> 215-573-8396
>
> 215-898-9348 (fax)
>
>   
>   
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org  <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>    
>
>
>
> -- 
> Daniel-Constantin Mierla
> *http://www.asipto.com/
> *http://twitter.com/miconda
> *http://www.linkedin.com/in/danielconstantinmierla  

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/
* http://twitter.com/miconda
* http://www.linkedin.com/in/danielconstantinmierla

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


More information about the sr-users mailing list