abuzooz Posted September 29, 2020 Report Posted September 29, 2020 (edited) Hi All We are having a duplicate in any webbook event, for example, we build a webbook for channel destroy, we expect to received 2 events for a channel destroy, however, we receive 4 (duplicated events), we have 2 ecallmgr in our zone, we stopped one of the ecallmgr and we started to receive only 2 (normal without duplicates), but when both are running we receive 4 event (duplicated records) as you can see below, is there a way to prevent this from happening? { "account_id":"ba4774842e5840b29c5f6ab1784ad171", "call_direction":"outbound", "call_id":"ed5c6510-16b3-4c98-9b18-ad896c7d520f", "callee_id_name":"985555", "callee_id_number":"985555", "caller_id_name":"yazan inaimss", "caller_id_number":"+985555", "custom_channel_vars":{ "Bridge-ID":"0_3481997043@192.168.10.3", "Channel-Authorized":"true", "E164-Destination":"+972599796989", "Global-Resource":"true", "Matched-Number":"985555", "Original-Number":"985555", "Reseller-ID":"d751fcae7bebadcae4acfa188ca21939", "Resource-ID":"billing", "Resource-Type":"offnet-termination" }, "emergency_resource_used":"false", "from":"1008@atlantic.xx.com", "local_resource_used":"false", "is_internal_leg":"false", "other_leg_call_id":"0_3481997043@192.168.10.3", "request":"985555@atlantic.xx.com", "reseller_id":"d751fcae7bebadcae4acfa188ca21939", "timestamp":"63768627479", "to":"nouser@atlantic.xxxx.com", "hook_event":"channel_destroy", "hangup_cause":"ORIGINATOR_CANCEL", "hangup_code":"sip:487", "duration_seconds":"0", "ringing_seconds":"0", "billing_seconds":"0", "cluster_id":"44b1e0dc2c0bca7cd07916ae16d14da7" } { "account_id":"ba4774842e5840b29c5f6ab1784ad171", "authorizing_id":"ed4421e3c7d6d66f303279edce5cd322", "authorizing_type":"device", "call_direction":"inbound", "call_id":"0_3481997043@192.168.10.3", "caller_id_name":"yazan_inaimss", "caller_id_number":"1008", "custom_channel_vars":{ "Application-Name":"callflow", "Application-Node":"kazoo_apps@kz.xx.com", "Bridge-ID":"0_3481997043@192.168.10.3", "CallFlow-ID":"25178a8c5f2ad05d145e59f89835679d", "Channel-Authorized":"true", "Privacy-Hide-Name":"false", "Privacy-Hide-Number":"false", "Reseller-ID":"d751fcae7bebadcae4acfa188ca21939" }, "custom_application_vars":{ "SHARAMEET":"0_3481997043@192.168.10.3", "SHARAMEET-EXTENSION":"1008", "SHARAMEET_CALLER_ID":"12518068273" }, "emergency_resource_used":"false", "from":"1008@atlantic.xx.com", "local_resource_used":"true", "is_internal_leg":"false", "owner_id":"2399970e0db1a68698fd21ea0ec1999c", "request":"985555@atlantic.xx.com", "reseller_id":"d751fcae7bebadcae4acfa188ca21939", "timestamp":"63768627479", "to":"972599796989@atlantic.xx.com:5060", "hook_event":"channel_destroy", "hangup_cause":"ORIGINATOR_CANCEL", "hangup_code":"sip:487", "duration_seconds":"1", "ringing_seconds":"1", "billing_seconds":"0", "cluster_id":"44b1e0dc2c0bca7cd07916ae16d14da7" } --------------------------------------------------------------------------------------------------------------- { "account_id":"ba4774842e5840b29c5f6ab1784ad171", "authorizing_id":"ed4421e3c7d6d66f303279edce5cd322", "authorizing_type":"device", "call_direction":"inbound", "call_id":"0_3481997043@192.168.10.3", "caller_id_name":"yazan_inaimss", "caller_id_number":"1008", "custom_channel_vars":{ "Application-Name":"callflow", "Application-Node":"kazoo_apps@kz.xx.com", "Bridge-ID":"0_3481997043@192.168.10.3", "CallFlow-ID":"25178a8c5f2ad05d145e59f89835679d", "Channel-Authorized":"true", "Privacy-Hide-Name":"false", "Privacy-Hide-Number":"false", "Reseller-ID":"d751fcae7bebadcae4acfa188ca21939" }, "custom_application_vars":{ "SHARAMEET":"0_3481997043@192.168.10.3", "SHARAMEET-EXTENSION":"1008", "SHARAMEET_CALLER_ID":"12518068273" }, "emergency_resource_used":"false", "from":"1008@atlantic.xx.com", "local_resource_used":"true", "is_internal_leg":"false", "owner_id":"2399970e0db1a68698fd21ea0ec1999c", "request":"985555@atlantic.xx.com", "reseller_id":"d751fcae7bebadcae4acfa188ca21939", "timestamp":"63768627479", "to":"972599796989@atlantic.xx.com:5060", "hook_event":"channel_destroy", "hangup_cause":"ORIGINATOR_CANCEL", "hangup_code":"sip:487", "duration_seconds":"1", "ringing_seconds":"1", "billing_seconds":"0", "cluster_id":"44b1e0dc2c0bca7cd07916ae16d14da7" } { "account_id":"ba4774842e5840b29c5f6ab1784ad171", "call_direction":"outbound", "call_id":"ed5c6510-16b3-4c98-9b18-ad896c7d520f", "callee_id_name":"985555", "callee_id_number":"985555", "caller_id_name":"yazan inaimss", "caller_id_number":"+985555", "custom_channel_vars":{ "Bridge-ID":"0_3481997043@192.168.10.3", "Channel-Authorized":"true", "E164-Destination":"+972599796989", "Global-Resource":"true", "Matched-Number":"985555", "Original-Number":"985555", "Reseller-ID":"d751fcae7bebadcae4acfa188ca21939", "Resource-ID":"billing", "Resource-Type":"offnet-termination" }, "emergency_resource_used":"false", "from":"1008@atlantic.xx.com", "local_resource_used":"false", "is_internal_leg":"false", "other_leg_call_id":"0_3481997043@192.168.10.3", "request":"985555@atlantic.xx.com", "reseller_id":"d751fcae7bebadcae4acfa188ca21939", "timestamp":"63768627479", "to":"nouser@atlantic.xxxx.com", "hook_event":"channel_destroy", "hangup_cause":"ORIGINATOR_CANCEL", "hangup_code":"sip:487", "duration_seconds":"0", "ringing_seconds":"0", "billing_seconds":"0", "cluster_id":"44b1e0dc2c0bca7cd07916ae16d14da7" } Edited September 29, 2020 by abuzooz (see edit history) Quote
abuzooz Posted September 30, 2020 Author Report Posted September 30, 2020 Problem was solved using this command sup kapps_config set_default ecallmgr restrict_channel_state_publisher true Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.