Hello,

the dialog is inserted inside the database on 200ok. When you have the initial INVITE in processing, use $ci to get the call id.

Cheers,
Daniel


On 18.10.17 13:52, ‪mahsa _a_‬ ‪ wrote:
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(req.get_param_as_list("Ts"))
            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:

"""

""""

"callid" in ACK is ok but "callid' in invite is "null", where is my problem?

thanks.



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - www.asipto.com
Kamailio World Conference - www.kamailioworld.com