[Asterisk-biz] gotta be a better way
Bill Michaelson
bill at cosi.com
Tue Nov 22 14:48:12 MST 2005
Based on what I've read about Asterisk variables, I'm considering this
ugly snippet to determine the device from which a call originates in
order to drive further processing...
exten => 807,1,Set(L=${LEN(${CHANNEL})})
exten => 807,2,set(L=${MATH(${L}-5)})
exten => 807,3,noop(${L})
exten => 807,4,set(DEVICE=${CHANNEL:0:${L}}) ; chop off 5 chars
I strongly suspect that there is a better way.
Eh?
More information about the asterisk-biz
mailing list