[Asterisk-Users] Is this a bug or by design? Workaround?
Olle E. Johansson
oej at edvina.net
Fri Feb 18 05:53:39 MST 2005
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 returns 4 digits. If CALLERIDNUM is 6 digits,
> it returns 5 digits.
>
> If this approach should replace "Substring" - it should behave identically, shouldn't it?
>
> If by design, is there a workaround?
This was fixed in cvs head this week, maybe coming up soon in cvs stable.
/Olle
More information about the asterisk-users
mailing list