[Freeswitch-users] Dial from inside application
Anthony Minessale
anthmct at yahoo.com
Tue Apr 17 10:54:16 PDT 2007
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
pstn:213-799-1400
----- 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
<!--
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered {font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
pre
{margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
span.HTMLPreformattedChar
{font-family:Consolas;}
span.EmailStyle19
{font-family:"Calibri", "sans-serif";color:#1F497D;}
.MsoChpDefault
{font-size:10.0pt;}
_filtered {margin:3.0cm 1.0cm 2.0cm 3.0cm;}
div.Section1
{}
-->
Hello,
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.
Regards/Pagarbiai,
Mindaugas Kezys
http://www.kolmisoft.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
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070417/ffd612b5/attachment-0002.html
More information about the FreeSWITCH-users
mailing list