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

magnus.b at inputinterior.se magnus.b at inputinterior.se
Mon Apr 11 02:56:03 CDT 2011


It was a 1.8 but then we started to do a lot of development (ooh323) so 
today it is Asterisk SVN-may-ooh323_ipv6_direct_rtp-r311741MS-/trunk.
Can hardly se that we have done any changes that would cause my "problem".

-----Ursprungligt meddelande----- 
From: Tilghman Lesher
Sent: Monday, April 11, 2011 9:36 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Variable stripping/removing part of string

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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 




More information about the asterisk-users mailing list