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

Tilghman Lesher tilghman at meg.abyt.es
Mon Apr 11 02:36:50 CDT 2011


On Monday 11 April 2011 00:25:35 magnus.b at inputinterior.se wrote:
> Now i am lost.
> exten => 0424449631,n,NoOp(${CALLERID(name)})
> exten => 0424449631,n,NoOp(${CUT(CALLERID(name),\(,2):0:-1})
> -- Executing [0424449631 at fax.inputinterior.se:4] NoOp("OOH323/Avaya2-8",
> "Martela (fax)") in new stack
> -- Executing [0424449631 at fax.inputinterior.se:5] NoOp("OOH323/Avaya2-8",
> "fax)") in new stack
> But i am looking for the part before " (", in my case: "Martela"

Oh, sorry.  You were right before, then.  As far as the :0:-1 nomenclature,
what version of Asterisk are you using?  It was not supported before 1.4.

-- 
Tilghman



More information about the asterisk-users mailing list