[asterisk-users] SET EXTENSION

Philipp Kempgen philipp.kempgen at amooma.de
Tue Aug 21 14:08:53 CDT 2007


Nitesh Divecha wrote:

> How can I SET EXTENSION from context?
> 
> This is my context: -
> 
> [docall-usa]
> exten => _NXXNXXXXXX,1,Answer
> exten => _NXXNXXXXXX,n,Set() ; <<What do I need to set here>>
> exten => _NXXNXXXXXX,n,DeadAGI(dousacall.php|1)
> exten => _NXXNXXXXXX,n,Hangup
> 
> I need to add 1 in front of ${EXTEN} and then send the call to dousa.php.
> 
> Set(CALLERID(number)=1${EXTEN}) will set the callerID to that 
> extension... But I want to add '1' to my extension.
> 
> Can anyone please put some light... what I am missing here...

Why mess around with the dialplan when you call a PHP
script anyway? Do it in the script.

Or pass 1${EXTEN} as an argument if you really need to.

Regards,
  Philipp Kempgen

-- 
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
    Let's use IT to solve problems and not to create new ones.
          Asterisk? -> http://www.das-asterisk-buch.de
              My pick of the month: rfc 2822 3.6.5

Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998



More information about the asterisk-users mailing list