[SR-Users] call_id in dialog module

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 20 18:09:44 CEST 2017


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:
>
> """
> http_query("http://127.0.0.1:5000/test?method=$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?
>
> thanks.
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171020/7d8c8b26/attachment.html>


More information about the sr-users mailing list