[SR-Users] t_on_failure to named failure route

2010-04-30 Thread Steven C. Blair

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?

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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] t_on_failure to named failure route

2010-04-30 Thread Daniel-Constantin Mierla

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@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

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] t_on_failure to named failure route

2010-04-30 Thread Steven C. Blair

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");
}

From: Daniel-Constantin Mierla [mailto:mico...@gmail.com]
Sent: Friday, April 30, 2010 2:09 PM
To: Steven C. Blair
Cc: sr-users@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@lists.sip-router.org<mailto:sr-users@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
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] t_on_failure to named failure route

2010-04-30 Thread Daniel-Constantin Mierla



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:mico...@gmail.com]
*Sent:* Friday, April 30, 2010 2:09 PM
*To:* Steven C. Blair
*Cc:* sr-users@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@lists.sip-router.org  <mailto:sr-users@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

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users