summaryrefslogtreecommitdiff
path: root/res/res_parking.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-14 07:53:57 +0000
committerMark Spencer <markster@digium.com>2004-07-14 07:53:57 +0000
commit0c6b76f7c2ed23448a2be676e97e70c885314c74 (patch)
treeeba5675cb30b7a0ee7973ca79a8693c3b44f70ec /res/res_parking.c
parent2a9d43407bb7433a53dac487243b54102f94c902 (diff)
Make parked calls events more consistant (bug #2033)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_parking.c')
-rwxr-xr-xres/res_parking.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/res/res_parking.c b/res/res_parking.c
index 7448ef9c9..ab9191c1e 100755
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -645,6 +645,11 @@ static struct ast_cli_entry showparked =
static int manager_parking_status( struct mansession *s, struct message *m )
{
struct parkeduser *cur;
+ char *id = astman_get_header(m,"ActionID");
+ char idText[256] = "";
+
+ if (id && !ast_strlen_zero(id))
+ snprintf(idText,256,"ActionID: %s\r\n",id);
astman_send_ack(s, m, "Parked calls will follow");
@@ -657,15 +662,21 @@ static int manager_parking_status( struct mansession *s, struct message *m )
"Channel: %s\r\n"
"Timeout: %ld\r\n"
"CallerID: %s\r\n"
+ "%s"
"\r\n"
,cur->parkingnum, cur->chan->name
,(long)cur->start.tv_sec + (long)(cur->parkingtime/1000) - (long)time(NULL)
,(cur->chan->callerid ? cur->chan->callerid : "")
- );
+ ,idText);
cur = cur->next;
}
+ ast_cli(s->fd,
+ "Event: ParkedCallsComplete\r\n"
+ "%s"
+ "\r\n",idText);
+
ast_mutex_unlock(&parking_lock);
return RESULT_SUCCESS;