[OpenSIPS-Users] Missed INVITE record in acc table
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Sep 10 19:23:00 CEST 2014
Hi Alexander,
and with this configuration what kind of acc related events do you get ?
missed calls ? cdrs ? start and/or stops ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 09.09.2014 07:54, Alexander Mustafin wrote:
> Thanks, Bogdan. I have got the next parameters in my script.
>
> Route CREATE_DIALOG calls after some additional routes, where db_extra
> fields are filling, drouting etc - but on the INVITE stage.
> I’m just check missed_tables - and it not filled too, but missed and
> failures calls are present.
>
> modparam("acc", "db_table_acc", "acc")
> modparam("acc", "db_table_missed_calls", "missed_calls")
> modparam("acc", "early_media", 0)
> modparam("acc", "report_cancels", 1)
> modparam("acc", "detect_direction", 0)
> modparam("acc", "failed_transaction_flag", "ACC_FAILED")
> modparam("acc", "db_flag", "ACC_DO")
> modparam("acc", "db_missed_flag", "ACC_MISSED")
> modparam("acc", "cdr_flag", "CDR_FLAG»)
> modparam("acc", "db_extra",
> "incoming_number=$avp(incoming_number);…………………)
>
> route[CREATE_DIALOG] {
> xlog("L_INFO", "$ci|log|Now we set flags for ACC module");
> setflag(CDR_FLAG);
> setflag(ACC_DO);
> setflag(ACC_FAILED);
> setflag(ACC_MISSED);
> setflag(QOS_FLAG);
>
> create_dialog("B");
>
> if ( is_gflag("2") ) {
> xlog("L_INFO", "$ci|log|Flag 2 is set. We will use topology
> hiding for our request");
> topology_hiding();
> }
> ……..
> }
>
> Best regards,
> Alexander Mustafin
> mustafin.aleksandr at gmail.com <mailto:mustafin.aleksandr at gmail.com>
>
>
>
>
> 03 сент. 2014 г., в 13:59, Bogdan-Andrei Iancu <bogdan at opensips.org
> <mailto:bogdan at opensips.org>> написал(а):
>
>> Hi Alexander,
>>
>> At INVITE time be sure both flags (ACC_DO - accounting is required -
>> and CDR_FLAG - do it as CDR) are set before you do create_dialog().
>>
>> Regards,
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>> On 03.09.2014 10:52, Alexander Mustafin wrote:
>>> Hi, Bogdan.
>>>
>>> Sure, I’m use dialog module and create dialog. In modules section
>>> I’m load acc module before dialog(because, I’ve read about problem
>>> with it).
>>> I’ve tried to set CDR_FLAG before create_dialog and after - with the
>>> same result. Also, I’ve disabled CDR_FLAG and used ACC_DO only, but
>>> INVITE record still absent).
>>>
>>> I thought the problem with MySQL, but I’ve sniffed traffic to MySQL
>>> and OpenSIPS not send anything for INVITE - only for dialog and BYE.
>>>
>>> How can I detect what’s happened when flags is sets?
>>>
>>> Best regards,
>>> Alexander Mustafin
>>> mustafin.aleksandr at gmail.com <mailto:mustafin.aleksandr at gmail.com>
>>>
>>>
>>>
>>>
>>> 03 сент. 2014 г., в 13:42, Bogdan-Andrei Iancu <bogdan at opensips.org
>>> <mailto:bogdan at opensips.org>> написал(а):
>>>
>>>> Hi Alexander,
>>>>
>>>> If you use the CDR_FLAG, you really must use dialog module and
>>>> create the dialogs during the initial INVITE - do you do that ?
>>>>
>>>> Regards,
>>>> Bogdan-Andrei Iancu
>>>> OpenSIPS Founder and Developer
>>>> http://www.opensips-solutions.com
>>>> On 03.09.2014 10:21, Alexander Mustafin wrote:
>>>>> Hello!
>>>>>
>>>>> I’ve the problem with acc - now, only BYE records presents in acc
>>>>> table.
>>>>> I’ve set the flags ACC_DO and others for initial INVITE, tried to
>>>>> use CDR_FALG, but without success.
>>>>>
>>>>> If I use CDR_FLAG with ACC_DO for INVITE and disable it for BYE -
>>>>> all records for call absent.
>>>>> Maybe, other parts of my script does broke ACC behavior, but I
>>>>> can’t see an error in debug log.
>>>>>
>>>>> version: opensips 1.11.2-tls (x86_64/linux)
>>>>> flags: STATS: On, USE_IPV6, USE_TCP, USE_TLS, DISABLE_NAGLE,
>>>>> USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC,
>>>>> FAST_LOCK-ADAPTIVE_WAIT
>>>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN
>>>>> 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
>>>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>>>> main.c compiled on 00:09:03 Jul 3 2014 with gcc 4.4.7
>>>>>
>>>>>
>>>>> Best regards,
>>>>> Alexander Mustafin
>>>>> mustafin.aleksandr at gmail.com <mailto:mustafin.aleksandr at gmail.com>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>
>>
>
>
>
> _______________________________________________
> 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/20140910/bbaf960d/attachment-0001.htm>
More information about the Users
mailing list