[SR-Users] call_id in dialog module

‪mahsa _a_‬ ‪ mahsa_a_666 at yahoo.com
Wed Oct 18 13:52:17 CEST 2017

hi all;i want to write "billing" project with  kamailio,i using python,postgresql, dialog module and falcon.my problem is in "call_id" section.my code(this section) is in python :
if (method   ==  'INVITE'):
            callid          =        req.get_param_as_list("call_id")
            print("call id = %s " % callid)
elif (method   ==  'ACK'):            
            time_req    =       int(req.get_param_as_list("Ts")[0])
            callid      =        req.get_param_as_list("call_id")[0]
            print("user %s call to %s at time %d %            (from_user,to_user,time_req))...          
and in kamailio.cfg:
"""http_query("$rm&            call_id=$dlg(callid)&Ts=$Ts&fu=$fu&tu=$tu","$var(result)");
"callid" in ACK is ok but "callid' in invite is "null", where is my problem?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171018/8bc0d695/attachment.html>

More information about the sr-users mailing list