[asterisk-users] Expressions, CUT(), ... (was: Re: call forward all except the extension it is forwarded to)

Philipp Kempgen philipp.kempgen at amooma.de
Wed Feb 11 08:25:08 CST 2009


Vieri schrieb:

> I'm using Set(RETURN_EXT=${BLINDTRANSFER:4:4})
> but that assumes that I have only 4-digit extensions

Well, skip the length argument (the second ":4").

> and all have the same prefix (SIP/).
> Is there a more "portable" way?

Set(RETURN_EXT=CUT(BLINDTRANSFER,/,2));


   Philipp Kempgen

-- 
AMOOCON 2009, May 4-5, Rostock / Germany   ->  http://www.amoocon.de
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 



More information about the asterisk-users mailing list