aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-01 19:51:19 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-01 19:51:19 +0000
commitd7ffa7f7a1715acfb16c15d6dbcec6f185d5284d (patch)
treefd044eb164dfeec2743aaade6a6198df5e680c02 /res
parent69b09a1478b3310b3c457563a9e69038d4e5cfb8 (diff)
Add additional timeout debugging information on parking
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3704 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_features.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 7cab65b10..2697f1fcd 100755
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -180,7 +180,7 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou
/* Wake up the (presumably select()ing) thread */
pthread_kill(parking_thread, SIGURG);
if (option_verbose > 1)
- ast_verbose(VERBOSE_PREFIX_2 "Parked %s on %d\n", pu->chan->name, pu->parkingnum);
+ ast_verbose(VERBOSE_PREFIX_2 "Parked %s on %d. Will timeout back to %s,%s,%d in %d seconds\n", pu->chan->name, pu->parkingnum, pu->context, pu->exten, pu->priority, (pu->parkingtime/1000));
manager_event(EVENT_FLAG_CALL, "ParkedCall",
"Exten: %d\r\n"
@@ -535,6 +535,8 @@ static void *do_parking_thread(void *ignore)
strncpy(pu->chan->exten, pu->exten, sizeof(pu->chan->exten)-1);
strncpy(pu->chan->context, pu->context, sizeof(pu->chan->context)-1);
pu->chan->priority = pu->priority;
+ if (option_verbose > 1)
+ ast_verbose(VERBOSE_PREFIX_2 "Timeout for %s parked on %d. Returning to %s,%s,%d\n", pu->chan->name, pu->parkingnum, pu->chan->context, pu->chan->exten, pu->chan->priority);
/* Stop music on hold */
ast_moh_stop(pu->chan);
/* Start up the PBX, or hang them up */