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:[EMAIL PROTECTED] 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/[EMAIL PROTECTED]" from ${CHANNEL}, but that's the full channel name. What am I missing here ? Thanks, Thomas _______________________________________________ Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
