[Freeswitch-users] Dial from inside application

Mindaugas Kezys mkezys at gmail.com
Tue Apr 17 11:07:21 PDT 2007

Thank you very much!



Mindaugas Kezys



From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony
Sent: Tuesday, April 17, 2007 8:54 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dial from inside application


The exact equiv of what you showed would be this:

static int pbx_dial(switch_core_session_t *session, void *data)
    const switch_application_interface_t *application_interface;
    int ret;
    char *app_name = "bridge";
    char *app_arg = (char *) data;

    if ((application_interface =
switch_loadable_module_get_application_interface(app_name))) {
        application_interface->application_function(session, app_arg);
        return 0;
    } else {
        return -1;


Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
JABBER:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org


----- Original Message ----
From: Mindaugas Kezys <mkezys at gmail.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Tuesday, April 17, 2007 11:59:19 AM
Subject: [Freeswitch-users] Dial from inside application



How to dial from inside application in FreeSwitch?


I have such Asterisk code:


static int pbx_dial(struct ast_channel *chan, void *data)


    struct ast_app *app;

    int ret;


    app = pbx_findapp("Dial");

    if (app) {

        ret = pbx_exec(chan, app, data);    

    } else {

        ast_log(LOG_WARNING, "Could not find application (Dial)\n");

        ret = -2;



    return ret;



What is the equivalent in FreeSwitch world?


Thank you for your help.



Mindaugas Kezys



Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org




Ahhh...imagining that irresistible "new car" smell?
Check out new
X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->  cars
at Yahoo! Autos. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070417/3df578b1/attachment-0002.html 

More information about the FreeSWITCH-users mailing list