[Asterisk-Users] Channel name (and substring)
B. J. Bomar
bbomar at raccoon.com
Thu Mar 17 13:06:24 MST 2005
Try using the Cut application. For your example channel you can use the
following.
exten => whatever,n,Cut(my_variable=CHANNEL,@,1)
That should give you your IAX2/white_phone. For more info, take a look at
either the wiki or CLI help.
B. J.
-----Original Message-----
From: Thomas Andrews [mailto:tandrews at grok.co.za]
Sent: Thursday, March 17, 2005 12:22
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Channel name (and substring)
How do I get the bit like "IAX2/white_phone" in extensions.conf eg from
pre-defined variables or variants thereof ?
What I *do* get is strings like this "IAX2/white_phone at white_phone-4"
from ${CHANNEL}, but that's the full channel name.
What am I missing here ?
Thanks,
Thomas
More information about the asterisk-users
mailing list