[Freeswitch-users] Setting up callbacks

Alex Lake alex at digitalmail.com
Thu Mar 7 17:02:28 MSK 2013


Yes, I'd seen that - but I'm currently the wrong side of the "got it" 
fence. However, I did this:

originate 
{origination_caller_id_name=CallBack,origination_caller_id_number=07775123456}user/0095302 
&bridge({origination_caller_id_number=2070602000}sofia/internal/07775123456 at pstngateway.com)

and it kind of did what I wanted.

However, what I really want to do is to simulate as closely as possible 
what happens when ext 0095302 makes an outbound call to 07775123456 from 
a handset - preferably using the dp0095 context of the xml (?) dialplan.

So I thought I'd try using the dialplan and context parameters like this:

originate 
{origination_caller_id_name=CallBack,origination_caller_id_number=07775123456}user/0095302 
&bridge(07775123456) xml dp0095

But I've clearly got the wrong end of the stick!

> There's a whole bunch of examples here:
> http://wiki.freeswitch.org/wiki/Mod_commands#originate
>
> The first arg rings first, and must be an endpoint, e.g. sofia/, user/.
> Once they pick up, the second arg is called.
>
> So originating to a local user or to a remote endpoint is nearly the 
> same... especially if you can use the lcr/ endpoint.
> Your leg B can be a brige, a conference 
> &conference(conf_uuid-TEST_CON), or just hit the dialplan.
>
>
> -Avi Marcus
>
> On Thu, Mar 7, 2013 at 1:00 PM, Alex Lake <alex at digitalmail.com 
> <mailto:alex at digitalmail.com>> wrote:
>
>     I was wondering where's a good place to find some examples of how, by
>     sending the right commands to the event_socket, I could have
>     Freeswitch
>     establish callbacks for me.
>
>     Essentially there are a couple of different termination types - PSTN
>     (via a gateway) and internally registered SIP accounts
>
>     I would wish to be able to set up A->B (and maybe small conferences)
>     using these types of destination in any combination.
>
>     I've looked through the event_socket pages and the "originate" syntax,
>     but would like to put together something a little more
>     "idiot-friendly"
>     so am looking around for precedents/tips...
>
>
>
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto: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
>     <mailto: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
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2012.0.2240 / Virus Database: 2641/5652 - Release Date: 03/06/13
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130307/d814a1f0/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list