[Asterisk-Users] Howto Cut the first digit

Christian Reelfs chris at mynnga.de
Fri Mar 31 04:59:11 MST 2006


Hi, sorry for this noop question,
but does anybody know how to cut the first digit of a variable?

example:
044612345
should be after cut operation:
44612345

My try in the extension.conf:

exten => _0[0-9].,2,Cut(mynum=EXTEN,/ ,1)
exten => _0[0-9].,3,Dial(Zap/g1/${mynum},90,T)

but it didn't work, my problem is the delemiter, I have no delemiter, 
the default is "-" but how to use the function cut() without an delemiter?
Just snip the first digit of a phonenumber.

MfG,
Christian Reelfs





More information about the asterisk-users mailing list