Re: [SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-14 Thread Daniel-Constantin Mierla
On 06/01/15 10:21, Daniel Tryba wrote: > On Monday 05 January 2015 18:57:00 Victor Seva wrote: >> Check >> http://www.kamailio.org/docs/modules/4.1.x/modules/siputils.html#siputils.f >> .is_e164 > Thanks for the pointer but the value doesn't necesarrily contain e164 > numbers, > for example the

Re: [SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-06 Thread Daniel Tryba
On Monday 05 January 2015 18:57:00 Victor Seva wrote: > Check > http://www.kamailio.org/docs/modules/4.1.x/modules/siputils.html#siputils.f > .is_e164 Thanks for the pointer but the value doesn't necesarrily contain e164 numbers, for example the value might contain the Dutch harmonized carrier vo

Re: [SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-06 Thread Alex Hermann
On Monday 05 January 2015 16:19:51 Daniel Tryba wrote: > I'm using an avp to make a redirect decision. Normally this avp contains Dutch > telephone numbers (+31[0-9]{7,10}). With a simple: > if($avp(dst_redirectnumber)) > { "if" statements only handle boolean conditions. An avp value does not re

Re: [SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-05 Thread Victor Seva
On 01/05/2015 04:19 PM, Daniel Tryba wrote: > Not a really important question, just an observation that caused some > headscratching on my first day after a nice vacation. > > I'm using an avp to make a redirect decision. Normally this avp contains > Dutch > telephone numbers (+31[0-9]{7,10}).

Re: [SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-05 Thread Daniel Tryba
Forgot to mention this is version 4.1.3. -- POCOS B.V. - Croy 9c - 5653 LC Eindhoven Telefoon: 040 293 8661 - Fax: 040 293 8658 http://www.pocos.nl/ - http://www.sipo.nl/ K.v.K. Eindhoven 17097024 ___ SIP Express Router (SER) and Kamailio (OpenSER)

[SR-Users] Unexpected evaluation to false on a phonenumber in $avp

2015-01-05 Thread Daniel Tryba
Not a really important question, just an observation that caused some headscratching on my first day after a nice vacation. I'm using an avp to make a redirect decision. Normally this avp contains Dutch telephone numbers (+31[0-9]{7,10}). With a simple: if($avp(dst_redirectnumber)) { #ch