[asterisk-users] Set variables from one asterisk ta a second.

Administrator TOOTAI admin at tootai.net
Sun Apr 15 05:55:27 CDT 2012


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



More information about the asterisk-users mailing list