[asterisk-users] Need help to strip variable

van Leen, Phil
Thu, 29 Mar 2007 20:53:23 -0000

Hi all,

I have a need to strip some characters from a variable to get the right data
but have only found how to strip all but the last or middle stuff, need to
keep the beginning.

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])'

All replies greatfully accepted.

Phil


---------------------------------------------------------------------
To unsubscribe, e-mail: asterisk-perl-unsubscribe@lists.gnuinter.net
For additional commands, e-mail: asterisk-perl-help@lists.gnuinter.net