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">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</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">&lt;<a href="mailto:dome@tel.co.th" target="_blank">dome@tel.co.th</a>&gt;</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 &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;:<br>
<div>&gt; What phone number do you call back? I mean, how do you know what the<br>
&gt; customer&#39;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&#39;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 &quot;agent&quot; if you get my meaning. Extension 1001 dials 9902, hangs up, and immediately the api_hangup_hook&#39;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&#39;t claim that it&#39;s the prettiest thing in the world but it definitely works. You&#39;ll need to adjust according to your specific situation.<br>


<br>  &lt;extension name=&quot;callback-test-answer-ib-call&quot;&gt;<br>    &lt;!-- 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>    --&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^9902$&quot;&gt;<br>      &lt;action application=&quot;pre_answer&quot;/&gt;<br>


      &lt;action application=&quot;set&quot; data=&quot;callbacknum=${caller_id_number}&quot;/&gt;<br>      &lt;action application=&quot;log&quot; data=&quot;INFO Callback number is &#39;${callbacknum}&#39;&quot;/&gt;<br>


      &lt;action application=&quot;set&quot; data=&quot;api_hangup_hook=originate portaudio/auto_answer CBTEST${callbacknum}&quot;/&gt;<br>      &lt;action application=&quot;sleep&quot; data=&quot;10000&quot;/&gt; &lt;!-- wait 10 sec for caller to hangup, otherwise we hangup --&gt;<br>


      &lt;action application=&quot;hangup&quot;/&gt;<br>    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>  &lt;extension name=&quot;callback-test-generate-ob-call&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^CBTEST(\d+)$&quot;&gt;<br>


      &lt;action application=&quot;bridge&quot; data=&quot;user/$1&quot;/&gt;<br>    &lt;/condition&gt;<br>  &lt;/extension&gt;<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>
&gt;<br>
&gt; -MC<br>
&gt;<br>
&gt; On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost &lt;<a href="mailto:dome@tel.co.th" target="_blank">dome@tel.co.th</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Dear sir,<br>
&gt;&gt;         I want to user dialplan callback to customer. is posible to<br>
&gt;&gt; to this is dialplan XML ?<br>
&gt;&gt; Now i use javascript.<br>
&gt;&gt; my call flow.<br>
&gt;&gt; 1. customer call<br>
&gt;&gt; 2. FS rining and wait until customer hangup<br>
&gt;&gt; 3. callback to customer number<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Best Regards.<br>
&gt;&gt;<br>
&gt;&gt; Dome C.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Freeswitch-users mailing list<br>
&gt;&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<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>