[Asterisk-Users] Is this a bug or by design? Workaround?

2005-02-18 Thread Stig Andersson
Hi, I need to use the trailing 5 digits of a callerid. callerid may be anything from a length of 4 to 10 digits in this case. Using this: --- SubString,cid=${CALLERIDNUM}|-5|5 Works great, BUT shows this message: The use of Substring application is deprecated. Please use

Re: [Asterisk-Users] Is this a bug or by design? Workaround?

2005-02-18 Thread Olle E. Johansson
Stig Andersson wrote: So, I try - SetVar(cid=${CALLERIDNUM:-5:5}) The result is a empty string if CALLERIDNUM is less than 5 digits long, which is NOT the case of SubString. SubString command returns what remains of the variable, that is - if CALLERIDNUM is 4 digits in length, it