From 5a28242ca583e491249ffbcd1ba1e72e9080c399 Mon Sep 17 00:00:00 2001 From: lazedo Date: Sun, 24 May 2015 23:17:38 +0100 Subject: [PATCH] missing ' --- kamailio/message-role.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kamailio/message-role.cfg b/kamailio/message-role.cfg index afa8f6a..ddf5ae5 100644 --- a/kamailio/message-role.cfg +++ b/kamailio/message-role.cfg @@ -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) == "") {