VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
dome at tel.co.th Guest
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Mon Jul 13, 2009 8:12 pm Post subject: [Freeswitch-users] Originate in Dial plan |
|
|
What phone number do you call back? I mean, how do you know what the customer's number is? Do you go by the caller id number?
-MC
On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
|
|
Back to top |
|
|
dome at tel.co.th Guest
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Jul 14, 2009 2:50 am Post subject: [Freeswitch-users] Originate in Dial plan |
|
|
On Mon, Jul 13, 2009 at 9:30 PM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote: | 2009/7/14 Michael Collins <msc@freeswitch.org (msc@freeswitch.org)>:
Quote: | What phone number do you call back? I mean, how do you know what the
customer's number is? Do you go by the caller id number?
|
yes callback to caller id
|
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.
<extension name="callback-test-answer-ib-call">
<!-- From mailing list - a question about how to do this:
Caller calls in, ring (no answer), capture Caller ID, wait for caller to hangup
Generate outbound call to captured caller ID number
Only use dialplan, no scripting
-->
<condition field="destination_number" expression="^9902$">
<action application="pre_answer"/>
<action application="set" data="callbacknum=${caller_id_number}"/>
<action application="log" data="INFO Callback number is '${callbacknum}'"/>
<action application="set" data="api_hangup_hook=originate portaudio/auto_answer CBTEST${callbacknum}"/>
<action application="sleep" data="10000"/> <!-- wait 10 sec for caller to hangup, otherwise we hangup -->
<action application="hangup"/>
</condition>
</extension>
<extension name="callback-test-generate-ob-call">
<condition field="destination_number" expression="^CBTEST(\d+)$">
<action application="bridge" data="user/$1"/>
</condition>
</extension>
Let us know how it goes. BTW, what is the reason for this type of scenario? Just curious.
-MC
|
|
Back to top |
|
|
dome at tel.co.th Guest
|
Posted: Tue Jul 14, 2009 6:55 am Post subject: [Freeswitch-users] Originate in Dial plan |
|
|
Thanks it's work
api_hangup_hook i'm looking for :)
Dome C.
2009/7/14 Michael Collins <msc@freeswitch.org>:
Quote: |
On Mon, Jul 13, 2009 at 9:30 PM, Dome Charoenyost <dome@tel.co.th> wrote:
Quote: |
2009/7/14 Michael Collins <msc@freeswitch.org>:
Quote: | What phone number do you call back? I mean, how do you know what the
customer's number is? Do you go by the caller id number?
| yes callback to caller id
|
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.
 <extension name="callback-test-answer-ib-call">
   <!-- From mailing list - a question about how to do this:
      Caller calls in, ring (no answer), capture Caller ID, wait for
caller to hangup
      Generate outbound call to captured caller ID number
      Only use dialplan, no scripting
   -->
   <condition field="destination_number" expression="^9902$">
     <action application="pre_answer"/>
     <action application="set" data="callbacknum=${caller_id_number}"/>
     <action application="log" data="INFO Callback number is
'${callbacknum}'"/>
     <action application="set" data="api_hangup_hook=originate
portaudio/auto_answer CBTEST${callbacknum}"/>
     <action application="sleep" data="10000"/> <!-- wait 10 sec for caller
to hangup, otherwise we hangup -->
     <action application="hangup"/>
   </condition>
 </extension>
 <extension name="callback-test-generate-ob-call">
   <condition field="destination_number" expression="^CBTEST(\d+)$">
     <action application="bridge" data="user/$1"/>
   </condition>
 </extension>
Let us know how it goes. BTW, what is the reason for this type of scenario?
Just curious.
-MC
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
yehavi.bourvine at gma... Guest
|
Posted: Tue Jul 14, 2009 7:14 am Post subject: [Freeswitch-users] Originate in Dial plan |
|
|
2009/7/14 Michael Collins <msc@freeswitch.org (msc@freeswitch.org)>
Quote: |
On Mon, Jul 13, 2009 at 9:30 PM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote: | 2009/7/14 Michael Collins <msc@freeswitch.org (msc@freeswitch.org)>:
Quote: | What phone number do you call back? I mean, how do you know what the
customer's number is? Do you go by the caller id number?
|
yes callback to caller id
|
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.
<extension name="callback-test-answer-ib-call">
<!-- From mailing list - a question about how to do this:
Caller calls in, ring (no answer), capture Caller ID, wait for caller to hangup
Generate outbound call to captured caller ID number
Only use dialplan, no scripting
-->
<condition field="destination_number" expression="^9902$">
<action application="pre_answer"/>
<action application="set" data="callbacknum=${caller_id_number}"/>
<action application="log" data="INFO Callback number is '${callbacknum}'"/>
<action application="set" data="api_hangup_hook=originate portaudio/auto_answer CBTEST${callbacknum}"/>
<action application="sleep" data="10000"/> <!-- wait 10 sec for caller to hangup, otherwise we hangup -->
<action application="hangup"/>
</condition>
</extension>
<extension name="callback-test-generate-ob-call">
<condition field="destination_number" expression="^CBTEST(\d+)$">
<action application="bridge" data="user/$1"/>
</condition>
</extension>
Let us know how it goes. BTW, what is the reason for this type of scenario? Just curious.
-MC
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
saeedahmad1981 at gmai... Guest
|
Posted: Wed Jul 15, 2009 10:51 am Post subject: [Freeswitch-users] Originate in Dial plan |
|
|
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.
There might be some other usages as well.
- Saeed
On Tue, Jul 14, 2009 at 9:48 AM, Michael Collins <msc@freeswitch.org (msc@freeswitch.org)> wrote:
Quote: |
On Mon, Jul 13, 2009 at 9:30 PM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote: | 2009/7/14 Michael Collins <msc@freeswitch.org (msc@freeswitch.org)>:
Quote: | What phone number do you call back? I mean, how do you know what the
customer's number is? Do you go by the caller id number?
|
yes callback to caller id
|
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.
<extension name="callback-test-answer-ib-call">
<!-- From mailing list - a question about how to do this:
Caller calls in, ring (no answer), capture Caller ID, wait for caller to hangup
Generate outbound call to captured caller ID number
Only use dialplan, no scripting
-->
<condition field="destination_number" expression="^9902$">
<action application="pre_answer"/>
<action application="set" data="callbacknum=${caller_id_number}"/>
<action application="log" data="INFO Callback number is '${callbacknum}'"/>
<action application="set" data="api_hangup_hook=originate portaudio/auto_answer CBTEST${callbacknum}"/>
<action application="sleep" data="10000"/> <!-- wait 10 sec for caller to hangup, otherwise we hangup -->
<action application="hangup"/>
</condition>
</extension>
<extension name="callback-test-generate-ob-call">
<condition field="destination_number" expression="^CBTEST(\d+)$">
<action application="bridge" data="user/$1"/>
</condition>
</extension>
Let us know how it goes. BTW, what is the reason for this type of scenario? Just curious.
-MC
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|