Call back is quite cool where users are in areas where no callshops, internet and other calling facilities are available except mobile phones, users will pay both calls.<br><br>There might be some other usages as well.<div>
<br></div><div>- Saeed<br><br><div class="gmail_quote">On Tue, Jul 14, 2009 at 9:48 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div class="im">On Mon, Jul 13, 2009 at 9:30 PM, Dome Charoenyost <span dir="ltr"><<a href="mailto:dome@tel.co.th" target="_blank">dome@tel.co.th</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
2009/7/14 Michael Collins <<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>>:<br>
<div>> What phone number do you call back? I mean, how do you know what the<br>
> customer's number is? Do you go by the caller id number?<br>
</div>yes callback to caller id<br>
<div><div></div><div></div></div></blockquote></div><div><br>Okay, here's a dialplan snippet that I used to successfully do the autocallback. In my case I used ext 1001 as the customer and portaudio as the "agent" if you get my meaning. Extension 1001 dials 9902, hangs up, and immediately the api_hangup_hook's originate command is executed. In this case it calls portaudio/auto_answer for the A-leg and user/1001 as the B-leg. I don't claim that it's the prettiest thing in the world but it definitely works. You'll need to adjust according to your specific situation.<br>
<br> <extension name="callback-test-answer-ib-call"><br> <!-- From mailing list - a question about how to do this:<br> Caller calls in, ring (no answer), capture Caller ID, wait for caller to hangup<br>
Generate outbound call to captured caller ID number<br> Only use dialplan, no scripting<br> --><br> <condition field="destination_number" expression="^9902$"><br> <action application="pre_answer"/><br>
<action application="set" data="callbacknum=${caller_id_number}"/><br> <action application="log" data="INFO Callback number is '${callbacknum}'"/><br>
<action application="set" data="api_hangup_hook=originate portaudio/auto_answer CBTEST${callbacknum}"/><br> <action application="sleep" data="10000"/> <!-- wait 10 sec for caller to hangup, otherwise we hangup --><br>
<action application="hangup"/><br> </condition><br> </extension><br><br> <extension name="callback-test-generate-ob-call"><br> <condition field="destination_number" expression="^CBTEST(\d+)$"><br>
<action application="bridge" data="user/$1"/><br> </condition><br> </extension><br><br><br>Let us know how it goes. BTW, what is the reason for this type of scenario? Just curious.<br>
<font color="#888888">
-MC <br></font></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div><br>
<br>
><br>
> -MC<br>
><br>
> On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <<a href="mailto:dome@tel.co.th" target="_blank">dome@tel.co.th</a>> wrote:<br>
>><br>
>> Dear sir,<br>
>> I want to user dialplan callback to customer. is posible to<br>
>> to this is dialplan XML ?<br>
>> Now i use javascript.<br>
>> my call flow.<br>
>> 1. customer call<br>
>> 2. FS rining and wait until customer hangup<br>
>> 3. callback to customer number<br>
>><br>
>><br>
>> Best Regards.<br>
>><br>
>> Dome C.<br>
>><br>
>> _______________________________________________<br>
>> Freeswitch-users mailing list<br>
>> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div></div></div><br>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>