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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to