Browse code

cfgt: updates for core events API changes

Daniel-Constantin Mierla authored on 14/06/2017 11:25:01
Showing 1 changed files
... ...
@@ -641,10 +641,10 @@ TODO:
641 641
 - parse first line, check if is SIP
642 642
 - parse for header cfgtest
643 643
 */
644
-int cfgt_msgin(void *data)
644
+int cfgt_msgin(sr_event_param_t *evp)
645 645
 {
646 646
 	srjson_t *jobj;
647
-	str *buf = (str *) data;
647
+	str *buf = (str *)evp->data;
648 648
 	if(buf==NULL) return 0;
649 649
 	if(_cfgt_node) {
650 650
 		cfgt_save_node(_cfgt_node);
... ...
@@ -722,10 +722,10 @@ int cfgt_post(struct sip_msg *msg, unsigned int flags, void *bar) {
722 722
 	return 1;
723 723
 }
724 724
 
725
-int cfgt_msgout(void *data)
725
+int cfgt_msgout(sr_event_param_t *evp)
726 726
 {
727 727
 	srjson_t *jobj;
728
-	str *buf = (str *) data;
728
+	str *buf = (str *)evp->data;
729 729
 	if(buf==NULL) return 0;
730 730
 	LM_DBG("msg out:{%.*s}\n", buf->len, buf->s);
731 731