[asterisk-users] Variable stripping/removing part of string

Jeroen Eeuwes jeroeneeuwes at gmail.com
Mon Apr 11 05:09:25 CDT 2011


Hi Magnus,

> exten => 0424449631,n,NoOp(${CUT(CALLERID(name),\(,1):0:-1})
>
> But that gave me “Martela “ so my way of doing it is wrong.
> Any that can tell me what I am doing wrong or have any better suggestion
> howto do it?

I think you are not able to do it in one step. Can you try something like this:

exten => 0424449631,n,Set(TESTING=${CUT(CALLERID(name),\(,1)})
exten => 0424449631,n,NoOp(${TESTING:0:-1})

Best regards,
Jeroen Eeuwes



More information about the asterisk-users mailing list