Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Originate in Dial plan


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
dome at tel.co.th
Guest





PostPosted: Sun Jul 12, 2009 12:01 pm    Post subject: [Freeswitch-users] Originate in Dial plan Reply with quote

Dear sir,
I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Mon Jul 13, 2009 8:12 pm    Post subject: [Freeswitch-users] Originate in Dial plan Reply with 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?

-MC

On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote:
Dear sir,
        I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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
dome at tel.co.th
Guest





PostPosted: Mon Jul 13, 2009 11:33 pm    Post subject: [Freeswitch-users] Originate in Dial plan Reply with 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


Quote:

-MC

On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th> wrote:
Quote:

Dear sir,
        I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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



_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Tue Jul 14, 2009 2:50 am    Post subject: [Freeswitch-users] Originate in Dial plan Reply with 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

Quote:


Quote:

-MC

On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote:

Dear sir,
        I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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


_______________________________________________
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



_______________________________________________
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
dome at tel.co.th
Guest





PostPosted: Tue Jul 14, 2009 6:55 am    Post subject: [Freeswitch-users] Originate in Dial plan Reply with quote

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
Quote:


Quote:

-MC

On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th>
wrote:
Quote:

Dear sir,
        I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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



_______________________________________________
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



_______________________________________________
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





PostPosted: Tue Jul 14, 2009 7:14 am    Post subject: [Freeswitch-users] Originate in Dial plan Reply with quote

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


Quote:


Quote:

-MC

On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote:

Dear sir,
        I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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


_______________________________________________
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



_______________________________________________
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








_______________________________________________
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





PostPosted: Wed Jul 15, 2009 10:51 am    Post subject: [Freeswitch-users] Originate in Dial plan Reply with quote

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


Quote:


Quote:

-MC

On Sun, Jul 12, 2009 at 9:59 AM, Dome Charoenyost <dome@tel.co.th (dome@tel.co.th)> wrote:
Quote:

Dear sir,
        I want to user dialplan callback to customer. is posible to
to this is dialplan XML ?
Now i use javascript.
my call flow.
1. customer call
2. FS rining and wait until customer hangup
3. callback to customer number


Best Regards.

Dome C.

_______________________________________________
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


_______________________________________________
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



_______________________________________________
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







_______________________________________________
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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services