Another fix for the support for recordings controlled by INFO-packets

We still lack a setting to enable/disable this per peer


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Olle Johansson 18 years ago
parent c2824bfd70
commit f3ec447a23

@ -11699,32 +11699,18 @@ static void handle_request_info(struct sip_pvt *p, struct sip_request *req)
ast_unlock_call_features();
return;
}
/* OEJ: Why is the DTMF code included in the record section? */
/* Send the feature code to the PBX as DTMF, just like the handset had sent it */
f.len = 100;
for (j=0; j<strlen(feat->exten); j++) {
for (j=0; j < strlen(feat->exten); j++) {
f.subclass = feat->exten[j];
ast_queue_frame(p->owner, &f);
if (sipdebug)
ast_verbose("* DTMF-relay event received: %c\n", f.subclass);
ast_verbose("* DTMF-relay event faked: %c\n", f.subclass);
}
ast_unlock_call_features();
#ifdef DISABLED_CODE
/* And feat isn't used here - Is this code tested at all???
We just send a reply ...
*/
if (strcasecmp(c, "on")== 0) {
if (option_debug)
ast_log(LOG_DEBUG, "Got a Request to Record the channel!\n");
transmit_response(p, "200 OK", req);
return;
} else if (strcasecmp(c, "off")== 0) {
if (option_debug)
ast_log(LOG_DEBUG, "Got a Request to Stop Recording the channel\n");
transmit_response(p, "200 OK", req);
return;
}
#endif
if (option_debug)
ast_log(LOG_DEBUG, "Got a Request to Record the channel, state %s\n", c);
transmit_response(p, "200 OK", req);
return;
}

Loading…
Cancel
Save