Le 15/04/2012 10:44, Olivier CALVANO a écrit :
Hi

actually, i have a asterisk server with all SIP Account.

this Asterisk server sent all outgoing call to a second Asterisk
server (and this asterisk sent to the
telco)

On the first Asterisk, i use:

         exten =>  _x,1,Set(CDR(CodeTier)=BUS-FRAMOBI)
         exten =>  _x,2,Set(CALLERID(num)=${CALLERIDNUM})
         exten =>  _x,3,Dial(IAX2/Srv2/${EXTEN},180,rt)
         exten =>  _x,4,Hangup


i have SIP user: USRSIP001
(user sip is in realtime)
he use this name with a password

i want that the first server sent to the second into a variable the "USRSIP001"
for get it into a AGI script.

It's possible ?

exten =>  _x,3,Dial(IAX2/Srv2/${EXTEN}/USRSIP001,180,rt)

you should get the value in $CALLID[1-4] on the second server.

--
Daniel

--
_____________________________________________________________________
-- 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

Reply via email to