[Freeswitch-users] Two FreeSWITCH Box IVR Call Transfer
Jigar Thakkar
thakkar.jigar at gmail.com
Wed Jul 7 07:07:14 PDT 2010
In logs (Info) at BoxA before executing Bridge; I can see that it has set
user_id=123456 (variable_user_id : [123456]) but I don't see this variable
at BoxB.
I also tried the same from dialplan;
BoxA
<extension name="ivr_demo">
<condition field="destination_number" expression="^5000$">
<action application="answer"/>
<action application="sleep" data="2000"/>
<action application="export" data="user_id=123456" />
<action application="info" /> Here I can see the user_id is set
like ( variable_user_id : [123456] )
<action application="bridge" data="sofia/${use_profile}/5111 at BoxB"
/>
</condition>
</extension>
BoxB
<extension name="ivr_demo2">
<condition field="destination_number" expression="^5111$">
<action application="answer"/>
<action application="sleep" data="2000"/>
<action application="info" /> Here in this
Info i dont see user_id variable
<action application="managed" data="MyClass myvar
${ccnn_from_issuer}" />
</condition>
</extension>
How can i do get the user_id variable value to BoxB?
Please help.
Thanks
Jigs.
On Wed, Jul 7, 2010 at 11:11 AM, Jigar Thakkar <thakkar.jigar at gmail.com>wrote:
> Hi,
>
> I have tried this to forward a call from BoxA to BoxB;
>
> 1. session.Execute("bridge", [user_id=123456]sofia/internal/5111 at BoxB)
>
> It forwards the call successfully; BoxB answer the call and does the
> process but here I don't see the variable "user_id" value I set.
> session.GetVariable("user_id") returns empty string.
>
> 2. I also tried session.Execute
> ("originate",[user_id=123456]sofia/internal/5111 at BoxB)
>
> In this case it creates a new Channel successfully but I don't see any
> call request to BoxB; It just creates a new channel successfully and after
> some time call gets cleared.
>
> Please Help me regarding this; i want to know what is the difference
> between Bridge and Originate; and Also Let me know the best possible
> scenario to implement the following mentioned scenario.
>
> Thanks & Regards,
>
> Jigs.
>
>
> On Tue, Jul 6, 2010 at 12:01 PM, Jigar Thakkar <thakkar.jigar at gmail.com>wrote:
>
>> Hi Guys,
>>
>> I am a beginner to FreeSWITCH. I have few questions.
>>
>> 1. What is the difference between BRIDGE, ORIGINATE and TRANSFER.
>> 2. I have two FreeSWITCH box. BoxA and BoxB
>> 1. User will make a call to BoxA; BoxA's IVR collect some information
>> i.e. userid and pin.
>> 2. Now BoxA will forward/transfer/bridge call to BoxB's IVR ( here i
>> want to pass userid as channel variable)
>> 3. Box B will ask for another pin i.e. pin2, verifies the same and
>> pass whether pin2 is correct or not to BoxA (also transfers the call to
>> boxA's ivr)
>> 4. Box A shall play message to User whether this process is
>> successful or not. And then call shall be hanged up.
>>
>> My work till date is
>> 1. setup the two freeswitch ivr, box a and box b.
>> 2. I wrote .net code to handle the individual role. i.e. to ask user id
>> and pin
>> 3. I facing the problem in forwarding a call from boxA to boxB along
>> with the userID
>> Please suggest the best way to implement it. I hope I have explained the
>> scenario properly.
>>
>> Thanks & Regards,
>>
>> Jigs.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100707/207a1dd5/attachment-0001.html
More information about the FreeSWITCH-users
mailing list