[asterisk-users] Pass Dialed number to a script

Jared Smith jsmith at digium.com
Thu Jul 19 09:43:09 CDT 2007


On Thu, 2007-07-19 at 08:43 -0400, shawnl at up.net wrote:
> Looking for a simple way to pass the number that I dialed to a script in 
> extensions.conf... something like this:

[snip]

> how do I pass the number that was dialed (from the creation of a .call file) 
> to the rep_callback.sh script ?

You can define a channel variable in your call file, and that channel
variable will be exposed to the dialplan. Simply put a line in your call
file that looks like:

Set: variablename=somevalue

-- 
Jared Smith
Community Relations Manager
Digium, Inc.



More information about the asterisk-users mailing list