[asterisk-users] Need help to strip variable

Philipp Kempgen
Thu, 29 Mar 2007 21:44:49 -0000

van Leen, Phil wrote:

> EG:
> With $(SIPURI) I want to keep just the sip number and delete the remainder
> '@server.com'.
>
> Ideally I'd like to use 'SayDigits($(sipuri[-@server.com])'

Maybe
Set(without_host=CUT(${SIPURI},@,1))
?

Regards,
  Philipp

--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
     Let's use IT to solve problems and not to create new ones.
           Asterisk? -> http://www.das-asterisk-buch.de

Gesch?ftsf?hrer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998