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.<br><br>I also tried the same from dialplan; <br><br>BoxA <br>
<br> <extension name="ivr_demo"><br> <condition field="destination_number" expression="^5000$"><br> <action application="answer"/><br> <action application="sleep" data="2000"/><br>
<action application="export" data="user_id=123456" /><br> <action application="info" /> <span style="background-color: rgb(255, 255, 102);">Here I can see the user_id is set like ( variable_user_id : [123456] )</span><br>
<action application="bridge" data="sofia/${use_profile}/5111@BoxB" /> <br> </condition><br> </extension><br><br>BoxB<br><br> <extension name="ivr_demo2"><br>
<condition field="destination_number" expression="^5111$"><br> <action application="answer"/><br> <action application="sleep" data="2000"/> <br>
<span style="background-color: rgb(255, 255, 102);"><action application="info" /></span> <span style="background-color: rgb(255, 255, 102);">Here in this Info i dont see user_id variable</span><br>
<action application="managed" data="MyClass myvar ${ccnn_from_issuer}" /><br> </condition><br> </extension><br><br>How can i do get the user_id variable value to BoxB?<br>
<br>Please help.<br><br>Thanks<br><br>Jigs.<br><br><div class="gmail_quote">On Wed, Jul 7, 2010 at 11:11 AM, Jigar Thakkar <span dir="ltr"><<a href="mailto:thakkar.jigar@gmail.com">thakkar.jigar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi, <br><br>I have tried this to forward a call from BoxA to BoxB; <br><br>1. session.Execute("bridge", [user_id=123456]sofia/internal/5111@BoxB)<br>
<br> 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.<br>
<br>2. I also tried session.Execute ("originate",[user_id=123456]sofia/internal/5111@BoxB)<br><br> 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.<br>
<br>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.<br><br>Thanks & Regards,<br>
<br>Jigs.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Jul 6, 2010 at 12:01 PM, Jigar Thakkar <span dir="ltr"><<a href="mailto:thakkar.jigar@gmail.com" target="_blank">thakkar.jigar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Guys,<br><br>I am a beginner to FreeSWITCH. I have few questions.<br><br>1. What is the difference between BRIDGE, ORIGINATE and TRANSFER.<br>2. I have two FreeSWITCH box. BoxA and BoxB<br> 1. User will make a call to BoxA; BoxA's IVR collect some information i.e. userid and pin.<br>
2. Now BoxA will forward/transfer/bridge call to BoxB's IVR ( here i want to pass userid as channel variable)<br> 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)<br>
4. Box A shall play message to User whether this process is successful or not. And then call shall be hanged up.<br> <br> My work till date is <br> 1. setup the two freeswitch ivr, box a and box b.<br> 2. I wrote .net code to handle the individual role. i.e. to ask user id and pin<br>
3. I facing the problem in forwarding a call from boxA to boxB along with the userID <br>Please suggest the best way to implement it. I hope I have explained the scenario properly.<br><br>Thanks & Regards,<br><br>
Jigs.<br>
</blockquote></div><br>
</div></div></blockquote></div><br>