[Asterisk-Users] Missing Variable in Local Channels

Luca Casavola luca at softpi.it
Mon Jan 24 11:11:54 MST 2005


Why  I am not able to see variables defined in the manager  Originate 
command?
I send an originate command like

/bin/echo "Channel: Local/$1 at chiamamezzi-dialout";\
/bin/echo "Variable: 
callid=123456|_number=$1|url=pippo|menuid=FOP|redirectnum=0554202880";\
/bin/echo "Context: chiamamezzi";\
/bin/echo "Exten: s";\
/bin/echo "Priority: 1";\
/bin/echo "Callerid: Asterisk Automatic Wardial";\
/bin/echo "Timeout: 10000";\
/bin/echo "Async: True";\
/bin/echo "ActionId: 10";\        

where the dialplan is:
[chiamamezzi-dialout]
exten => _X.,1,Dial(ZAP/g1d/${EXTEN},30)
exten => _X.,2,NoOp( _X.  DIALSTATUS is ${DIALSTATUS} number is ${number} )
exten => _X.,3,GotoIf($[$[${DIALSTATUS} = NOANSWER ] | $[${DIALSTATUS} = 
CANCEL]] ?_X.,5)

The problem is  ${number}  has no value . Why?
Cheers
Luca                                       
                                                                             

~                                                     

-- 

Ing. Luca Casavola
(Technical Manager)

Software Products Italia
Milano / Roma / Firenze

tel. ++39 055/33651
fax  ++39 055/340558
e-mail: luca.casavola at softpi.it
   www: http://www.softpi.it






More information about the asterisk-users mailing list