Merged revisions 196456 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r196456 | moy | 2009-05-22 23:27:47 -0500 (Fri, 22 May 2009) | 1 line
  
  set MFCR2_CATEGORY just when starting the pbx
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@196487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.2
Moises Silva 17 years ago
parent 49cda05d53
commit ef5124a43f

@ -7518,10 +7518,6 @@ static struct ast_channel *dahdi_new(struct dahdi_pvt *i, int state, int startpb
/* Assume calls are not idle calls unless we're told differently */
i->isidlecall = 0;
i->alreadyhungup = 0;
#endif
#ifdef HAVE_OPENR2
if (i->mfcr2call)
pbx_builtin_setvar_helper(tmp, "MFCR2_CATEGORY", openr2_proto_get_category_string(i->mfcr2_recvd_category));
#endif
/* clear the fake event in case we posted one before we had ast_channel */
i->fake_event = 0;
@ -7537,6 +7533,11 @@ static struct ast_channel *dahdi_new(struct dahdi_pvt *i, int state, int startpb
pbx_builtin_setvar_helper(tmp, v->name, v->value);
if (startpbx) {
#ifdef HAVE_OPENR2
if (i->mfcr2call) {
pbx_builtin_setvar_helper(tmp, "MFCR2_CATEGORY", openr2_proto_get_category_string(i->mfcr2_recvd_category));
}
#endif
if (ast_pbx_start(tmp)) {
ast_log(LOG_WARNING, "Unable to start PBX on %s\n", tmp->name);
ast_hangup(tmp);

Loading…
Cancel
Save