diff -Nur asterisk-1.4.0-beta3/CHANGES asterisk-1.4.0-beta3-patched/CHANGES --- asterisk-1.4.0-beta3/CHANGES 2006-10-06 15:09:16.000000000 -0600 +++ asterisk-1.4.0-beta3-patched/CHANGES 2006-12-05 20:13:37.000000000 -0700 @@ -332,3 +332,5 @@ 2. chan_modem_* stuff is gone because the kernel support for those interfaces is old, buggy and unsupported * New Utils: 1. aelparse -- compile .ael files outside of asterisk + * New manager events: + 1. OriginateResponse event comes to replace OriginateSuccess and OriginateFailure diff -Nur asterisk-1.4.0-beta3/main/manager.c asterisk-1.4.0-beta3-patched/main/manager.c --- asterisk-1.4.0-beta3/main/manager.c 2006-10-12 10:56:32.000000000 -0600 +++ asterisk-1.4.0-beta3-patched/main/manager.c 2006-12-05 20:09:22.000000000 -0700 @@ -1573,6 +1573,7 @@ int res; int reason = 0; struct ast_channel *chan = NULL; + char requested_channel[AST_CHANNEL_NAME]; if (!ast_strlen_zero(in->app)) { res = ast_pbx_outgoing_app(in->tech, AST_FORMAT_SLINEAR, in->data, in->timeout, in->app, in->appdata, &reason, 1, @@ -1584,13 +1585,15 @@ S_OR(in->cid_num, NULL), S_OR(in->cid_name, NULL), in->vars, in->account, &chan); - } - + } + + if ( !chan ) + snprintf(requested_channel, AST_CHANNEL_NAME, "%s/%s", in->tech, in->data); /* Tell the manager what happened with the channel */ - manager_event(EVENT_FLAG_CALL, - res ? "OriginateFailure" : "OriginateSuccess", + manager_event(EVENT_FLAG_CALL, "OriginateResponse", "%s" - "Channel: %s/%s\r\n" + "Response: %s\r\n" + "Channel: %s\r\n" "Context: %s\r\n" "Exten: %s\r\n" "Reason: %d\r\n" @@ -1598,7 +1601,7 @@ "CallerID: %s\r\n" /* This parameter is deprecated and will be removed post-1.4 */ "CallerIDNum: %s\r\n" "CallerIDName: %s\r\n", - in->idtext, in->tech, in->data, in->context, in->exten, reason, + in->idtext, res ? "Failure" : "Success", chan ? chan->name : requested_channel, in->context, in->exten, reason, chan ? chan->uniqueid : "", S_OR(in->cid_num, ""), S_OR(in->cid_num, ""), diff -Nur asterisk-1.4.0-beta3/UPGRADE.txt asterisk-1.4.0-beta3-patched/UPGRADE.txt --- asterisk-1.4.0-beta3/UPGRADE.txt 2006-09-20 14:36:19.000000000 -0600 +++ asterisk-1.4.0-beta3-patched/UPGRADE.txt 2006-12-05 20:12:36.000000000 -0700 @@ -247,6 +247,10 @@ also been deprecated in favor of the already existing MeetmeTalking event with a "Status" of "on" or "off" added. +* OriginateFailure and OriginateSuccess events were replaced by event + OriginateResponse with a header named "Response" to indicate success or + failure + Variables: * The builtin variables ${CALLERID}, ${CALLERIDNAME}, ${CALLERIDNUM},