On Wed, 17 Apr 2013, neo haux wrote:
I am using asterisk 11.1.0. How to display the caller number (from
asterisk -rvvv terminal) in the first step of the extension (before
doing any action) ?
Use 'verbose()' in priority 1. Note that this means whatever was at
priority 1 needs to be changed to either '2' or 'n'.
To display the called number, I use something like:
exten = _x.,1, verbose(1,[${EXTEN}@${CONTEXT}])
(The nice thing about exten@context is that you can use your mouse to
quickly select it then type 'dialplan show ' and then paste the clipboard
to see the relevant section of the dialplan.)
To display the caller ID, how about something like:
exten = _x.,1,
verbose(1,[${CALLERID(num)}@${EXTEN}@${CONTEXT}])
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users