Hi Miha, If already using the dialog support, better use $DLG_lifetime variable (see http://www.opensips.org/html/docs/modules/1.9.x/dialog.html#id29580) .
Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 06/07/2013 08:53 AM, Miha wrote: > Hi Bogdan, > > no, just that get_dialog_info could not find dialog that match this > rule or something like that. > > Just to inform you about scenari. I make a call, dialog for a new call > is created (you can see it below) but when call is terminated and I > recive bye for this call I do get_dialog_info as I would like to get > time, when call was started (for aaa). > > If I make a second call and use static data for get_dialog_info, > function return value for variable and match dialog. > > Br, > Miha > > Dne 6/6/2013 5:52 PM, pis(e Bogdan-Andrei Iancu: >> Hello Miha, >> >> Do you see any errors when calling the get_dialog_info() function ? >> >> Regards, >> Bogdan-Andrei Iancu >> OpenSIPS Founder and Developer >> http://www.opensips-solutions.com >> >> On 06/05/2013 04:41 PM, Miha wrote: >>> Hi, >>> >>> >>> I need a litle help why get_dialog_info does not return any values. >>> As you can se from dialog dlg_list_ctx there are keys and valus. >>> >>> Thanks! >>> >>> Miha >>> >>> >>> >>> onreply_route{ >>> >>> if((is_method("BYE")) && ($si!="xxx.xxx.xxx.xxx")){ >>> xlog("Callid: $ci\n"); >>> if ( get_dialog_info("timestart","$var(timestart)","group","test")) { >>> xlog("caller $fU has started a call at: >>> $var(timestart) \n"); >>> } >>> xlog("BYE ni od FS $fu"); >>> $avp(radius)=2; >>> radius_send_acct("set_out2"); >>> # setflag(9); >>> } >>> >>> >>> >>> Jun 5 15:36:34 opensips /usr/sbin/opensips[2161]: Callid: >>> [email protected] >>> >>> >>> dialog:: hash=1661:151199353 >>> state:: 5 >>> user_flags:: 0 >>> timestart:: 1370427096 >>> timeout:: 0 >>> callid:: e323c24c-4869-1231-caaa-0030486435ea >>> from_uri:: sip:[email protected] >>> to_uri:: sip:[email protected]:5060 >>> caller_tag:: 4rDyN1XvDUp3a >>> caller_contact:: sip:[email protected]:5080 >>> callee_cseq:: 0 >>> caller_route_set:: >>> caller_bind_addr:: udp:xxx.xxx.xxx.xxx:5060 >>> callee_tag:: 6cfbd4724f0d7febi0 >>> callee_contact:: sip:[email protected]:5992 >>> caller_cseq:: 44877214 >>> callee_route_set:: >>> callee_bind_addr:: udp:xxx.xxx.xxx.xxx:5060 >>> context:: >>> value:: accX_table = acc >>> value:: accX_flags = >>> value:: accX_db = >>> value:: accX_log = >>> value:: accX_leg = >>> value:: accX_core = >>> value:: accX_created = Ö¯Q >>> dialog:: hash=4026:1102756396 >>> state:: 5 >>> user_flags:: 0 >>> timestart:: 1370427096 >>> timeout:: 0 >>> callid:: [email protected] >>> from_uri:: sip:[email protected] >>> to_uri:: sip:[email protected] >>> caller_tag:: fb75869f5fb929e7o0 >>> caller_contact:: sip:[email protected]:5351 >>> callee_cseq:: 0 >>> caller_route_set:: >>> caller_bind_addr:: udp:xxx.xxx.xxx.xxx6:5060 >>> callee_tag:: SKQ426XSccp1S >>> callee_contact:: >>> sip:[email protected]:5060;transport=udp >>> caller_cseq:: 102 >>> callee_route_set:: >>> callee_bind_addr:: udp:212.103.141.16:5060 >>> context:: >>> value:: group = test >>> value:: timestart = 1370427094 >>> value:: callid = [email protected] >>> value:: destination = sipxxx.xxx.xxx.xxx:5060 >>> value:: callee = sip:[email protected] >>> value:: caller = sip:[email protected] >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
