[Asterisk-Users] Channel name (and substring)

Thomas Andrews tandrews at grok.co.za
Thu Mar 17 13:25:19 MST 2005


On Thu, Mar 17, 2005 at 02:06:24PM -0600, B. J. Bomar wrote:

> Try using the Cut application.  For your example channel you can use the
> following.
> 
> exten => whatever,n,Cut(my_variable=CHANNEL,@,1)

Thanks, I thought of that, but it doesn't account for cases like Zap/1
that becomes Zap/1-1 in the ${CHANNEL} variable because the convention
seems to change from '@' to '-'. It means I can't write a "generic"
translation.

Thanks,
Thomas



More information about the asterisk-users mailing list