Browse code

sbc:dsm: #from_tag, #to_tag, #callid in sipRequest / reply events

Stefan Sayer authored on 11/11/2013 18:53:42
Showing 2 changed files
... ...
@@ -125,6 +125,9 @@ void extractRequestParameters(VarMapT& event_params, AVarMapT& avar, const AmSip
125 125
     event_params["from"] = request->from;
126 126
     event_params["to"] = request->to;
127 127
     event_params["hdrs"] = request->hdrs;
128
+    event_params["from_tag"] = request->from_tag;
129
+    event_params["to_tag"] = request->to_tag;
130
+    event_params["callid"] = request->callid;
128 131
 
129 132
     vector<string> hdrs = explode(request->hdrs, CRLF);
130 133
     for (vector<string>::iterator it=hdrs.begin(); it!=hdrs.end();it++) {
... ...
@@ -154,7 +157,10 @@ void extractReplyParameters(VarMapT& event_params, AVarMapT& avar, const AmSipRe
154 157
   event_params["sip_reason"] = reply->reason;
155 158
   event_params["sip_code"] = int2str(reply->code);
156 159
   event_params["from"] = reply->from;
160
+  event_params["from_tag"] = reply->from_tag;
157 161
   event_params["to"] = reply->to;
162
+  event_params["to_tag"] = reply->to_tag;
163
+  event_params["callid"] = reply->callid;
158 164
   event_params["hdrs"] = reply->hdrs;
159 165
 #ifdef PROPAGATE_UNPARSED_REPLY_HEADERS
160 166
   for (list<AmSipHeader>::const_iterator it = reply->unparsed_headers.begin();
... ...
@@ -53,8 +53,8 @@ Events (Conditions)
53 53
 -------------------
54 54
 
55 55
 general: 
56
-   Request parameters: #method, #r_uri, #from, #to and #hdrs
57
-   Reply parameters:   #sip_reason, #sip_code, #from, #to and #hdrs
56
+   Request parameters: #method, #r_uri, #from, #to, #from_tag, #to_tag, #callid and #hdrs
57
+   Reply parameters:   #sip_reason, #sip_code, #from, #to, #from_tag, #to_tag, #callid and #hdrs
58 58
 
59 59
 start            - on startup of call control DSM
60 60