<param name="message" value="Jingle all the way"/>
<param name="rtp-ip" value="10.0.0.1"/>
<param name="auto-login" value="true"/>
+ <param name="auto-reply" value="Press *Call* to call FreeSWITCH and be sure to come to ClueCon! http://www.cluecon.com"/>
<!-- SASL "plain" or "md5" -->
<param name="sasl" value="plain"/>
<!-- if the server where the jabber is hosted is not the same as the one in the jid -->
char *login;
char *password;
char *message;
+ char *auto_reply;
char *dialplan;
char *ip;
char *extip;
switch_set_flag(profile, TFLAG_TIMER);
} else if (!strcasecmp(var, "dialplan")) {
profile->dialplan = switch_core_strdup(module_pool, val);
+ } else if (!strcasecmp(var, "auto-reply")) {
+ profile->auto_reply = switch_core_strdup(module_pool, val);
} else if (!strcasecmp(var, "name")) {
profile->name = switch_core_strdup(module_pool, val);
} else if (!strcasecmp(var, "message")) {
if (msg) {
switch_event_add_body(event, msg);
}
+
+ if (profile->auto_reply) {
+ ldl_handle_send_msg(handle, from, "", profile->auto_reply);
+ }
+
switch_event_fire(&event);
}
break;