[SR-Users] acc Module missing BYE in database
Daniel-Constantin Mierla
miconda at gmail.com
Fri Aug 7 19:43:56 CEST 2015
Hello,
catching up after traveling -- do you have the flag for accounting
failed transactions set for BYE? Maybe the BYE doesn't get 200ok and
therefore is not accounted just with acc flag set.
Cheers,
Daniel
On 21/07/15 14:16, Dirk Teurlings - SIGNET B.V. wrote:
> Hi Daniel,
>
> As far as I can tell these BYE messages weren't originated locally.
> These are all terminated with a BYE from the mediaserver (asterisk).
> CNXCC doesn't overflow, nor does any timeout occur.
>
> Should your suggested changes still make any difference knowing this?
>
> Cheers,
> Dirk
>
>
> On 21-07-15 13:45, Daniel-Constantin Mierla wrote:
>> Hello,
>>
>> to catch the local generated BYEs, you have to add
>> event_route[tm:local-request] and there test if it is a BYE and if yes,
>> use acc_db_request(...) to get the record in acc table.
>>
>> For sake of completion, request_route {} is executed only for requests
>> received from the network, not for those generated locally.
>>
>> Cheers,
>> Daniel
>>
>> On 21/07/15 10:05, Dirk Teurlings - SIGNET B.V. wrote:
>>> Hi again,
>>>
>>> Running kamailio 4.2.5 with the acc module to do accounting in a MySQL
>>> database. We are now running into the issue that sometimes there is no
>>> BYE line when there is an INVITE.
>>>
>>> Digging into this I noticed that the dialog:end event does get
>>> triggered, and that CNXCC consumes the call properly. So the BYE
>>> message does get sent, but acc doesn't seem to pick it up some of the
>>> times. It occurs around maybe once every 100 calls.
>>>
>>> Anybody got any ideas about this?
>>
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
More information about the sr-users
mailing list