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

Danny Nicholas danny at debsinc.com
Sun Apr 15 13:54:49 CDT 2012


I believe they were trying to say
exten => _x,2,AGI(MyScript.agi,${$CALLERID(num){0:4}})


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
CALVANO
Sent: Sunday, April 15, 2012 1:52 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Set variables from one asterisk ta a second.

Hi

Thanks for your help but i don't know this variable: $CALLID[1-4]


it's correct:

        exten => _x,2,AGI(MyScript.agi,${$CALLID[1-4]})

?

best regards
olivier




Le 15 avril 2012 12:55, Administrator TOOTAI <admin at tootai.net> a écrit :
> 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

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




More information about the asterisk-users mailing list