From: "Yuan LIU" <[EMAIL PROTECTED]>
Date: Wed, 28 Feb 2007 21:24:56 -0800

From: kjcsb <[EMAIL PROTECTED]>
Date: Wed, 28 Feb 2007 18:23:46 -0800 (PST)

>Check out /path/to/src/asterisk/doc/README.variables

${DIALEDPEERNUMBER} would give it to me if I sliced it up.
exten => s,n,Set(Foo=${CUT(DIALEDPEERNUMBER,@,2)})
exten => s,n,Set(Foo=${CUT(Foo,/n,1)})

Are there any better options?

Cameron

This is beautiful. How much better can it get? Syntax-wise, you can combine the two lines into one because the value of CUT() can be used inside another function including CUT(). Using inheritable

Take this back; CUT expects a variable name, not a value:-(

variable could be an alternative.  But efficiency difference is neglegible.

Yuan Liu


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to