So poking round the code for the dialog module....
Im not sure what im missing here.
get_profile_size dosnt care bout the state of a dialog... so you get ALL
dialogs that are in the hash table.
( which is interesting if you want to use dialog module to enforce channel
limits etc )
So you go... OK... kamailio only expects to have "ACTIVE" dialogs in the
hash table... kewl..
lets assume that to be the case.
but then in dlg_db_handler.c , load_dialog_info_from_db loads all dialogs
from the DB, regardless of state.
so all dialogs in the DB ( ones that didnt get deleted yet... but were in
state 5 ) get re-created in kamailio
upon startup.
what this means is...
( assume starting with empty DB )
I start kamailio, make some calls... they get synced to the DB.
I end the calls, kamailio removes from dialogs module internal hash, but
the sync to DB hasnt happened yet.
I kill kamailio ( or crash .. whatever ).... restart kamailio and it
re-loads all those dialogs
and thinks they are still active calls.
Im SURE Im missing something here, because it seems to be VERY common to
use dialogs for channel limiting..
maybe not so much using cassandra db behind the scenes, but as of yet ...
Im still yet to find anything that makes me thing this is db_cassandra
mis-behaving.
if im wrong, please point me in the right direction.
Jay
On 24 February 2014 17:54, jay binks <jaybinks(a)gmail.com> wrote:
> Am I REALLY the only person who has ever run into this !?
>
>
> On 19 February 2014 14:08, jay binks <jaybinks(a)gmail.com> wrote:
>
>> Hi all, im using the dialog module with db_cassandra backend..
>> I dont believe this issue is related to cassandra, but its worth
>> mentioning anyways.
>>
>> so... I run kamailio, make calls, see dialogs in the DB..
>> and I Can use "kamctl mi dlg_list" and see that dialogs go away when I
>> hangup a call..
>>
>> When I query the DB Backend, I still see the queries, but they have a
>> state of 5.
>> I Initially thought this was a bug, but it seems dialogs in state 5 get
>> cleaned up after a period.
>> so I moved on.
>>
>> now , lets restart kamailio..
>> kamailio loads all dialogs on startup, after kamailio starts I call
>> "kamctl mi dlg_list" again, and it shows all my dialogs from the DB. they
>> DO show as "State 5"
>> but for some reason, these dialogs appear to stick around for a long
>> time, and the bigger issue it causes me is that my channel limiting (
>> using get_profile_size ) seems to consider these dialogs ( in state 5 ) as
>> being active calls.
>>
>> Please someone point me in the right direction... :)
>>
>> what am I doing wrong ?
>> ( or is this a bug somewhere )
>>
>> Sincerely
>>
>> Jay
>>
>
>
>
> --
> Sincerely
>
> Jay
>
--
Sincerely
Jay
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#398 - mtree mt_summary display incorrectly, or memory leak?
User who did this - Josh (JoshE)
----------
The parameters are as follows:
modparam("mtree", "mtree", "name=fc_did;dbtable=dids;type=0;multi=0")
modparam("mtree", "mtree", "name=fc_tenant;dbtable=dids_tenants;type=0;multi=0")
modparam("mtree", "fetch_rows", 2000) # count of DIDs in a single fetch
modparam("mtree", "char_list", "0123456789") # characters in prefix
modparam("mtree", "pv_value", "$avp(dispatch_group)")
modparam("mtree", "tname_column", "name") # name search column
modparam("mtree", "tprefix_column", "did")
modparam("mtree", "tvalue_column", "dispatchgroup")
The values are all in the same database table, technically, although to make this work, I created a view for the "second" table, which references the first database.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=398#comment1317
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#404 - Coredump on using jsonrpc_request
User who did this - davy van de moere (davyvdm)
----------
sorry about that ;)
added the backtraces.
If you need remote access, I can set smth up for you tomorrow.
Grtz,
Davy
----------
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=404#comment1316
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#404 - Coredump on using jsonrpc_request
User who did this - davy van de moere (davyvdm)
----------
sorry about that ;)
added the backtraces.
If you need remote access, I can set smth up for you tomorrow.
Grtz,
Davy
----------
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=404#comment1315
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
Jason Penton has taken ownership of the following task:
FS#400 - Crash in asynchronous processing
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=400
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#404 - Coredump on using jsonrpc_request
User who did this - davy van de moere (davyvdm)
----------
sorry about that ;)
added the backtraces.
If you need remote access, I can set smth up for you tomorrow.
Grtz,
Davy
----------
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=404#comment1314
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#404 - Coredump on using jsonrpc_request
User who did this - Daniel-Constantin Mierla (miconda)
----------
I cannot use the corefile, I need only the backtrace. You can get it with:
gdb /path/to/kamailio /path/to/corefile
bt full
Do it for both corefiles.
Hopefully I can catch it from logs and backtraces, if not, then we may get to some interactive session with remote access.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=404#comment1313
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#404 - Coredump on using jsonrpc_request
User who did this - davy van de moere (davyvdm)
----------
I can reproduce it with no effort ;) Enclosed corefiles, and the relevant logs (debug=3)
I have it running in an openvz, if you need me to, I can setup a clone for you and give you root on it.
----------
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=404#comment1312
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.