[OpenSIPS-Users] get_dialog_info issue
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jun 7 11:16:23 CEST 2013
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:
>>> a6ec216e-6bf5f805 at 172.31.1.141
>>>
>>>
>>> dialog:: hash=1661:151199353
>>> state:: 5
>>> user_flags:: 0
>>> timestart:: 1370427096
>>> timeout:: 0
>>> callid:: e323c24c-4869-1231-caaa-0030486435ea
>>> from_uri:: sip:018108753 at xxx.xxx.xxx.xx
>>> to_uri:: sip:018108751 at xxx.xxx.xxx.xxx:5060
>>> caller_tag:: 4rDyN1XvDUp3a
>>> caller_contact:: sip:mod_sofia at xxx.xxx.xxx.xxx:5080
>>> callee_cseq:: 0
>>> caller_route_set::
>>> caller_bind_addr:: udp:xxx.xxx.xxx.xxx:5060
>>> callee_tag:: 6cfbd4724f0d7febi0
>>> callee_contact:: sip:018108751 at xxx.xxx.xxx.xxx9: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:: f96beeff-a04edd07 at 172.31.1.141
>>> from_uri:: sip:018108753 at sip.test.net
>>> to_uri:: sip:018108751 at sip.test.net
>>> caller_tag:: fb75869f5fb929e7o0
>>> caller_contact:: sip:018108753 at xxx.xxx.xxx.xxx:5351
>>> callee_cseq:: 0
>>> caller_route_set::
>>> caller_bind_addr:: udp:xxx.xxx.xxx.xxx6:5060
>>> callee_tag:: SKQ426XSccp1S
>>> callee_contact::
>>> sip:018108751 at xxx.xxx.xxx.xxx: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 = f96beeff-a04edd07 at 172.31.1.141
>>> value:: destination = sipxxx.xxx.xxx.xxx:5060
>>> value:: callee = sip:018108751 at sip.test.net
>>> value:: caller = sip:018108753 at sip.test.net
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130607/3c67f680/attachment.htm>
More information about the Users
mailing list