adding span name, number and chan to trap event
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1052 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
d32f7f67a3
commit
82f46fd7f3
|
@ -1476,6 +1476,10 @@ static ZIO_SIGNAL_CB_FUNCTION(on_common_signal)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "span-name", "%s", sigmsg->channel->span->name);
|
||||||
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "span-number", "%d", sigmsg->channel->span_id);
|
||||||
|
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "chan-number", "%d", sigmsg->channel->chan_id);
|
||||||
|
|
||||||
if (zap_test_alarm_flag(sigmsg->channel, ZAP_ALARM_RECOVER)) {
|
if (zap_test_alarm_flag(sigmsg->channel, ZAP_ALARM_RECOVER)) {
|
||||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "alarm", "recover");
|
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "alarm", "recover");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue