[asterisk-users] Need help to strip variable

van Leen, Phil pvanleen at nontaurus.com
Thu Mar 29 20:52:34 MST 2007


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[- at server.com])'

All replies greatfully accepted.

Phil


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





More information about the asterisk-users mailing list