Index: asterisk/apps/app_dial.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v retrieving revision 1.94.2.4 diff -u -r1.94.2.4 app_dial.c --- asterisk/apps/app_dial.c 29 Jan 2005 06:46:05 -0000 1.94.2.4 +++ asterisk/apps/app_dial.c 3 Feb 2005 01:39:58 -0000 @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -198,6 +199,13 @@ winner = ast_waitfor_n(watchers, pos, to); o = outgoing; while(o) { + if (o->chan->_state ==AST_STATE_RINGING) { + manager_event(EVENT_FLAG_CALL, "RemoteCallerID", + "Channel: %s\r\n" + "CallerID: %s\r\n" + "Uniqueid: %s\r\n", + o->chan->name, in->callerid, o->chan->uniqueid); + } if (o->stillgoing && o->chan && (o->chan->_state == AST_STATE_UP)) { if (!peer) { if (option_verbose > 2)