[Freeswitch-users] Originating calls
covici at ccs.covici.com
covici at ccs.covici.com
Sun Aug 3 08:56:47 MSD 2014
If you did that you would lose control of the call, you could not use
originate, you wuld just have to let the dialplan process the call and
maybe get the uuid with execute_on_something.
Clive Lansink <clive at lansink.co.nz> wrote:
> Surely that is what the dialplan can do. When any call comes in in any context, the dialplan works out how to process that call and routes it to a variety of possible places, including an internal extension and an external gateway. Now I want to originate a call, why does the originate command insist on me specifying the full endpoint to use? I just want to specify the number to call and have the dialplan work out which endpoint to use.
>
>
> Clive Lansink
> Email: Clive at Lansink.Co.NZ
> Phone: +64 9 520-4242
> Mobile: +64 21 663-999
> Fax: +64 21 789-150
>
> -----Original message-----
> From: Yosi Taguri <yosi at taguri.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Subject: Re: [Freeswitch-users] Originating calls
> Reply-to: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Date: Sun, 3 Aug 2014 06:35:03 +0300
>
> How would it know which route to take?
>
>
> On Sun, Aug 3, 2014 at 6:19 AM, Clive Lansink <clive at lansink.co.nz> wrote:
>
> > Hello Freeswitch users.
> >
> > Currently when I originate a call in my IVR application, I execute the API
> > originate command like this:
> > api originate
> > {variable1=data,variable2=data}sofia/gateway/outbound/<number> &park() xml
> > default
> > So yes I have a gateway called outbound and this originates a call by
> > dialling the specified number on that gateway and parking it. I get the
> > UUID and can then do stuff with it.
> >
> > But what I really want to do is originate a call by putting the specified
> > phone number through the dialplan so Freeswitch can work out which endpoint
> > to use. I am sure this must be possible but I can't figure out how to do it.
> >
> > Just to summarise, I want to originate a call to a number which might be a
> > local extension or it might be a number that is reached through a gateway.
> > Why can't I do something like:
> > api originate {variable1=data,variable2=data}<number> &park() xml default
> > I want Freeswitch to work out which Sofia profile and endpoint to use. I
> > want Freeswitch to park the call in the same way as above and give me the
> > UUID. Is this possible?
> >
> > Can anyone help with this please?
> >
> > Thank you.
> >
> >
> > Clive Lansink
> > Email: Clive at Lansink.Co.NZ
> > Phone: +64 9 520-4242
> > Mobile: +64 21 663-999
> > Fax: +64 21 789-150
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> >
> >
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
>
>
> --
>
> Yosi Taguri | Founder & CTO | Yalo | http://yaloapp.com <http://ahhhpah.com>
> | Mobile: +972-54-4816020 | Google Voice US Mobile: +1 (415) 935-1126 |
> Email: yosi at taguri.com
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici at ccs.covici.com
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list