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?


_______________________________________________
Asterisk-Biz mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-biz

Reply via email to