|
|
|
@ -39,8 +39,8 @@ onreply_route[MESSAGE_REPLY] |
|
|
|
$var(Result) = "Success"; |
|
|
|
} |
|
|
|
|
|
|
|
$var(Payload) = '{ "Event-Category" : "message", "Event-Name" : "delivery", "Call-ID" : "' + $(sht(msg=>$ci){kz.json,Call-ID}) + '", "Message-ID" : "' + $(sht(msg=>$ci){kz.json,Message-ID}) +'" , "Delivery-Result-Code" : "sip:" + $T_reply_code + '" , "Msg-ID" : "' + $(sht(msg=>$ci){kz.json,Msg-ID}) + '" , "Status" : "' + $var(Result) + '"}'; |
|
|
|
|
|
|
|
$var(Payload) = '{ "Event-Category" : "message", "Event-Name" : "delivery", "Call-ID" : "$(sht(msg=>$ci){kz.json,Call-ID})", "Message-ID" : "$(sht(msg=>$ci){kz.json,Message-ID})" , "Delivery-Result-Code" : "sip:$T_reply_code", "Msg-ID" : "$(sht(msg=>$ci){kz.json,Msg-ID})" , "Status" : "$var(Result)"}'; |
|
|
|
|
|
|
|
$var(RoutingKey) = $(sht(msg=>$ci){kz.json,Server-ID}); |
|
|
|
$var(exchange) = "targeted"; |
|
|
|
if($var(RoutingKey) == "") { |
|
|
|
|