I can notice that after some minutes the dialog is deleted. Is there a timeout? -- Aleksandar Sošić alex.sosic(at)gmail<dot>com
On Mon, Apr 9, 2018 at 12:56 PM, Aleksandar Sosic alex.sosic@gmail.com wrote:
Hi,
I'm using 5.2.0~dev4+0~20180408010333.1091+xenial now. The dialog without the failover is correctly deleted now:
kamcmd> dlg.list { h_entry: 93 h_id: 9163 ref: 2 call-id: w6HWT0d6EZaVY3Lt1dIi0auvX1sq7Ctl from_uri: sip:0409828030@proxy.alex.cloud.evox.it to_uri: sip:390409828030@proxy.alex.cloud.evox.it state: 4 start_ts: 1523271041 init_ts: 1523271041 end_ts: 0 timeout: 1523271228 lifetime: 187 dflags: 512 sflags: 0 iflags: 1 caller: { tag: 3OHIzRviWKofH8StpnwRPFZhLB8zNs4o contact: sip:0409828030@172.16.21.154:55236;ob cseq: 31843 route_set: sip:172.16.234.85;lr=on;ftag=3OHIzRviWKofH8StpnwRPFZhLB8zNs4o;did=d5.39a1 socket: udp:172.16.234.89:5060 } callee: { tag: as497536f9 contact: sip:39390409828030@172.16.201.101:5060 cseq: 0 route_set: sip:172.16.234.85;lr=on;ftag=3OHIzRviWKofH8StpnwRPFZhLB8zNs4o;did=d5.49a1 socket: udp:172.16.234.89:5060 } profiles: { } variables: { { ru: sip:39390409828030@carrier1.cloud.evox.it } { du: sip:172.16.234.85:5060 } { cgrSupplier: carrier1.cloud.evox.it } { cgrSuppliers: carrier1.cloud.evox.it,carrier2.cloud.evox.it,carrier3.cloud.evox.it } { cgrCallip: 172.16.21.154 } { cgrDestination: 39390409828030 } { cgrAccount: 0409828030 } { cgrTenant: evox.it } { cgrReqType: *prepaid } { calleeNumber: 39390409828030 } { au: 0409828030 } { authType: subscriber } { cgrSubsystems: "cgr_subsystems":"*resources;*suppliers;*accounts" } { originalSourceIP: 172.16.21.154 } } }
During failover the second kamailio istance loads the dialog but than it is not deleted and remains in kamailio even after the call ends via client.
The first instance has this dialog during the call: kamcmd> dlg.list { h_entry: 3812 h_id: 3301 ref: 3 call-id: 0GqZ1kdvtCKeDrh2l5.ctzGd5tc0KX6G from_uri: sip:0409828030@proxy.alex.cloud.evox.it to_uri: sip:390409828030@proxy.alex.cloud.evox.it state: 4 start_ts: 1523271151 init_ts: 1523271150 end_ts: 0 timeout: 1523271338 lifetime: 187 dflags: 512 sflags: 0 iflags: 1 caller: { tag: FMn4o4AlYFAxYTkK89SYVksQbaYTfjvY contact: sip:0409828030@172.16.21.154:55236;ob cseq: 16653 route_set: sip:172.16.234.85;lr=on;ftag=FMn4o4AlYFAxYTkK89SYVksQbaYTfjvY;did=4ee.fca socket: udp:172.16.234.89:5060 } callee: { tag: as0ef32d6d contact: sip:39390409828030@172.16.201.101:5060 cseq: 0 route_set: sip:172.16.234.85;lr=on;ftag=FMn4o4AlYFAxYTkK89SYVksQbaYTfjvY;did=4ee.0da socket: udp:172.16.234.89:5060 } profiles: { } variables: { { ru: sip:39390409828030@carrier1.cloud.evox.it } { du: sip:172.16.234.85:5060 } { cgrSupplier: carrier1.cloud.evox.it } { cgrSuppliers: carrier1.cloud.evox.it,carrier2.cloud.evox.it,carrier3.cloud.evox.it } { cgrCallip: 172.16.21.154 } { cgrDestination: 39390409828030 } { cgrAccount: 0409828030 } { cgrTenant: evox.it } { cgrReqType: *prepaid } { calleeNumber: 39390409828030 } { au: 0409828030 } { authType: subscriber } { cgrSubsystems: "cgr_subsystems":"*resources;*suppliers;*accounts" } { originalSourceIP: 172.16.21.154 } } }
After that I kill that instance (call still ongoing) and the second one has no dialogs before I call the function dlg_db_load_callid($ci) obviously. After loading the dialog from db (with the function dlg_db_load_callid) the dialog remains on kamailio even after the call ended:
kamcmd> dlg.list { h_entry: 3812 h_id: 3301 ref: 2 call-id: 0GqZ1kdvtCKeDrh2l5.ctzGd5tc0KX6G from_uri: sip:0409828030@proxy.alex.cloud.evox.it to_uri: sip:390409828030@proxy.alex.cloud.evox.it state: 4 start_ts: 1523271151 init_ts: 1523271225 end_ts: 0 timeout: 1523271337 lifetime: 187 dflags: 0 sflags: 0 iflags: 1 caller: { tag: FMn4o4AlYFAxYTkK89SYVksQbaYTfjvY contact: sip:0409828030@172.16.21.154:55236;ob cseq: 16653 route_set: sip:172.16.234.85;lr=on;ftag=FMn4o4AlYFAxYTkK89SYVksQbaYTfjvY;did=4ee.fca socket: } callee: { tag: as0ef32d6d contact: sip:39390409828030@172.16.201.101:5060 cseq: 0 route_set: sip:172.16.234.85;lr=on;ftag=FMn4o4AlYFAxYTkK89SYVksQbaYTfjvY;did=4ee.0da socket: } profiles: { } variables: { { originalSourceIP: 172.16.21.154 } { cgrSubsystems: "cgr_subsystems":"*resources;*suppliers;*accounts" } { authType: subscriber } { au: 0409828030 } { calleeNumber: 39390409828030 } { cgrReqType: *prepaid } { cgrTenant: evox.it } { cgrAccount: 0409828030 } { cgrDestination: 39390409828030 } { cgrCallip: 172.16.21.154 } { cgrSuppliers: carrier1.cloud.evox.it,carrier2.cloud.evox.it,carrier3.cloud.evox.it } { cgrSupplier: carrier1.cloud.evox.it } { du: sip:172.16.234.85:5060 } { ru: sip:39390409828030@carrier1.cloud.evox.it } } } -- Aleksandar Sošić alex.sosic(at)gmail<dot>com
On Mon, Apr 9, 2018 at 10:41 AM, Daniel-Constantin Mierla notifications@github.com wrote:
Can you try with latest version and paste again the dialog list rpc output? Over the weekend I pushed a patch to print the reference counter value for the dialog.
Do you use other modules that need dialog?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.