From fc71213a26d5e0a24b6b060b01a2903a82ff0eb4 Mon Sep 17 00:00:00 2001 From: Jasper Hafkenscheid Date: Thu, 30 Nov 2017 13:56:22 +0100 Subject: [PATCH] INFRA-724: Add support for ConnectAB calls (ctd/cmn). --- cacofonisk/channel.py | 170 +++++++-- tests/fixtures/connectab/cmn-self-world.json | 145 ++++++++ .../cmn-world-account-unaccepted.json | 65 ++++ .../fixtures/connectab/cmn-world-account.json | 115 +++++++ tests/fixtures/connectab/cmn-world-world.json | 148 ++++++++ .../connectab/ctd-account-account.json | 115 +++++++ .../connectab/ctd-account-world-deny_a.json | 38 ++ .../connectab/ctd-account-world-deny_b.json | 90 +++++ .../connectab/ctd-account-world-fail2.json | 87 +++++ .../fixtures/connectab/ctd-account-world.json | 140 ++++++++ tests/fixtures/connectab/ctd-attn-xfer.json | 160 +++++++++ .../fixed/fixed_outbound_success.json | 40 +++ tests/test_acceptance.py | 12 +- tests/test_connectab.py | 325 ++++++++++++++++++ tests/test_fixed.py | 33 +- tests/test_partial.py | 1 + 16 files changed, 1643 insertions(+), 41 deletions(-) create mode 100644 tests/fixtures/connectab/cmn-self-world.json create mode 100644 tests/fixtures/connectab/cmn-world-account-unaccepted.json create mode 100644 tests/fixtures/connectab/cmn-world-account.json create mode 100644 tests/fixtures/connectab/cmn-world-world.json create mode 100644 tests/fixtures/connectab/ctd-account-account.json create mode 100644 tests/fixtures/connectab/ctd-account-world-deny_a.json create mode 100644 tests/fixtures/connectab/ctd-account-world-deny_b.json create mode 100644 tests/fixtures/connectab/ctd-account-world-fail2.json create mode 100644 tests/fixtures/connectab/ctd-account-world.json create mode 100644 tests/fixtures/connectab/ctd-attn-xfer.json create mode 100644 tests/fixtures/fixed/fixed_outbound_success.json create mode 100644 tests/test_connectab.py diff --git a/cacofonisk/channel.py b/cacofonisk/channel.py index effe105..12c34c7 100644 --- a/cacofonisk/channel.py +++ b/cacofonisk/channel.py @@ -151,6 +151,42 @@ def is_zombie(self): """ return self.name.endswith('') + @property + def is_connectab(self): + """ + Check if this channel is part of a ConnectAB call. + + Returns: + bool: True if this is the origin channel of ConnectAB. + """ + # ConnectAB is a channel setup specific to VoIPGRID, which + # is used for click-to-dial and call-me-now functionality. + # Basically, an ORIGINATE call is sent to Asterisk, which + # will then dial participant 1, wait for the participant to + # pick up, then call participant 2 and link the two together. + # + # Since both A and B are being called and Asterisk itself is + # calling, we need some special logic to make it work. + # local_a is the origin channel of the dial to our caller. + local_a = self.get_dialing_channel() + + # With a regular call, the dialing channel is a SIP channel, but with + # a ConnectAB call, the dialing channel is created by Asterisk so it's + # a local channel. + # This dialing channel is locally bridged with another channel and both + # local channels have outbound dials to both legs of a conversation. + return local_a._fwd_local_bridge and local_a.fwd_dials and local_a._fwd_local_bridge.fwd_dials + + @property + def is_local(self): + """ + Whether the current channel is a local channel. + + Returns: + bool: True if the channel is local, false otherwise. + """ + return self.name.startswith('Local/') + @property def is_sip(self): """ @@ -346,6 +382,20 @@ def set_accountcode(self, event): else: self._trace('set_accountcode ignored {} -> {}'.format(self._callerid.code, event['AccountCode'])) + def connectab_participants(self): + """ + Extract the real caller and callee channels of a ConnectAB call. + """ + # First, we need to find the local channels which Asterisk uses to + # dial out of the participants. + local_a = self.get_dialing_channel() + local_b = local_a._fwd_local_bridge + + # Then, we can get the channels being dialed by Asterisk. + callee = local_a.fwd_dials[0] + caller = local_b.fwd_dials[0] + return caller, callee + def do_hangup(self, event): """ do_hangup clears clears all related channel and raises an error if any @@ -963,7 +1013,22 @@ def _raw_b_dial(self, channel): # initiated on the B side, then it's our dummy channel. self.on_cold_transfer(a_chan.uniqueid, redirector_chan.uniqueid, redirector, a_chan.callerid, redirector_chan.exten, targets) - else: + elif a_chan.is_connectab: + # Since both A and B are being called and Asterisk itself is + # calling, we need some special logic to make it work. + caller, callee = a_chan.connectab_participants() + real_a_chan = a_chan._fwd_local_bridge + real_a_chan._callerid = a_chan.callerid.replace(code=caller.callerid.code) + + self.on_b_dial( + a_chan._fwd_local_bridge.uniqueid, + # Use the data from the local a_chan, but pull the account + # code from the "caller" dialed by Asterisk. + real_a_chan.callerid, + channel.callerid.number, + [channel.callerid] + ) + elif a_chan.is_relevant: # We'll want to send one ringing event for all targets. So # let's figure out to whom a_chan has open dials. To ensure # only one event is raised, we'll check all the uniqueids and @@ -1117,7 +1182,19 @@ def _raw_b_up(self, channel): a_chan = channel.get_dialing_channel() b_chan = channel if a_chan.is_up: - self.on_up(a_chan.uniqueid, a_chan.callerid, a_chan.exten, b_chan.callerid) + if a_chan.is_connectab: + caller, callee = a_chan.connectab_participants() + real_a_chan = a_chan._fwd_local_bridge + real_a_chan._callerid = a_chan.callerid.replace(code=caller.callerid.code) + + self.on_up( + a_chan._fwd_local_bridge.uniqueid, + real_a_chan.callerid, + b_chan.callerid.number, + b_chan.callerid + ) + else: + self.on_up(a_chan.uniqueid, a_chan.callerid, a_chan.exten, b_chan.callerid) def _raw_hangup(self, channel, event): """ @@ -1128,6 +1205,8 @@ def _raw_hangup(self, channel, event): event (Event): The data of the event. """ if channel.is_relevant: + a_chan = channel.get_dialing_channel() + if 'raw_blind_transfer' in channel.custom: # Panic! This channel had a blind transfer coming up but it's # being hung up! That probably means the blind transfer target @@ -1153,41 +1232,28 @@ def _raw_hangup(self, channel, event): # with the transfer, we shouldn't send a hangup notification. pass + elif a_chan.is_connectab: + # A called channel, in connectab both sip channels are 'called'. + caller, callee = channel.connectab_participants() + + if callee.state != AST_STATE_DOWN: + # Depending on who hangs up, we get a different order of events, + # Setting these markers ensures only the first hangup is sent. + callee.custom['ignore_a_hangup'] = True + caller.custom['ignore_a_hangup'] = True + + self.on_a_hangup( + a_chan._fwd_local_bridge.uniqueid, + caller.callerid.replace(number=a_chan.callerid.number), + callee.exten, + self._hangup_reason(callee, event) + ) + elif channel.is_calling_chan: # The caller is being disconnected, so we should notify the # user. - hangup_cause = int(event['Cause']) - - # Map the Asterisk hangup causes to easy to understand strings. - # See https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings - if hangup_cause == AST_CAUSE_NORMAL_CLEARING: - # If channel is not up, the call never really connected. - # This happens when call confirmation is unsuccessful. - if channel.is_up: - reason = 'completed' - else: - reason = 'no-answer' - elif hangup_cause == AST_CAUSE_USER_BUSY: - reason = 'busy' - elif hangup_cause in (AST_CAUSE_NO_USER_RESPONSE, AST_CAUSE_NO_ANSWER): - reason = 'no-answer' - elif hangup_cause == AST_CAUSE_ANSWERED_ELSEWHERE: - reason = 'answered-elsewhere' - elif hangup_cause == AST_CAUSE_CALL_REJECTED: - reason = 'rejected' - elif hangup_cause == AST_CAUSE_UNKNOWN: - # Sometimes Asterisk doesn't set a proper hangup cause. - # If our a_chan is already up, this probably means the - # call was successful. If not, that means A hanged up, - # which we assign the "cancelled" status. - if channel.is_up: - reason = 'completed' - else: - reason = 'cancelled' - else: - reason = 'failed' - + reason = self._hangup_reason(channel, event) self.on_a_hangup(channel.uniqueid, channel.callerid, channel.exten, reason) # We've sent all relevant notifications regarding the channel @@ -1203,6 +1269,44 @@ def _raw_hangup(self, channel, event): if not len(self._registry): self._reporter.trace_msg('(no channels left)') + def _hangup_reason(self, channel, event): + """ + Map the Asterisk hangup causes to easy to understand strings. + + Args: + channel (Channel): The channel which is hung up. + event (Event): The data of the event. + """ + hangup_cause = int(event['Cause']) + + # See https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings + if hangup_cause == AST_CAUSE_NORMAL_CLEARING: + # If channel is not up, the call never really connected. + # This happens when call confirmation is unsuccessful. + if channel.is_up: + return 'completed' + else: + return 'no-answer' + elif hangup_cause == AST_CAUSE_USER_BUSY: + return 'busy' + elif hangup_cause in (AST_CAUSE_NO_USER_RESPONSE, AST_CAUSE_NO_ANSWER): + return 'no-answer' + elif hangup_cause == AST_CAUSE_ANSWERED_ELSEWHERE: + return 'answered-elsewhere' + elif hangup_cause == AST_CAUSE_CALL_REJECTED: + return 'rejected' + elif hangup_cause == AST_CAUSE_UNKNOWN: + # Sometimes Asterisk doesn't set a proper hangup cause. + # If our a_chan is already up, this probably means the + # call was successful. If not, that means A hanged up, + # which we assign the "cancelled" status. + if channel.is_up: + return 'completed' + else: + return 'cancelled' + else: + return 'failed' + # =================================================================== # Actual event handlers you should override # =================================================================== diff --git a/tests/fixtures/connectab/cmn-self-world.json b/tests/fixtures/connectab/cmn-self-world.json new file mode 100644 index 0000000..0515ede --- /dev/null +++ b/tests/fixtures/connectab/cmn-self-world.json @@ -0,0 +1,145 @@ +[ + {"Event": "FullyBooted", "Status": "Fully Booted", "Privilege": "system,all", "content": ""}, + {"Event": "FullyBooted", "Status": "Fully Booted", "Privilege": "system,all", "content": ""}, + {"Event": "Newchannel", "Context": "osvpi_proc_connectab_cmn", "Exten": "ID400721", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1964"}, + {"Event": "Newchannel", "Context": "osvpi_proc_connectab_cmn", "Exten": "ID400721", "content": "", "ChannelState": "4", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "CallerIDNum": "", "ChannelStateDesc": "Ring", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1965"}, + {"Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Uniqueid": "ua0-acc-1513786051.1964", "content": ""}, + {"CID-CallingPres": "67 (Number Unavailable)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Uniqueid": "ua0-acc-1513786051.1964", "CallerIDName": "", "CallerIDNum": "", "content": ""}, + {"Event": "LocalBridge", "Channel2": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "Privilege": "call,all", "Context": "osvpi_proc_connectab_cmn", "Uniqueid1": "ua0-acc-1513786051.1964", "LocalOptimization": "No", "content": "", "Channel1": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Exten": "ID400721", "Uniqueid2": "ua0-acc-1513786051.1965"}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "Uniqueid": "ua0-acc-1513786051.1965", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "Uniqueid": "ua0-acc-1513786051.1965", "CallerIDName": "Calling...", "CallerIDNum": "", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "Uniqueid": "ua0-acc-1513786051.1965", "CallerIDName": "Calling...", "CallerIDNum": "+31853030903", "content": ""}, + {"Event": "Newchannel", "Context": "osvpi_world_call_permittedplus", "Exten": "+31508009074", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1966"}, + {"Event": "Newchannel", "Context": "osvpi_world_call_permittedplus", "Exten": "+31508009074", "content": "", "ChannelState": "4", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "CallerIDNum": "", "ChannelStateDesc": "Ring", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1967"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Uniqueid": "ua0-acc-1513786051.1966", "CallerIDName": "", "CallerIDNum": "ID400721", "content": ""}, + {"Event": "LocalBridge", "Channel2": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "Privilege": "call,all", "Context": "osvpi_world_call_permittedplus", "Uniqueid1": "ua0-acc-1513786051.1966", "LocalOptimization": "Yes", "content": "", "Channel1": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Exten": "+31508009074", "Uniqueid2": "ua0-acc-1513786051.1967"}, + {"ConnectedLineNum": "", "Event": "Dial", "Dialstring": "+31508009074@osvpi_world_call_permittedplus", "content": "", "Destination": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "DestUniqueID": "ua0-acc-1513786051.1966", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "CallerIDNum": "+31853030903", "ConnectedLineName": "", "CallerIDName": "Calling...", "UniqueID": "ua0-acc-1513786051.1965"}, + {"Event": "Newchannel", "Context": "world_out", "Exten": "+31508009074", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;1", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1968"}, + {"Event": "Newchannel", "Context": "world_out", "Exten": "+31508009074", "content": "", "ChannelState": "4", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;2", "CallerIDNum": "", "ChannelStateDesc": "Ring", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1969"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;1", "Uniqueid": "ua0-acc-1513786051.1968", "CallerIDName": "", "CallerIDNum": "+31508009074", "content": ""}, + {"Event": "LocalBridge", "Channel2": "Local/+31508009074@world_out-000002d3;2", "Privilege": "call,all", "Context": "world_out", "Uniqueid1": "ua0-acc-1513786051.1968", "LocalOptimization": "Yes", "content": "", "Channel1": "Local/+31508009074@world_out-000002d3;1", "Exten": "+31508009074", "Uniqueid2": "ua0-acc-1513786051.1969"}, + {"ConnectedLineNum": "ID400721", "Event": "Dial", "Dialstring": "+31508009074@world_out", "content": "", "Destination": "Local/+31508009074@world_out-000002d3;1", "DestUniqueID": "ua0-acc-1513786051.1968", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "CallerIDNum": "+31853030903", "ConnectedLineName": "", "CallerIDName": "Calling...", "UniqueID": "ua0-acc-1513786051.1967"}, + {"Event": "Newchannel", "Context": "voipgrid_in", "Exten": "", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786051.1970"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1970", "CallerIDName": "", "CallerIDNum": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "Event": "Dial", "Dialstring": "+31508009074@voipgrid-siproute-dev", "content": "", "Destination": "SIP/voipgrid-siproute-dev-0000020a", "DestUniqueID": "ua0-acc-1513786051.1970", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;2", "CallerIDNum": "+31853030903", "ConnectedLineName": "", "CallerIDName": "Calling...", "UniqueID": "ua0-acc-1513786051.1969"}, + {"ConnectedLineNum": "+31853030903", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1970", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": "Calling..."}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1969", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;2", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "Calling...", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1970", "content": ""}, + {"Bridgestate": "Link", "Channel2": "SIP/voipgrid-siproute-dev-0000020a", "Privilege": "call,all", "CallerID2": "+31508009074", "Uniqueid1": "ua0-acc-1513786051.1969", "Channel1": "Local/+31508009074@world_out-000002d3;2", "Uniqueid2": "ua0-acc-1513786051.1970", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31853030903", "content": ""}, + {"ConnectedLineNum": "+31853030903", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1968", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;1", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": "Calling..."}, + {"ConnectedLineNum": "ID400721", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1967", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "Calling...", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;1", "Uniqueid": "ua0-acc-1513786051.1968", "content": ""}, + {"Bridgestate": "Link", "Channel2": "Local/+31508009074@world_out-000002d3;1", "Privilege": "call,all", "CallerID2": "+31508009074", "Uniqueid1": "ua0-acc-1513786051.1967", "Channel1": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "Uniqueid2": "ua0-acc-1513786051.1968", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31853030903", "content": ""}, + {"ConnectedLineNum": "+31853030903", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1966", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "CallerIDNum": "ID400721", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": "Calling..."}, + {"ConnectedLineNum": "", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1965", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "Calling...", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Uniqueid": "ua0-acc-1513786051.1966", "content": ""}, + {"Bridgestate": "Link", "Channel2": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Privilege": "call,all", "CallerID2": "ID400721", "Uniqueid1": "ua0-acc-1513786051.1965", "Channel1": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "Uniqueid2": "ua0-acc-1513786051.1966", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31853030903", "content": ""}, + {"ConnectedLineNum": "", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786051.1964", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "CallerIDNum": "", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Uniqueid": "ua0-acc-1513786051.1964", "content": ""}, + {"Event": "Masquerade", "OriginalState": "Up", "Original": "Local/+31508009074@world_out-000002d3;1", "Privilege": "call,all", "CloneState": "Up", "Clone": "SIP/voipgrid-siproute-dev-0000020a", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1970", "Newname": "SIP/voipgrid-siproute-dev-0000020a", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;1", "Uniqueid": "ua0-acc-1513786051.1968", "Newname": "SIP/voipgrid-siproute-dev-0000020a", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1970", "Newname": "Local/+31508009074@world_out-000002d3;1", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1968", "CallerIDName": "", "CallerIDNum": "+31508009074", "content": ""}, + {"Bridgestate": "Unlink", "Channel2": "Local/+31508009074@world_out-000002d3;1", "Privilege": "call,all", "CallerID2": "+31508009074", "Uniqueid1": "ua0-acc-1513786051.1969", "Channel1": "Local/+31508009074@world_out-000002d3;2", "Uniqueid2": "ua0-acc-1513786051.1970", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31853030903", "content": ""}, + {"ConnectedLineNum": "+31853030903", "Event": "Hangup", "ConnectedLineName": "Calling...", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;1", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1970"}, + {"Event": "Masquerade", "OriginalState": "Up", "Original": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Privilege": "call,all", "CloneState": "Up", "Clone": "SIP/voipgrid-siproute-dev-0000020a", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1968", "Newname": "SIP/voipgrid-siproute-dev-0000020a", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Uniqueid": "ua0-acc-1513786051.1966", "Newname": "SIP/voipgrid-siproute-dev-0000020a", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1968", "Newname": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "Uniqueid": "ua0-acc-1513786051.1966", "CallerIDName": "", "CallerIDNum": "ID400721", "content": ""}, + {"Bridgestate": "Unlink", "Channel2": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "Privilege": "call,all", "CallerID2": "+31508009074", "Uniqueid1": "ua0-acc-1513786051.1967", "Channel1": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "Uniqueid2": "ua0-acc-1513786051.1968", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31853030903", "content": ""}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;2", "UniqueID": "ua0-acc-1513786051.1969", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "+31508009074", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31508009074@world_out-000002d3;2", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "Calling...", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1969"}, + {"ConnectedLineNum": "+31853030903", "Event": "Hangup", "ConnectedLineName": "Calling...", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;1", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1968"}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "UniqueID": "ua0-acc-1513786051.1967", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "ID400721", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31508009074@osvpi_world_call_permittedplus-000002d2;2", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "Calling...", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1967"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Uniqueid": "ua0-acc-1513786051.1964", "CallerIDName": "", "CallerIDNum": "+31508009074", "content": ""}, + {"Event": "Newchannel", "Context": "osvpi_world_call_permittedplus", "Exten": "+31853030903", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786064.1971"}, + {"Event": "Newchannel", "Context": "osvpi_world_call_permittedplus", "Exten": "+31853030903", "content": "", "ChannelState": "4", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "CallerIDNum": "", "ChannelStateDesc": "Ring", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786064.1972"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Uniqueid": "ua0-acc-1513786064.1971", "CallerIDName": "", "CallerIDNum": "ID400721", "content": ""}, + {"Event": "LocalBridge", "Channel2": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "Privilege": "call,all", "Context": "osvpi_world_call_permittedplus", "Uniqueid1": "ua0-acc-1513786064.1971", "LocalOptimization": "Yes", "content": "", "Channel1": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Exten": "+31853030903", "Uniqueid2": "ua0-acc-1513786064.1972"}, + {"ConnectedLineNum": "", "Event": "Dial", "Dialstring": "+31853030903@osvpi_world_call_permittedplus", "content": "", "Destination": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "DestUniqueID": "ua0-acc-1513786064.1971", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "CallerIDNum": "+31508009074", "ConnectedLineName": "", "CallerIDName": "", "UniqueID": "ua0-acc-1513786051.1964"}, + {"Event": "Newchannel", "Context": "world_out", "Exten": "+31853030903", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786064.1973"}, + {"Event": "Newchannel", "Context": "world_out", "Exten": "+31853030903", "content": "", "ChannelState": "4", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;2", "CallerIDNum": "", "ChannelStateDesc": "Ring", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786064.1974"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "Uniqueid": "ua0-acc-1513786064.1973", "CallerIDName": "", "CallerIDNum": "+31853030903", "content": ""}, + {"Event": "LocalBridge", "Channel2": "Local/+31853030903@world_out-000002d5;2", "Privilege": "call,all", "Context": "world_out", "Uniqueid1": "ua0-acc-1513786064.1973", "LocalOptimization": "Yes", "content": "", "Channel1": "Local/+31853030903@world_out-000002d5;1", "Exten": "+31853030903", "Uniqueid2": "ua0-acc-1513786064.1974"}, + {"ConnectedLineNum": "ID400721", "Event": "Dial", "Dialstring": "+31853030903@world_out", "content": "", "Destination": "Local/+31853030903@world_out-000002d5;1", "DestUniqueID": "ua0-acc-1513786064.1973", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "CallerIDNum": "+31508009074", "ConnectedLineName": "", "CallerIDName": "", "UniqueID": "ua0-acc-1513786064.1972"}, + {"Event": "Newchannel", "Context": "voipgrid_in", "Exten": "", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786064.1975"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1975", "CallerIDName": "", "CallerIDNum": "+31853030903", "content": ""}, + {"ConnectedLineNum": "+31853030903", "Event": "Dial", "Dialstring": "+31853030903@voipgrid-siproute-dev", "content": "", "Destination": "SIP/voipgrid-siproute-dev-0000020b", "DestUniqueID": "ua0-acc-1513786064.1975", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;2", "CallerIDNum": "+31508009074", "ConnectedLineName": "", "CallerIDName": "", "UniqueID": "ua0-acc-1513786064.1974"}, + {"Event": "Newchannel", "Context": "voipgrid_in", "Exten": "+31853030903", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "CallerIDNum": "+31508009074", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786064.1976"}, + {"ConnectedLineNum": "", "ChannelState": "4", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513786064.1976", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "Uniqueid": "ua0-acc-1513786064.1976", "content": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "5", "ChannelStateDesc": "Ringing", "Uniqueid": "ua0-acc-1513786064.1975", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "5", "ChannelStateDesc": "Ringing", "Uniqueid": "ua0-acc-1513786064.1973", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "5", "ChannelStateDesc": "Ringing", "Uniqueid": "ua0-acc-1513786064.1971", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "CallerIDNum": "ID400721", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"Event": "Newchannel", "Context": "osvpi_route_phoneaccount", "Exten": "ID730661", "content": "", "ChannelState": "0", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786065.1977"}, + {"Event": "Newchannel", "Context": "osvpi_route_phoneaccount", "Exten": "ID730661", "content": "", "ChannelState": "4", "AccountCode": "", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "CallerIDNum": "", "ChannelStateDesc": "Ring", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786065.1978"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Uniqueid": "ua0-acc-1513786065.1977", "CallerIDName": "", "CallerIDNum": "+31853030903", "content": ""}, + {"Event": "LocalBridge", "Channel2": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "Privilege": "call,all", "Context": "osvpi_route_phoneaccount", "Uniqueid1": "ua0-acc-1513786065.1977", "LocalOptimization": "Yes", "content": "", "Channel1": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Exten": "ID730661", "Uniqueid2": "ua0-acc-1513786065.1978"}, + {"ConnectedLineNum": "", "Event": "Dial", "Dialstring": "ID730661@osvpi_route_phoneaccount", "content": "", "Destination": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "DestUniqueID": "ua0-acc-1513786065.1977", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "CallerIDNum": "+31508009074", "ConnectedLineName": "", "CallerIDName": "", "UniqueID": "ua0-acc-1513786064.1976"}, + {"Event": "Newchannel", "Context": "osvpi_account", "Exten": "", "content": "", "ChannelState": "0", "AccountCode": "126680010", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "CallerIDNum": "", "ChannelStateDesc": "Down", "CallerIDName": "", "Uniqueid": "ua0-acc-1513786065.1979"}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "Uniqueid": "ua0-acc-1513786065.1979", "CallerIDName": "", "CallerIDNum": "+31853030903", "content": ""}, + {"ConnectedLineNum": "+31853030903", "Event": "Dial", "Dialstring": "126680010/126680010/195.35.115.203!!0508009074", "content": "", "Destination": "SIP/126680010-0000020d", "DestUniqueID": "ua0-acc-1513786065.1979", "SubEvent": "Begin", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "CallerIDNum": "+31508009074", "ConnectedLineName": "", "CallerIDName": "", "UniqueID": "ua0-acc-1513786065.1978"}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "5", "ChannelStateDesc": "Ringing", "Uniqueid": "ua0-acc-1513786065.1979", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "5", "ChannelStateDesc": "Ringing", "Uniqueid": "ua0-acc-1513786065.1977", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786065.1979", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "+31853030903", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786065.1978", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "Uniqueid": "ua0-acc-1513786065.1979", "content": ""}, + {"Bridgestate": "Link", "Channel2": "SIP/126680010-0000020d", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786065.1978", "Channel1": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "Uniqueid2": "ua0-acc-1513786065.1979", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786065.1977", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786064.1976", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Uniqueid": "ua0-acc-1513786065.1977", "content": ""}, + {"Bridgestate": "Link", "Channel2": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786064.1976", "Channel1": "SIP/voipgrid-siproute-dev-0000020c", "Uniqueid2": "ua0-acc-1513786065.1977", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786064.1975", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "+31853030903", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786064.1974", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;2", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1975", "content": ""}, + {"Bridgestate": "Link", "Channel2": "SIP/voipgrid-siproute-dev-0000020b", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786064.1974", "Channel1": "Local/+31853030903@world_out-000002d5;2", "Uniqueid2": "ua0-acc-1513786064.1975", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786064.1973", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"ConnectedLineNum": "ID400721", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786064.1972", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "Uniqueid": "ua0-acc-1513786064.1973", "content": ""}, + {"Bridgestate": "Link", "Channel2": "Local/+31853030903@world_out-000002d5;1", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786064.1972", "Channel1": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "Uniqueid2": "ua0-acc-1513786064.1973", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "ChannelState": "6", "ChannelStateDesc": "Up", "Uniqueid": "ua0-acc-1513786064.1971", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "CallerIDNum": "ID400721", "content": "", "CallerIDName": "", "Event": "Newstate", "ConnectedLineName": ""}, + {"OldAccountCode": "12668", "Event": "NewAccountCode", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Uniqueid": "ua0-acc-1513786064.1971", "content": ""}, + {"Bridgestate": "Link", "Channel2": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Privilege": "call,all", "CallerID2": "ID400721", "Uniqueid1": "ua0-acc-1513786051.1964", "Channel1": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Uniqueid2": "ua0-acc-1513786064.1971", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"Event": "Masquerade", "OriginalState": "Up", "Original": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Privilege": "call,all", "CloneState": "Up", "Clone": "SIP/126680010-0000020d", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "Uniqueid": "ua0-acc-1513786065.1979", "Newname": "SIP/126680010-0000020d", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Uniqueid": "ua0-acc-1513786065.1977", "Newname": "SIP/126680010-0000020d", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "Uniqueid": "ua0-acc-1513786065.1979", "Newname": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "Uniqueid": "ua0-acc-1513786065.1977", "CallerIDName": "", "CallerIDNum": "+31853030903", "content": ""}, + {"Bridgestate": "Unlink", "Channel2": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786065.1978", "Channel1": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "Uniqueid2": "ua0-acc-1513786065.1979", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"Event": "Masquerade", "OriginalState": "Up", "Original": "Local/+31853030903@world_out-000002d5;1", "Privilege": "call,all", "CloneState": "Up", "Clone": "SIP/voipgrid-siproute-dev-0000020b", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1975", "Newname": "SIP/voipgrid-siproute-dev-0000020b", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "Uniqueid": "ua0-acc-1513786064.1973", "Newname": "SIP/voipgrid-siproute-dev-0000020b", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1975", "Newname": "Local/+31853030903@world_out-000002d5;1", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1973", "CallerIDName": "", "CallerIDNum": "+31853030903", "content": ""}, + {"Bridgestate": "Unlink", "Channel2": "Local/+31853030903@world_out-000002d5;1", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786064.1974", "Channel1": "Local/+31853030903@world_out-000002d5;2", "Uniqueid2": "ua0-acc-1513786064.1975", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786065.1979"}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "UniqueID": "ua0-acc-1513786065.1978", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "+31853030903", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002d6;2", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786065.1978"}, + {"Event": "Masquerade", "OriginalState": "Up", "Original": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Privilege": "call,all", "CloneState": "Up", "Clone": "SIP/voipgrid-siproute-dev-0000020b", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1973", "Newname": "SIP/voipgrid-siproute-dev-0000020b", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Uniqueid": "ua0-acc-1513786064.1971", "Newname": "SIP/voipgrid-siproute-dev-0000020b", "content": ""}, + {"Event": "Rename", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1973", "Newname": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "content": ""}, + {"CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Event": "NewCallerid", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "Uniqueid": "ua0-acc-1513786064.1971", "CallerIDName": "", "CallerIDNum": "ID400721", "content": ""}, + {"Bridgestate": "Unlink", "Channel2": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786064.1972", "Channel1": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "Uniqueid2": "ua0-acc-1513786064.1973", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786064.1975"}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;2", "UniqueID": "ua0-acc-1513786064.1974", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "+31853030903", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31853030903@world_out-000002d5;2", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786064.1974"}, + {"ConnectedLineNum": "+31508009074", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;1", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786064.1973"}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "UniqueID": "ua0-acc-1513786064.1972", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "ID400721", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/+31853030903@osvpi_world_call_permittedplus-000002d4;2", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786064.1972"}, + {"Bridgestate": "Unlink", "Channel2": "SIP/voipgrid-siproute-dev-0000020a", "Privilege": "call,all", "CallerID2": "ID400721", "Uniqueid1": "ua0-acc-1513786051.1965", "Channel1": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "Uniqueid2": "ua0-acc-1513786051.1966", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31853030903", "content": ""}, + {"ConnectedLineNum": "+31853030903", "Event": "Hangup", "ConnectedLineName": "Calling...", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020a", "CallerIDNum": "ID400721", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1966"}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "UniqueID": "ua0-acc-1513786051.1965", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;2", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "Calling...", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1965"}, + {"Bridgestate": "Unlink", "Channel2": "SIP/voipgrid-siproute-dev-0000020b", "Privilege": "call,all", "CallerID2": "ID400721", "Uniqueid1": "ua0-acc-1513786051.1964", "Channel1": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "Uniqueid2": "ua0-acc-1513786064.1971", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"ConnectedLineNum": "+31508009074", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020b", "CallerIDNum": "ID400721", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786064.1971"}, + {"Bridgestate": "Unlink", "Channel2": "SIP/126680010-0000020d", "Privilege": "call,all", "CallerID2": "+31853030903", "Uniqueid1": "ua0-acc-1513786064.1976", "Channel1": "SIP/voipgrid-siproute-dev-0000020c", "Uniqueid2": "ua0-acc-1513786065.1977", "Bridgetype": "core", "Event": "Bridge", "CallerID1": "+31508009074", "content": ""}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "UniqueID": "ua0-acc-1513786051.1964", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "Local/ID400721@osvpi_proc_connectab_cmn-000002d1;1", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786051.1964"}, + {"ConnectedLineNum": "+31508009074", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/126680010-0000020d", "CallerIDNum": "+31853030903", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786065.1977"}, + {"Event": "Dial", "SubEvent": "End", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "UniqueID": "ua0-acc-1513786064.1976", "content": "", "DialStatus": "ANSWER"}, + {"ConnectedLineNum": "", "Event": "Hangup", "ConnectedLineName": "", "Cause-txt": "Normal Clearing", "AccountCode": "12668", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-0000020c", "CallerIDNum": "+31508009074", "content": "", "CallerIDName": "", "Cause": "16", "Uniqueid": "ua0-acc-1513786064.1976"} +] diff --git a/tests/fixtures/connectab/cmn-world-account-unaccepted.json b/tests/fixtures/connectab/cmn-world-account-unaccepted.json new file mode 100644 index 0000000..5b84206 --- /dev/null +++ b/tests/fixtures/connectab/cmn-world-account-unaccepted.json @@ -0,0 +1,65 @@ +[{"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","CallerIDName":"","Context":"osvpi_proc_connectab_cmn","CallerIDNum":"","Exten":"ID400761","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","CallerIDName":"","Context":"osvpi_proc_connectab_cmn","CallerIDNum":"","Exten":"ID400761","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","CallerIDName":"","CallerIDNum":"","CID-CallingPres":"67 (Number Unavailable)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","Uniqueid1":"ua1-staging-1512046384.905","Channel2":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid2":"ua1-staging-1512046384.906","Privilege":"call,all","Context":"osvpi_proc_connectab_cmn","LocalOptimization":"No","Exten":"ID400761","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"203","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"+31150010001","CID-CallingPres":"1 (Presentation Allowed, Passed Screen)","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","CallerIDNum":"","Exten":"+31613925xxx","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512046384.908","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","CallerIDNum":"","Exten":"+31613925xxx","content":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400761","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid1":"ua1-staging-1512046384.907","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","Uniqueid2":"ua1-staging-1512046384.908","Privilege":"call,all","Context":"osvpi_world_call_permittedplus","LocalOptimization":"Yes","Exten":"+31613925xxx","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","UniqueID":"ua1-staging-1512046384.906","Privilege":"call,all","ConnectedLineName":"","Destination":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","CallerIDName":"Calling...","Dialstring":"+31613925xxx@osvpi_world_call_permittedplus","content":"","CallerIDNum":"+31150010001","DestUniqueID":"ua1-staging-1512046384.907","ConnectedLineNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-0000010f;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","CallerIDName":"","Context":"world_out","CallerIDNum":"","Exten":"+31613925xxx","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-0000010f;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512046384.910","Privilege":"call,all","CallerIDName":"","Context":"world_out","CallerIDNum":"","Exten":"+31613925xxx","content":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid1":"ua1-staging-1512046384.909","Channel2":"Local/+31613925xxx@world_out-0000010f;2","Uniqueid2":"ua1-staging-1512046384.910","Privilege":"call,all","Context":"world_out","LocalOptimization":"Yes","Exten":"+31613925xxx","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","UniqueID":"ua1-staging-1512046384.908","Privilege":"call,all","ConnectedLineName":"","Destination":"Local/+31613925xxx@world_out-0000010f;1","CallerIDName":"Calling...","Dialstring":"+31613925xxx@world_out","content":"","CallerIDNum":"+31150010001","DestUniqueID":"ua1-staging-1512046384.909","ConnectedLineNum":"ID400761"}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-0000016f","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","CallerIDName":"","Context":"voipgrid_in","CallerIDNum":"","Exten":"","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@world_out-0000010f;2","UniqueID":"ua1-staging-1512046384.910","Privilege":"call,all","ConnectedLineName":"","Destination":"SIP/voipgrid-siproute-staging-0000016f","CallerIDName":"Calling...","Dialstring":"+31613925xxx@voipgrid-siproute-staging","content":"","CallerIDNum":"+31150010001","DestUniqueID":"ua1-staging-1512046384.911","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-0000016f","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-0000010f;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"ID400761","ConnectedLineNum":"+31150010001","content":""}, + {"Event":"Newstate","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"","CallerIDNum":"","ConnectedLineNum":"","content":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-0000016f","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-0000010f;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.910","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"Calling...","CallerIDNum":"+31150010001","ConnectedLineNum":"+31613925xxx","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-0000010f;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","content":""}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-0000010f;2","Uniqueid1":"ua1-staging-1512046384.910","CallerID1":"+31150010001","Channel2":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid2":"ua1-staging-1512046384.911","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","content":"","Bridgestate":"Link"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.908","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"Calling...","CallerIDNum":"+31150010001","ConnectedLineNum":"ID400761","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","Uniqueid1":"ua1-staging-1512046384.908","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid2":"ua1-staging-1512046384.909","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","content":"","Bridgestate":"Link"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"ID400761","ConnectedLineNum":"+31150010001","content":""}, + {"Event":"Newstate","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"Calling...","CallerIDNum":"+31150010001","ConnectedLineNum":"","content":""}, + {"Event":"Newstate","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"","CallerIDNum":"","ConnectedLineNum":"","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid1":"ua1-staging-1512046384.906","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid2":"ua1-staging-1512046384.907","CallerID2":"ID400761","Privilege":"call,all","Bridgetype":"core","content":"","Bridgestate":"Link"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Masquerade","Privilege":"call,all","OriginalState":"Up","CloneState":"Up","Clone":"SIP/voipgrid-siproute-staging-0000016f","content":"","Original":"Local/+31613925xxx@world_out-0000010f;1"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016f","content":""}, + {"Event":"Rename","Channel":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016f","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","Newname":"Local/+31613925xxx@world_out-0000010f;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-0000010f;2","Uniqueid1":"ua1-staging-1512046384.910","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid2":"ua1-staging-1512046384.911","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","content":"","Bridgestate":"Unlink"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-0000010f;1","Uniqueid":"ua1-staging-1512046384.911","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","ConnectedLineNum":"+31150010001","Cause":"16","content":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@world_out-0000010f;2","UniqueID":"ua1-staging-1512046384.910","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-0000010f;2","Uniqueid":"ua1-staging-1512046384.910","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"Calling...","ConnectedLineNum":"+31613925xxx","Cause":"16","content":"","CallerIDNum":"+31150010001","Cause-txt":"Normal Clearing"}, + {"Event":"Masquerade","Privilege":"call,all","OriginalState":"Up","CloneState":"Up","Clone":"SIP/voipgrid-siproute-staging-0000016f","content":"","Original":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016f","content":""}, + {"Event":"Rename","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016f","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","Newname":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400761","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","Uniqueid1":"ua1-staging-1512046384.908","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid2":"ua1-staging-1512046384.909","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","content":"","Bridgestate":"Unlink"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;1","Uniqueid":"ua1-staging-1512046384.909","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","ConnectedLineNum":"+31150010001","Cause":"16","content":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","UniqueID":"ua1-staging-1512046384.908","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-0000010e;2","Uniqueid":"ua1-staging-1512046384.908","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"Calling...","ConnectedLineNum":"ID400761","Cause":"16","content":"","CallerIDNum":"+31150010001","Cause-txt":"Normal Clearing"}, + {"Event":"Bridge","Channel1":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid1":"ua1-staging-1512046384.906","CallerID1":"+31150010001","Channel2":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid2":"ua1-staging-1512046384.907","CallerID2":"ID400761","Privilege":"call,all","Bridgetype":"core","content":"","Bridgestate":"Unlink"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-0000016f","Uniqueid":"ua1-staging-1512046384.907","Privilege":"call,all","ConnectedLineName":"Calling...","CallerIDName":"","ConnectedLineNum":"+31150010001","Cause":"16","content":"","CallerIDNum":"ID400761","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","UniqueID":"ua1-staging-1512046384.906","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;2","Uniqueid":"ua1-staging-1512046384.906","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"Calling...","ConnectedLineNum":"","Cause":"16","content":"","CallerIDNum":"+31150010001","Cause-txt":"Normal Clearing"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400761@osvpi_proc_connectab_cmn-0000010d;1","Uniqueid":"ua1-staging-1512046384.905","Privilege":"call,all","ConnectedLineName":"","CallerIDName":"","ConnectedLineNum":"","Cause":"16","content":"","CallerIDNum":"","Cause-txt":"Normal Clearing"}] diff --git a/tests/fixtures/connectab/cmn-world-account.json b/tests/fixtures/connectab/cmn-world-account.json new file mode 100644 index 0000000..caaf5bb --- /dev/null +++ b/tests/fixtures/connectab/cmn-world-account.json @@ -0,0 +1,115 @@ +[{"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","CallerIDName":"","Context":"osvpi_proc_connectab_cmn","content":"","CallerIDNum":"","Exten":"ID400741"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","CallerIDName":"","Context":"osvpi_proc_connectab_cmn","content":"","CallerIDNum":"","Exten":"ID400741"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","content":"","CallerIDNum":"","CallerIDName":"","CID-CallingPres":"67 (Number Unavailable)"}, + {"Event":"LocalBridge","Channel1":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid1":"ua1-staging-1512038737.881","Channel2":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid2":"ua1-staging-1512038737.882","Privilege":"call,all","Context":"osvpi_proc_connectab_cmn","LocalOptimization":"No","content":"","Exten":"ID400741"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"NewCallerid","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","content":"","CallerIDNum":"","CallerIDName":"Calling...","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"NewCallerid","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","content":"","CallerIDNum":"203","CallerIDName":"Calling...","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"NewCallerid","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","content":"","CallerIDNum":"+31150010001","CallerIDName":"Calling...","CID-CallingPres":"1 (Presentation Allowed, Passed Screen)"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","content":"","CallerIDNum":"","Exten":"+31613925xxx"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512038737.884","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","content":"","CallerIDNum":"","Exten":"+31613925xxx"}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","content":"","CallerIDNum":"ID400741","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid1":"ua1-staging-1512038737.883","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","Uniqueid2":"ua1-staging-1512038737.884","Privilege":"call,all","Context":"osvpi_world_call_permittedplus","LocalOptimization":"Yes","content":"","Exten":"+31613925xxx"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","UniqueID":"ua1-staging-1512038737.882","Privilege":"call,all","CallerIDName":"Calling...","DestUniqueID":"ua1-staging-1512038737.883","Destination":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Dialstring":"+31613925xxx@osvpi_world_call_permittedplus","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"","ConnectedLineName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-00000105;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","CallerIDName":"","Context":"world_out","content":"","CallerIDNum":"","Exten":"+31613925xxx"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-00000105;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512038737.886","Privilege":"call,all","CallerIDName":"","Context":"world_out","content":"","CallerIDNum":"","Exten":"+31613925xxx"}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@world_out-00000105;1","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","content":"","CallerIDNum":"+31613925xxx","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@world_out-00000105;1","Uniqueid1":"ua1-staging-1512038737.885","Channel2":"Local/+31613925xxx@world_out-00000105;2","Uniqueid2":"ua1-staging-1512038737.886","Privilege":"call,all","Context":"world_out","LocalOptimization":"Yes","content":"","Exten":"+31613925xxx"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","UniqueID":"ua1-staging-1512038737.884","Privilege":"call,all","CallerIDName":"Calling...","DestUniqueID":"ua1-staging-1512038737.885","Destination":"Local/+31613925xxx@world_out-00000105;1","Dialstring":"+31613925xxx@world_out","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"ID400741","ConnectedLineName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-0000016b","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","CallerIDName":"","Context":"voipgrid_in","content":"","CallerIDNum":"","Exten":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","content":"","CallerIDNum":"+31613925xxx","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@world_out-00000105;2","UniqueID":"ua1-staging-1512038737.886","Privilege":"call,all","CallerIDName":"Calling...","DestUniqueID":"ua1-staging-1512038737.887","Destination":"SIP/voipgrid-siproute-staging-0000016b","Dialstring":"+31613925xxx@voipgrid-siproute-staging","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"+31613925xxx","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-0000016b","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","content":"","ConnectedLineNum":"+31150010001","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-00000105;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","content":"","ConnectedLineNum":"+31150010001","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","content":"","ConnectedLineNum":"+31150010001","CallerIDNum":"ID400741","CallerIDName":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","content":"","ConnectedLineNum":"","CallerIDNum":"","CallerIDName":"","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-0000016b","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","content":"","ConnectedLineNum":"+31150010001","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-00000105;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.886","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"+31150010001","CallerIDName":"Calling...","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-00000105;2","Uniqueid1":"ua1-staging-1512038737.886","CallerID1":"+31150010001","Channel2":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid2":"ua1-staging-1512038737.887","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-00000105;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","content":"","ConnectedLineNum":"+31150010001","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.884","Privilege":"call,all","content":"","ConnectedLineNum":"ID400741","CallerIDNum":"+31150010001","CallerIDName":"Calling...","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-00000105;1","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","Uniqueid1":"ua1-staging-1512038737.884","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@world_out-00000105;1","Uniqueid2":"ua1-staging-1512038737.885","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","content":"","ConnectedLineNum":"+31150010001","CallerIDNum":"ID400741","CallerIDName":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","content":"","ConnectedLineNum":"","CallerIDNum":"+31150010001","CallerIDName":"Calling...","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid1":"ua1-staging-1512038737.882","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid2":"ua1-staging-1512038737.883","CallerID2":"ID400741","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","content":"","ConnectedLineNum":"","CallerIDNum":"","CallerIDName":"","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31613925xxx@world_out-00000105;1","OriginalState":"Up","CloneState":"Up","Clone":"SIP/voipgrid-siproute-staging-0000016b","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016b","content":""}, + {"Event":"Rename","Channel":"Local/+31613925xxx@world_out-00000105;1","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016b","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","Newname":"Local/+31613925xxx@world_out-00000105;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","content":"","CallerIDNum":"+31613925xxx","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-00000105;2","Uniqueid1":"ua1-staging-1512038737.886","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@world_out-00000105;1","Uniqueid2":"ua1-staging-1512038737.887","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-00000105;1","Uniqueid":"ua1-staging-1512038737.887","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","ConnectedLineName":"Calling..."}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","OriginalState":"Up","CloneState":"Up","Clone":"SIP/voipgrid-siproute-staging-0000016b","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016b","content":""}, + {"Event":"Rename","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-0000016b","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","Newname":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","content":"","CallerIDNum":"ID400741","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","Uniqueid1":"ua1-staging-1512038737.884","CallerID1":"+31150010001","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid2":"ua1-staging-1512038737.885","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@world_out-00000105;2","UniqueID":"ua1-staging-1512038737.886","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-00000105;2","Uniqueid":"ua1-staging-1512038737.886","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"Calling...","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"+31613925xxx","ConnectedLineName":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;1","Uniqueid":"ua1-staging-1512038737.885","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","ConnectedLineName":"Calling..."}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","UniqueID":"ua1-staging-1512038737.884","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000104;2","Uniqueid":"ua1-staging-1512038737.884","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"Calling...","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"ID400741","ConnectedLineName":""}, + {"Event":"NewCallerid","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","content":"","CallerIDNum":"+31613925xxx","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","CallerIDName":"","Context":"osvpi_account_call_int_permitted","content":"","CallerIDNum":"","Exten":"203"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512038754.889","Privilege":"call,all","CallerIDName":"","Context":"osvpi_account_call_int_permitted","content":"","CallerIDNum":"","Exten":"203"}, + {"Event":"NewCallerid","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","content":"","CallerIDNum":"ID400741","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid1":"ua1-staging-1512038754.888","Channel2":"Local/203@osvpi_account_call_int_permitted-00000106;2","Uniqueid2":"ua1-staging-1512038754.889","Privilege":"call,all","Context":"osvpi_account_call_int_permitted","LocalOptimization":"Yes","content":"","Exten":"203"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","UniqueID":"ua1-staging-1512038737.881","Privilege":"call,all","CallerIDName":"","DestUniqueID":"ua1-staging-1512038754.888","Destination":"Local/203@osvpi_account_call_int_permitted-00000106;1","Dialstring":"203@osvpi_account_call_int_permitted","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"","ConnectedLineName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","CallerIDName":"","Context":"osvpi_route_phoneaccount","content":"","CallerIDNum":"","Exten":"ID730671"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512038754.891","Privilege":"call,all","CallerIDName":"","Context":"osvpi_route_phoneaccount","content":"","CallerIDNum":"","Exten":"ID730671"}, + {"Event":"NewCallerid","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","content":"","CallerIDNum":"203","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid1":"ua1-staging-1512038754.890","Channel2":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","Uniqueid2":"ua1-staging-1512038754.891","Privilege":"call,all","Context":"osvpi_route_phoneaccount","LocalOptimization":"Yes","content":"","Exten":"ID730671"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;2","UniqueID":"ua1-staging-1512038754.889","Privilege":"call,all","CallerIDName":"","DestUniqueID":"ua1-staging-1512038754.890","Destination":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Dialstring":"ID730671@osvpi_route_phoneaccount","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"ID400741","ConnectedLineName":""}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010003","Uniqueid":"ua1-staging-1512038754.891","Privilege":"user,all","AccountInternalNumber":"203","WebhookUrls":"","Provider":"webhook","content":""}, + {"Event":"Newchannel","AccountCode":"150010003","Channel":"SIP/150010003-0000016c","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","CallerIDName":"","Context":"osvpi_account","content":"","CallerIDNum":"","Exten":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","content":"","CallerIDNum":"203","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","UniqueID":"ua1-staging-1512038754.891","Privilege":"call,all","CallerIDName":"","DestUniqueID":"ua1-staging-1512038754.892","Destination":"SIP/150010003-0000016c","Dialstring":"150010003/150010003/195.35.114.93!!0613925245","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"203","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"SIP/150010003-0000016c","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"203","CallerIDName":"","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"203","CallerIDName":"","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"ID400741","CallerIDName":"","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"SIP/150010003-0000016c","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"203","CallerIDName":"","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038754.891","Privilege":"call,all","content":"","ConnectedLineNum":"203","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"203","CallerIDName":"","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038754.889","Privilege":"call,all","content":"","ConnectedLineNum":"ID400741","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-00000106;2","Uniqueid1":"ua1-staging-1512038754.889","CallerID1":"+31613925xxx","Channel2":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid2":"ua1-staging-1512038754.890","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","Uniqueid1":"ua1-staging-1512038754.891","CallerID1":"+31613925xxx","Channel2":"SIP/150010003-0000016c","Uniqueid2":"ua1-staging-1512038754.892","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"ID400741","CallerIDName":"","ConnectedLineName":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid1":"ua1-staging-1512038737.881","CallerID1":"+31613925xxx","Channel2":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid2":"ua1-staging-1512038754.888","CallerID2":"ID400741","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","OriginalState":"Up","CloneState":"Up","Clone":"SIP/150010003-0000016c","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","Newname":"SIP/150010003-0000016c","content":""}, + {"Event":"Rename","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","Newname":"SIP/150010003-0000016c","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","Newname":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","content":"","CallerIDNum":"203","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","Uniqueid1":"ua1-staging-1512038754.891","CallerID1":"+31613925xxx","Channel2":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid2":"ua1-staging-1512038754.892","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;1","Uniqueid":"ua1-staging-1512038754.892","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"203","ConnectedLineNum":"+31613925xxx","ConnectedLineName":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/203@osvpi_account_call_int_permitted-00000106;1","OriginalState":"Up","CloneState":"Up","Clone":"SIP/150010003-0000016c","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","Newname":"SIP/150010003-0000016c","content":""}, + {"Event":"Rename","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","Newname":"SIP/150010003-0000016c","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","Newname":"Local/203@osvpi_account_call_int_permitted-00000106;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","content":"","CallerIDNum":"ID400741","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-00000106;2","Uniqueid1":"ua1-staging-1512038754.889","CallerID1":"+31613925xxx","Channel2":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid2":"ua1-staging-1512038754.890","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","UniqueID":"ua1-staging-1512038754.891","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000107;2","Uniqueid":"ua1-staging-1512038754.891","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"203","ConnectedLineName":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;1","Uniqueid":"ua1-staging-1512038754.890","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"203","ConnectedLineNum":"+31613925xxx","ConnectedLineName":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;2","UniqueID":"ua1-staging-1512038754.889","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-00000106;2","Uniqueid":"ua1-staging-1512038754.889","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"ID400741","ConnectedLineName":""}, + {"Event":"Bridge","Channel1":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid1":"ua1-staging-1512038737.882","CallerID1":"+31150010001","Channel2":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid2":"ua1-staging-1512038737.883","CallerID2":"ID400741","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-0000016b","Uniqueid":"ua1-staging-1512038737.883","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"ID400741","ConnectedLineNum":"+31150010001","ConnectedLineName":"Calling..."}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","UniqueID":"ua1-staging-1512038737.882","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;2","Uniqueid":"ua1-staging-1512038737.882","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"Calling...","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"","ConnectedLineName":""}, + {"Event":"Bridge","Channel1":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid1":"ua1-staging-1512038737.881","CallerID1":"+31613925xxx","Channel2":"SIP/150010003-0000016c","Uniqueid2":"ua1-staging-1512038754.888","CallerID2":"ID400741","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010003-0000016c","Uniqueid":"ua1-staging-1512038754.888","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"ID400741","ConnectedLineNum":"+31613925xxx","ConnectedLineName":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","UniqueID":"ua1-staging-1512038737.881","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400741@osvpi_proc_connectab_cmn-00000103;1","Uniqueid":"ua1-staging-1512038737.881","Privilege":"call,all","Cause-txt":"Normal Clearing","Cause":"16","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"","ConnectedLineName":""}] diff --git a/tests/fixtures/connectab/cmn-world-world.json b/tests/fixtures/connectab/cmn-world-world.json new file mode 100644 index 0000000..39344a5 --- /dev/null +++ b/tests/fixtures/connectab/cmn-world-world.json @@ -0,0 +1,148 @@ +[{"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","CallerIDName":"","Context":"osvpi_proc_connectab_cmn","Exten":"ID400731","CallerIDNum":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036255.866","Privilege":"call,all","CallerIDName":"","Context":"osvpi_proc_connectab_cmn","Exten":"ID400731","CallerIDNum":"","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","CallerIDName":"","CallerIDNum":"","CID-CallingPres":"67 (Number Unavailable)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid1":"ua1-staging-1512036255.865","Channel2":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid2":"ua1-staging-1512036255.866","Privilege":"call,all","Exten":"ID400731","Context":"osvpi_proc_connectab_cmn","LocalOptimization":"No","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid":"ua1-staging-1512036255.866","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"NewCallerid","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid":"ua1-staging-1512036255.866","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid":"ua1-staging-1512036255.866","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx","CallerIDNum":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036255.868","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400731","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid1":"ua1-staging-1512036255.867","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","Uniqueid2":"ua1-staging-1512036255.868","Privilege":"call,all","Exten":"+31613925xxx","Context":"osvpi_world_call_permittedplus","LocalOptimization":"Yes","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","UniqueID":"ua1-staging-1512036255.866","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036255.867","CallerIDName":"Calling...","Dialstring":"+31613925xxx@osvpi_world_call_permittedplus","ConnectedLineNum":"","ConnectedLineName":"","CallerIDNum":"+31150010003","Destination":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-000000ff;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","CallerIDName":"","Context":"world_out","Exten":"+31613925xxx","CallerIDNum":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-000000ff;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036255.870","Privilege":"call,all","CallerIDName":"","Context":"world_out","Exten":"+31613925xxx","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid1":"ua1-staging-1512036255.869","Channel2":"Local/+31613925xxx@world_out-000000ff;2","Uniqueid2":"ua1-staging-1512036255.870","Privilege":"call,all","Exten":"+31613925xxx","Context":"world_out","LocalOptimization":"Yes","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","UniqueID":"ua1-staging-1512036255.868","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036255.869","CallerIDName":"Calling...","Dialstring":"+31613925xxx@world_out","ConnectedLineNum":"ID400731","ConnectedLineName":"","CallerIDNum":"+31150010003","Destination":"Local/+31613925xxx@world_out-000000ff;1","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-00000167","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","CallerIDName":"","Context":"voipgrid_in","Exten":"","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@world_out-000000ff;2","UniqueID":"ua1-staging-1512036255.870","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036255.871","CallerIDName":"Calling...","Dialstring":"+31613925xxx@voipgrid-siproute-staging","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"+31150010003","Destination":"SIP/voipgrid-siproute-staging-00000167","content":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000167","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","content":"","ConnectedLineName":"Calling...","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-000000ff;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","content":"","ConnectedLineName":"Calling...","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","content":"","ConnectedLineName":"Calling...","CallerIDNum":"ID400731","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"Newstate","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"","CallerIDName":"","ConnectedLineNum":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000167","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","content":"","ConnectedLineName":"Calling...","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-000000ff;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.870","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"Calling...","ConnectedLineNum":"+31613925xxx"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-000000ff;2","Uniqueid1":"ua1-staging-1512036255.870","CallerID1":"+31150010003","Channel2":"SIP/voipgrid-siproute-staging-00000167","Uniqueid2":"ua1-staging-1512036255.871","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-000000ff;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","content":"","ConnectedLineName":"Calling...","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.868","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"Calling...","ConnectedLineNum":"ID400731"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","Uniqueid1":"ua1-staging-1512036255.868","CallerID1":"+31150010003","Channel2":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid2":"ua1-staging-1512036255.869","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","content":"","ConnectedLineName":"Calling...","CallerIDNum":"ID400731","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"Newstate","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.866","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"Calling...","ConnectedLineNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid1":"ua1-staging-1512036255.866","CallerID1":"+31150010003","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid2":"ua1-staging-1512036255.867","CallerID2":"ID400731","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"","CallerIDName":"","ConnectedLineNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31613925xxx@world_out-000000ff;1","Clone":"SIP/voipgrid-siproute-staging-00000167","OriginalState":"Up","content":"","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000167","content":""}, + {"Event":"Rename","Channel":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000167","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","Newname":"Local/+31613925xxx@world_out-000000ff;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-000000ff;2","Uniqueid1":"ua1-staging-1512036255.870","CallerID1":"+31150010003","Channel2":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid2":"ua1-staging-1512036255.871","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000ff;1","Uniqueid":"ua1-staging-1512036255.871","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31150010003","ConnectedLineName":"Calling...","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Clone":"SIP/voipgrid-siproute-staging-00000167","OriginalState":"Up","content":"","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000167","content":""}, + {"Event":"Rename","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000167","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","Newname":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400731","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","Uniqueid1":"ua1-staging-1512036255.868","CallerID1":"+31150010003","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid2":"ua1-staging-1512036255.869","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@world_out-000000ff;2","UniqueID":"ua1-staging-1512036255.870","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000ff;2","Uniqueid":"ua1-staging-1512036255.870","Privilege":"call,all","Cause":"16","CallerIDName":"Calling...","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;1","Uniqueid":"ua1-staging-1512036255.869","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31150010003","ConnectedLineName":"Calling...","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","UniqueID":"ua1-staging-1512036255.868","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000fe;2","Uniqueid":"ua1-staging-1512036255.868","Privilege":"call,all","Cause":"16","CallerIDName":"Calling...","ConnectedLineNum":"ID400731","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31613925xxx","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","Exten":"+31150010003","CallerIDNum":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036277.873","Privilege":"call,all","CallerIDName":"","Context":"osvpi_world_call_permittedplus","Exten":"+31150010003","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400731","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid1":"ua1-staging-1512036277.872","Channel2":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","Uniqueid2":"ua1-staging-1512036277.873","Privilege":"call,all","Exten":"+31150010003","Context":"osvpi_world_call_permittedplus","LocalOptimization":"Yes","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","UniqueID":"ua1-staging-1512036255.865","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036277.872","CallerIDName":"","Dialstring":"+31150010003@osvpi_world_call_permittedplus","ConnectedLineNum":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Destination":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31150010003@world_out-00000101;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","CallerIDName":"","Context":"world_out","Exten":"+31150010003","CallerIDNum":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31150010003@world_out-00000101;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036277.875","Privilege":"call,all","CallerIDName":"","Context":"world_out","Exten":"+31150010003","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/+31150010003@world_out-00000101;1","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/+31150010003@world_out-00000101;1","Uniqueid1":"ua1-staging-1512036277.874","Channel2":"Local/+31150010003@world_out-00000101;2","Uniqueid2":"ua1-staging-1512036277.875","Privilege":"call,all","Exten":"+31150010003","Context":"world_out","LocalOptimization":"Yes","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","UniqueID":"ua1-staging-1512036277.873","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036277.874","CallerIDName":"","Dialstring":"+31150010003@world_out","ConnectedLineNum":"ID400731","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Destination":"Local/+31150010003@world_out-00000101;1","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-00000168","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","CallerIDName":"","Context":"voipgrid_in","Exten":"","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31150010003@world_out-00000101;2","UniqueID":"ua1-staging-1512036277.875","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036277.876","CallerIDName":"","Dialstring":"+31150010003@voipgrid-siproute-staging","ConnectedLineNum":"+31150010003","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Destination":"SIP/voipgrid-siproute-staging-00000168","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-00000169","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036277.877","Privilege":"call,all","CallerIDName":"","Context":"voipgrid_in","Exten":"+31150010003","CallerIDNum":"+31613925xxx","content":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000169","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036277.877","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000169","Uniqueid":"ua1-staging-1512036277.877","Privilege":"call,all","content":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000168","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31150010003@world_out-00000101;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"ID400731","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","CallerIDName":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","CallerIDNum":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512036278.879","Privilege":"call,all","CallerIDName":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"LocalBridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid1":"ua1-staging-1512036278.878","Channel2":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","Uniqueid2":"ua1-staging-1512036278.879","Privilege":"call,all","Exten":"ID730671","Context":"osvpi_route_phoneaccount","LocalOptimization":"Yes","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"SIP/voipgrid-siproute-staging-00000169","UniqueID":"ua1-staging-1512036277.877","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036278.878","CallerIDName":"","Dialstring":"ID730671@osvpi_route_phoneaccount","ConnectedLineNum":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Destination":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","content":""}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010003","Uniqueid":"ua1-staging-1512036278.879","Privilege":"user,all","AccountInternalNumber":"203","Provider":"webhook","content":"","WebhookUrls":""}, + {"Event":"Newchannel","AccountCode":"150010003","Channel":"SIP/150010003-0000016a","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","CallerIDName":"","Context":"osvpi_account","Exten":"","CallerIDNum":"","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-0000016a","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","UniqueID":"ua1-staging-1512036278.879","Privilege":"call,all","DestUniqueID":"ua1-staging-1512036278.880","CallerIDName":"","Dialstring":"150010003/150010003/195.35.114.93!!0613925245","ConnectedLineNum":"+31150010003","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Destination":"SIP/150010003-0000016a","content":""}, + {"Event":"Newstate","Channel":"SIP/150010003-0000016a","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"SIP/150010003-0000016a","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036278.879","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/150010003-0000016a","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","Uniqueid1":"ua1-staging-1512036278.879","CallerID1":"+31613925xxx","Channel2":"SIP/150010003-0000016a","Uniqueid2":"ua1-staging-1512036278.880","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000169","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036277.877","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"SIP/voipgrid-siproute-staging-00000169","Uniqueid1":"ua1-staging-1512036277.877","CallerID1":"+31613925xxx","Channel2":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid2":"ua1-staging-1512036278.878","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000168","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31150010003@world_out-00000101;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036277.875","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"+31150010003"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/+31150010003@world_out-00000101;2","Uniqueid1":"ua1-staging-1512036277.875","CallerID1":"+31613925xxx","Channel2":"SIP/voipgrid-siproute-staging-00000168","Uniqueid2":"ua1-staging-1512036277.876","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/+31150010003@world_out-00000101;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31150010003","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036277.873","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","CallerIDName":"","ConnectedLineNum":"ID400731"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31150010003@world_out-00000101;1","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","Uniqueid1":"ua1-staging-1512036277.873","CallerID1":"+31613925xxx","Channel2":"Local/+31150010003@world_out-00000101;1","Uniqueid2":"ua1-staging-1512036277.874","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","content":"","ConnectedLineName":"","CallerIDNum":"ID400731","CallerIDName":"","ConnectedLineNum":"+31613925xxx"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid1":"ua1-staging-1512036255.865","CallerID1":"+31613925xxx","Channel2":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid2":"ua1-staging-1512036277.872","CallerID2":"ID400731","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Clone":"SIP/150010003-0000016a","OriginalState":"Up","content":"","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/150010003-0000016a","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","Newname":"SIP/150010003-0000016a","content":""}, + {"Event":"Rename","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","Newname":"SIP/150010003-0000016a","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-0000016a","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","Newname":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-0000016a","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","Uniqueid1":"ua1-staging-1512036278.879","CallerID1":"+31613925xxx","Channel2":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid2":"ua1-staging-1512036278.880","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;1","Uniqueid":"ua1-staging-1512036278.880","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","UniqueID":"ua1-staging-1512036278.879","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-00000102;2","Uniqueid":"ua1-staging-1512036278.879","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31150010003","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31150010003@world_out-00000101;1","Clone":"SIP/voipgrid-siproute-staging-00000168","OriginalState":"Up","content":"","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000168","content":""}, + {"Event":"Rename","Channel":"Local/+31150010003@world_out-00000101;1","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000168","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","Newname":"Local/+31150010003@world_out-00000101;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","CallerIDName":"","CallerIDNum":"+31150010003","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/+31150010003@world_out-00000101;2","Uniqueid1":"ua1-staging-1512036277.875","CallerID1":"+31613925xxx","Channel2":"Local/+31150010003@world_out-00000101;1","Uniqueid2":"ua1-staging-1512036277.876","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31150010003@world_out-00000101;1","Uniqueid":"ua1-staging-1512036277.876","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Clone":"SIP/voipgrid-siproute-staging-00000168","OriginalState":"Up","content":"","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000168","content":""}, + {"Event":"Rename","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","Newname":"SIP/voipgrid-siproute-staging-00000168","content":""}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","Newname":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400731","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":""}, + {"Event":"Bridge","Channel1":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","Uniqueid1":"ua1-staging-1512036277.873","CallerID1":"+31613925xxx","Channel2":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid2":"ua1-staging-1512036277.874","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31150010003@world_out-00000101;2","UniqueID":"ua1-staging-1512036277.875","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31150010003@world_out-00000101;2","Uniqueid":"ua1-staging-1512036277.875","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31150010003","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;1","Uniqueid":"ua1-staging-1512036277.874","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","UniqueID":"ua1-staging-1512036277.873","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31150010003@osvpi_world_call_permittedplus-00000100;2","Uniqueid":"ua1-staging-1512036277.873","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"ID400731","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Bridge","Channel1":"SIP/voipgrid-siproute-staging-00000169","Uniqueid1":"ua1-staging-1512036277.877","CallerID1":"+31613925xxx","Channel2":"SIP/150010003-0000016a","Uniqueid2":"ua1-staging-1512036278.878","CallerID2":"+31150010003","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010003-0000016a","Uniqueid":"ua1-staging-1512036278.878","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"SIP/voipgrid-siproute-staging-00000169","UniqueID":"ua1-staging-1512036277.877","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000169","Uniqueid":"ua1-staging-1512036277.877","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid1":"ua1-staging-1512036255.865","CallerID1":"+31613925xxx","Channel2":"SIP/voipgrid-siproute-staging-00000168","Uniqueid2":"ua1-staging-1512036277.872","CallerID2":"ID400731","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000168","Uniqueid":"ua1-staging-1512036277.872","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","CallerIDNum":"ID400731","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","UniqueID":"ua1-staging-1512036255.865","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;1","Uniqueid":"ua1-staging-1512036255.865","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"","ConnectedLineName":"","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid1":"ua1-staging-1512036255.866","CallerID1":"+31150010003","Channel2":"SIP/voipgrid-siproute-staging-00000167","Uniqueid2":"ua1-staging-1512036255.867","CallerID2":"ID400731","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000167","Uniqueid":"ua1-staging-1512036255.867","Privilege":"call,all","Cause":"16","CallerIDName":"","ConnectedLineNum":"+31150010003","ConnectedLineName":"Calling...","CallerIDNum":"ID400731","Cause-txt":"Normal Clearing","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","UniqueID":"ua1-staging-1512036255.866","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400731@osvpi_proc_connectab_cmn-000000fd;2","Uniqueid":"ua1-staging-1512036255.866","Privilege":"call,all","Cause":"16","CallerIDName":"Calling...","ConnectedLineNum":"","ConnectedLineName":"","CallerIDNum":"+31150010003","Cause-txt":"Normal Clearing","content":""}] diff --git a/tests/fixtures/connectab/ctd-account-account.json b/tests/fixtures/connectab/ctd-account-account.json new file mode 100644 index 0000000..eeb4a9c --- /dev/null +++ b/tests/fixtures/connectab/ctd-account-account.json @@ -0,0 +1,115 @@ +[{"Event":"FullyBooted","Privilege":"system,all","Status":"Fully Booted","content":""}, + {"Event":"FullyBooted","Privilege":"system,all","Status":"Fully Booted","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400641","CallerIDName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1511945444.284","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400641","CallerIDName":"","content":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","CallerIDName":"","CallerIDNum":"","content":"","CID-CallingPres":"67 (Number Unavailable)"}, + {"Event":"LocalBridge","Channel1":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid1":"ua1-staging-1511945444.283","Channel2":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid2":"ua1-staging-1511945444.284","Privilege":"call,all","LocalOptimization":"No","Context":"osvpi_proc_connectab_ctd","content":"","Exten":"ID400641"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid":"ua1-staging-1511945444.284","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid":"ua1-staging-1511945444.284","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"NewCallerid","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid":"ua1-staging-1511945444.284","Privilege":"call,all","CallerIDName":"Calling...","CallerIDNum":"203","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_account_call_int_permitted","Exten":"203","CallerIDName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1511945444.286","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_account_call_int_permitted","Exten":"203","CallerIDName":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400641","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid1":"ua1-staging-1511945444.285","Channel2":"Local/203@osvpi_account_call_int_permitted-0000005a;2","Uniqueid2":"ua1-staging-1511945444.286","Privilege":"call,all","LocalOptimization":"Yes","Context":"osvpi_account_call_int_permitted","content":"","Exten":"203"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","UniqueID":"ua1-staging-1511945444.284","Privilege":"call,all","Dialstring":"203@osvpi_account_call_int_permitted","CallerIDNum":"203","DestUniqueID":"ua1-staging-1511945444.285","Destination":"Local/203@osvpi_account_call_int_permitted-0000005a;1","ConnectedLineNum":"","CallerIDName":"Calling...","ConnectedLineName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","CallerIDName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1511945444.288","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","CallerIDName":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","CallerIDName":"","CallerIDNum":"203","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid1":"ua1-staging-1511945444.287","Channel2":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","Uniqueid2":"ua1-staging-1511945444.288","Privilege":"call,all","LocalOptimization":"Yes","Context":"osvpi_route_phoneaccount","content":"","Exten":"ID730671"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;2","UniqueID":"ua1-staging-1511945444.286","Privilege":"call,all","Dialstring":"ID730671@osvpi_route_phoneaccount","CallerIDNum":"203","DestUniqueID":"ua1-staging-1511945444.287","Destination":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","ConnectedLineNum":"ID400641","CallerIDName":"Calling...","ConnectedLineName":"","content":""}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010003","Uniqueid":"ua1-staging-1511945444.288","Privilege":"user,all","content":"","AccountInternalNumber":"203","WebhookUrls":"","Provider":"webhook"}, + {"Event":"Newchannel","AccountCode":"150010003","Channel":"SIP/150010003-00000069","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_account","Exten":"","CallerIDName":"","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","CallerIDName":"","CallerIDNum":"203","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","UniqueID":"ua1-staging-1511945444.288","Privilege":"call,all","Dialstring":"150010003/150010003/195.35.114.93!!203","CallerIDNum":"203","DestUniqueID":"ua1-staging-1511945444.289","Destination":"SIP/150010003-00000069","ConnectedLineNum":"203","CallerIDName":"Calling...","ConnectedLineName":"","content":""}, + {"Event":"Newstate","Channel":"SIP/150010003-00000069","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"ID400641"}, + {"Event":"Newstate","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","ConnectedLineNum":"","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":""}, + {"Event":"Newstate","Channel":"SIP/150010003-00000069","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.288","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","Uniqueid1":"ua1-staging-1511945444.288","CallerID1":"203","Channel2":"SIP/150010003-00000069","Uniqueid2":"ua1-staging-1511945444.289","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.286","Privilege":"call,all","ConnectedLineNum":"ID400641","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-0000005a;2","Uniqueid1":"ua1-staging-1511945444.286","CallerID1":"203","Channel2":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid2":"ua1-staging-1511945444.287","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"ID400641"}, + {"Event":"Newstate","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.284","Privilege":"call,all","ConnectedLineNum":"","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid1":"ua1-staging-1511945444.284","CallerID1":"203","Channel2":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid2":"ua1-staging-1511945444.285","CallerID2":"ID400641","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","ConnectedLineNum":"","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","CloneState":"Up","Clone":"SIP/150010003-00000069","OriginalState":"Up","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000069"}, + {"Event":"Rename","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000069"}, + {"Event":"Rename","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","content":"","Newname":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1"}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","CallerIDName":"","CallerIDNum":"203","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","Uniqueid1":"ua1-staging-1511945444.288","CallerID1":"203","Channel2":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid2":"ua1-staging-1511945444.289","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;1","Uniqueid":"ua1-staging-1511945444.289","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"Calling...","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","UniqueID":"ua1-staging-1511945444.288","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-0000005b;2","Uniqueid":"ua1-staging-1511945444.288","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"Calling...","ConnectedLineName":"","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/203@osvpi_account_call_int_permitted-0000005a;1","CloneState":"Up","Clone":"SIP/150010003-00000069","OriginalState":"Up","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000069"}, + {"Event":"Rename","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000069"}, + {"Event":"Rename","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","content":"","Newname":"Local/203@osvpi_account_call_int_permitted-0000005a;1"}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400641","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-0000005a;2","Uniqueid1":"ua1-staging-1511945444.286","CallerID1":"203","Channel2":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid2":"ua1-staging-1511945444.287","CallerID2":"203","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;1","Uniqueid":"ua1-staging-1511945444.287","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"Calling...","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;2","UniqueID":"ua1-staging-1511945444.286","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-0000005a;2","Uniqueid":"ua1-staging-1511945444.286","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"ID400641","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"Calling...","ConnectedLineName":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","CallerIDName":"","CallerIDNum":"203","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_account_call_int_permitted","Exten":"202","CallerIDName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1511945445.291","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_account_call_int_permitted","Exten":"202","CallerIDName":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400641","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid1":"ua1-staging-1511945445.290","Channel2":"Local/202@osvpi_account_call_int_permitted-0000005c;2","Uniqueid2":"ua1-staging-1511945445.291","Privilege":"call,all","LocalOptimization":"Yes","Context":"osvpi_account_call_int_permitted","content":"","Exten":"202"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","UniqueID":"ua1-staging-1511945444.283","Privilege":"call,all","Dialstring":"202@osvpi_account_call_int_permitted","CallerIDNum":"203","DestUniqueID":"ua1-staging-1511945445.290","Destination":"Local/202@osvpi_account_call_int_permitted-0000005c;1","ConnectedLineNum":"","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_route_phoneaccount","Exten":"ID730661","CallerIDName":"","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1511945445.293","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_route_phoneaccount","Exten":"ID730661","CallerIDName":"","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","CallerIDName":"","CallerIDNum":"202","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"LocalBridge","Channel1":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid1":"ua1-staging-1511945445.292","Channel2":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","Uniqueid2":"ua1-staging-1511945445.293","Privilege":"call,all","LocalOptimization":"Yes","Context":"osvpi_route_phoneaccount","content":"","Exten":"ID730661"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;2","UniqueID":"ua1-staging-1511945445.291","Privilege":"call,all","Dialstring":"ID730661@osvpi_route_phoneaccount","CallerIDNum":"203","DestUniqueID":"ua1-staging-1511945445.292","Destination":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","ConnectedLineNum":"ID400641","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010002","Uniqueid":"ua1-staging-1511945445.293","Privilege":"user,all","content":"","AccountInternalNumber":"202","WebhookUrls":"","Provider":"webhook"}, + {"Event":"Newchannel","AccountCode":"150010002","Channel":"SIP/150010002-0000006a","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","CallerIDNum":"","Context":"osvpi_account","Exten":"","CallerIDName":"","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","CallerIDName":"","CallerIDNum":"202","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","UniqueID":"ua1-staging-1511945445.293","Privilege":"call,all","Dialstring":"150010002/150010002/195.35.114.93!!203","CallerIDNum":"203","DestUniqueID":"ua1-staging-1511945445.294","Destination":"SIP/150010002-0000006a","ConnectedLineNum":"202","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Newstate","Channel":"SIP/150010002-0000006a","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"202"}, + {"Event":"Newstate","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"202"}, + {"Event":"Newstate","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"ID400641"}, + {"Event":"Newstate","Channel":"SIP/150010002-0000006a","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"202"}, + {"Event":"Newstate","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945445.293","Privilege":"call,all","ConnectedLineNum":"202","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","Uniqueid1":"ua1-staging-1511945445.293","CallerID1":"203","Channel2":"SIP/150010002-0000006a","Uniqueid2":"ua1-staging-1511945445.294","CallerID2":"202","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"202"}, + {"Event":"Newstate","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945445.291","Privilege":"call,all","ConnectedLineNum":"ID400641","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/202@osvpi_account_call_int_permitted-0000005c;2","Uniqueid1":"ua1-staging-1511945445.291","CallerID1":"203","Channel2":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid2":"ua1-staging-1511945445.292","CallerID2":"202","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Newstate","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"ID400641"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","OldAccountCode":"15001","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid1":"ua1-staging-1511945444.283","CallerID1":"203","Channel2":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid2":"ua1-staging-1511945445.290","CallerID2":"ID400641","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Link","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","CloneState":"Up","Clone":"SIP/150010002-0000006a","OriginalState":"Up","content":""}, + {"Event":"Rename","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","content":"","Newname":"SIP/150010002-0000006a"}, + {"Event":"Rename","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","content":"","Newname":"SIP/150010002-0000006a"}, + {"Event":"Rename","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","content":"","Newname":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1"}, + {"Event":"NewCallerid","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","CallerIDName":"","CallerIDNum":"202","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","Uniqueid1":"ua1-staging-1511945445.293","CallerID1":"203","Channel2":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid2":"ua1-staging-1511945445.294","CallerID2":"202","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;1","Uniqueid":"ua1-staging-1511945445.294","Privilege":"call,all","CallerIDNum":"202","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","UniqueID":"ua1-staging-1511945445.293","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730661@osvpi_route_phoneaccount-0000005d;2","Uniqueid":"ua1-staging-1511945445.293","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"202","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/202@osvpi_account_call_int_permitted-0000005c;1","CloneState":"Up","Clone":"SIP/150010002-0000006a","OriginalState":"Up","content":""}, + {"Event":"Rename","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","content":"","Newname":"SIP/150010002-0000006a"}, + {"Event":"Rename","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","content":"","Newname":"SIP/150010002-0000006a"}, + {"Event":"Rename","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","content":"","Newname":"Local/202@osvpi_account_call_int_permitted-0000005c;1"}, + {"Event":"NewCallerid","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","CallerIDName":"","CallerIDNum":"ID400641","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)"}, + {"Event":"Bridge","Channel1":"Local/202@osvpi_account_call_int_permitted-0000005c;2","Uniqueid1":"ua1-staging-1511945445.291","CallerID1":"203","Channel2":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid2":"ua1-staging-1511945445.292","CallerID2":"202","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;1","Uniqueid":"ua1-staging-1511945445.292","Privilege":"call,all","CallerIDNum":"202","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;2","UniqueID":"ua1-staging-1511945445.291","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/202@osvpi_account_call_int_permitted-0000005c;2","Uniqueid":"ua1-staging-1511945445.291","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"ID400641","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid1":"ua1-staging-1511945444.284","CallerID1":"203","Channel2":"SIP/150010003-00000069","Uniqueid2":"ua1-staging-1511945444.285","CallerID2":"ID400641","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010003-00000069","Uniqueid":"ua1-staging-1511945444.285","Privilege":"call,all","CallerIDNum":"ID400641","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"Calling...","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","UniqueID":"ua1-staging-1511945444.284","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Bridge","Channel1":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid1":"ua1-staging-1511945444.283","CallerID1":"203","Channel2":"SIP/150010002-0000006a","Uniqueid2":"ua1-staging-1511945445.290","CallerID2":"ID400641","Privilege":"call,all","Bridgetype":"core","Bridgestate":"Unlink","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010002-0000006a","Uniqueid":"ua1-staging-1511945445.290","Privilege":"call,all","CallerIDNum":"ID400641","ConnectedLineNum":"203","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;2","Uniqueid":"ua1-staging-1511945444.284","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"Calling...","ConnectedLineName":"","content":""}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","UniqueID":"ua1-staging-1511945444.283","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400641@osvpi_proc_connectab_ctd-00000059;1","Uniqueid":"ua1-staging-1511945444.283","Privilege":"call,all","CallerIDNum":"203","ConnectedLineNum":"","Cause":"16","Cause-txt":"Normal Clearing","CallerIDName":"","ConnectedLineName":"","content":""}] diff --git a/tests/fixtures/connectab/ctd-account-world-deny_a.json b/tests/fixtures/connectab/ctd-account-world-deny_a.json new file mode 100644 index 0000000..49059f6 --- /dev/null +++ b/tests/fixtures/connectab/ctd-account-world-deny_a.json @@ -0,0 +1,38 @@ +[{"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029504.791","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_proc_connectab_ctd","CallerIDNum":"","Exten":"ID400691"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029504.792","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_proc_connectab_ctd","CallerIDNum":"","Exten":"ID400691"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;1","Uniqueid":"ua1-staging-1512029504.791","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;1","Uniqueid":"ua1-staging-1512029504.791","Privilege":"call,all","content":"","CallerIDName":"","CID-CallingPres":"67 (Number Unavailable)","CallerIDNum":""}, + {"Event":"LocalBridge","Channel1":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;1","Uniqueid1":"ua1-staging-1512029504.791","Channel2":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","Uniqueid2":"ua1-staging-1512029504.792","Privilege":"call,all","LocalOptimization":"No","content":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400691"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","Uniqueid":"ua1-staging-1512029504.792","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"NewCallerid","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","Uniqueid":"ua1-staging-1512029504.792","Privilege":"call,all","content":"","CallerIDName":"Calling...","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","Uniqueid":"ua1-staging-1512029504.792","Privilege":"call,all","content":"","CallerIDName":"Calling...","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029504.793","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_account_call_int_permitted","CallerIDNum":"","Exten":"203"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029504.794","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_account_call_int_permitted","CallerIDNum":"","Exten":"203"}, + {"Event":"NewCallerid","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;1","Uniqueid":"ua1-staging-1512029504.793","Privilege":"call,all","content":"","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"ID400691"}, + {"Event":"LocalBridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000e5;1","Uniqueid1":"ua1-staging-1512029504.793","Channel2":"Local/203@osvpi_account_call_int_permitted-000000e5;2","Uniqueid2":"ua1-staging-1512029504.794","Privilege":"call,all","LocalOptimization":"Yes","content":"","Context":"osvpi_account_call_int_permitted","Exten":"203"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","UniqueID":"ua1-staging-1512029504.792","Privilege":"call,all","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203","DestUniqueID":"ua1-staging-1512029504.793","Destination":"Local/203@osvpi_account_call_int_permitted-000000e5;1","Dialstring":"203@osvpi_account_call_int_permitted","ConnectedLineNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029504.795","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_route_phoneaccount","CallerIDNum":"","Exten":"ID730671"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029504.796","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_route_phoneaccount","CallerIDNum":"","Exten":"ID730671"}, + {"Event":"NewCallerid","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;1","Uniqueid":"ua1-staging-1512029504.795","Privilege":"call,all","content":"","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"LocalBridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000e6;1","Uniqueid1":"ua1-staging-1512029504.795","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000e6;2","Uniqueid2":"ua1-staging-1512029504.796","Privilege":"call,all","LocalOptimization":"Yes","content":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;2","UniqueID":"ua1-staging-1512029504.794","Privilege":"call,all","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203","DestUniqueID":"ua1-staging-1512029504.795","Destination":"Local/ID730671@osvpi_route_phoneaccount-000000e6;1","Dialstring":"ID730671@osvpi_route_phoneaccount","ConnectedLineNum":"ID400691"}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010003","Uniqueid":"ua1-staging-1512029504.796","Privilege":"user,all","Provider":"webhook","WebhookUrls":"","content":"","AccountInternalNumber":"203"}, + {"Event":"Newchannel","AccountCode":"150010003","Channel":"SIP/150010003-0000014f","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029504.797","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_account","CallerIDNum":"","Exten":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-0000014f","Uniqueid":"ua1-staging-1512029504.797","Privilege":"call,all","content":"","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;2","UniqueID":"ua1-staging-1512029504.796","Privilege":"call,all","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203","DestUniqueID":"ua1-staging-1512029504.797","Destination":"SIP/150010003-0000014f","Dialstring":"150010003/150010003/195.35.114.93!!203","ConnectedLineNum":"203"}, + {"Event":"Newstate","Channel":"SIP/150010003-0000014f","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029504.797","Privilege":"call,all","CallerIDNum":"203","CallerIDName":"","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029504.795","Privilege":"call,all","CallerIDNum":"203","CallerIDName":"","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029504.793","Privilege":"call,all","CallerIDNum":"ID400691","CallerIDName":"","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling..."}, + {"Event":"Newstate","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029504.791","Privilege":"call,all","CallerIDNum":"","CallerIDName":"","ConnectedLineNum":"","content":"","ConnectedLineName":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010003-0000014f","Uniqueid":"ua1-staging-1512029504.797","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"203","Cause":"17","ConnectedLineNum":"203"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;2","UniqueID":"ua1-staging-1512029504.796","Privilege":"call,all","content":"","DialStatus":"BUSY"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;2","Uniqueid":"ua1-staging-1512029504.796","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203","Cause":"17","ConnectedLineNum":"203"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e6;1","Uniqueid":"ua1-staging-1512029504.795","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"203","Cause":"17","ConnectedLineNum":"203"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;2","UniqueID":"ua1-staging-1512029504.794","Privilege":"call,all","content":"","DialStatus":"BUSY"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;2","Uniqueid":"ua1-staging-1512029504.794","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203","Cause":"17","ConnectedLineNum":"ID400691"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000e5;1","Uniqueid":"ua1-staging-1512029504.793","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"","ConnectedLineName":"Calling...","content":"","CallerIDNum":"ID400691","Cause":"17","ConnectedLineNum":"203"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","UniqueID":"ua1-staging-1512029504.792","Privilege":"call,all","content":"","DialStatus":"BUSY"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;2","Uniqueid":"ua1-staging-1512029504.792","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"Calling...","ConnectedLineName":"","content":"","CallerIDNum":"203","Cause":"17","ConnectedLineNum":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400691@osvpi_proc_connectab_ctd-000000e4;1","Uniqueid":"ua1-staging-1512029504.791","Privilege":"call,all","Cause-txt":"User busy","CallerIDName":"","ConnectedLineName":"","content":"","CallerIDNum":"","Cause":"17","ConnectedLineNum":""}] diff --git a/tests/fixtures/connectab/ctd-account-world-deny_b.json b/tests/fixtures/connectab/ctd-account-world-deny_b.json new file mode 100644 index 0000000..217680a --- /dev/null +++ b/tests/fixtures/connectab/ctd-account-world-deny_b.json @@ -0,0 +1,90 @@ +[ + {"Event":"FullyBooted","Privilege":"system,all","Status":"Fully Booted","content":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","Context":"osvpi_proc_connectab_ctd","content":"","Exten":"ID400711","CallerIDName":"","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512032862.847","Privilege":"call,all","Context":"osvpi_proc_connectab_ctd","content":"","Exten":"ID400711","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","CID-CallingPres":"67 (Number Unavailable)","content":"","CallerIDNum":"","CallerIDName":""}, + {"Event":"LocalBridge","Channel1":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","Uniqueid1":"ua1-staging-1512032862.846","Channel2":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid2":"ua1-staging-1512032862.847","Privilege":"call,all","Context":"osvpi_proc_connectab_ctd","content":"","Exten":"ID400711","LocalOptimization":"No"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid":"ua1-staging-1512032862.847","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"NewCallerid","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid":"ua1-staging-1512032862.847","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"","CallerIDName":"Calling..."}, + {"Event":"NewCallerid","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid":"ua1-staging-1512032862.847","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"203","CallerIDName":"Calling..."}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","Context":"osvpi_account_call_int_permitted","content":"","Exten":"203","CallerIDName":"","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512032862.849","Privilege":"call,all","Context":"osvpi_account_call_int_permitted","content":"","Exten":"203","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400711","CallerIDName":""}, + {"Event":"LocalBridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid1":"ua1-staging-1512032862.848","Channel2":"Local/203@osvpi_account_call_int_permitted-000000f6;2","Uniqueid2":"ua1-staging-1512032862.849","Privilege":"call,all","Context":"osvpi_account_call_int_permitted","content":"","Exten":"203","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","UniqueID":"ua1-staging-1512032862.847","Privilege":"call,all","ConnectedLineNum":"","content":"","Destination":"Local/203@osvpi_account_call_int_permitted-000000f6;1","CallerIDName":"Calling...","DestUniqueID":"ua1-staging-1512032862.848","Dialstring":"203@osvpi_account_call_int_permitted","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","Context":"osvpi_route_phoneaccount","content":"","Exten":"ID730671","CallerIDName":"","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512032862.851","Privilege":"call,all","Context":"osvpi_route_phoneaccount","content":"","Exten":"ID730671","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"203","CallerIDName":""}, + {"Event":"LocalBridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid1":"ua1-staging-1512032862.850","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","Uniqueid2":"ua1-staging-1512032862.851","Privilege":"call,all","Context":"osvpi_route_phoneaccount","content":"","Exten":"ID730671","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;2","UniqueID":"ua1-staging-1512032862.849","Privilege":"call,all","ConnectedLineNum":"ID400711","content":"","Destination":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","CallerIDName":"Calling...","DestUniqueID":"ua1-staging-1512032862.850","Dialstring":"ID730671@osvpi_route_phoneaccount","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010003","Uniqueid":"ua1-staging-1512032862.851","Privilege":"user,all","content":"","AccountInternalNumber":"203","Provider":"webhook","WebhookUrls":""}, + {"Event":"Newchannel","AccountCode":"150010003","Channel":"SIP/150010003-00000164","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","Context":"osvpi_account","content":"","Exten":"","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"203","CallerIDName":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","UniqueID":"ua1-staging-1512032862.851","Privilege":"call,all","ConnectedLineNum":"203","content":"","Destination":"SIP/150010003-00000164","CallerIDName":"Calling...","DestUniqueID":"ua1-staging-1512032863.852","Dialstring":"150010003/150010003/195.35.114.93!!203","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"SIP/150010003-00000164","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"ID400711"}, + {"Event":"Newstate","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","ConnectedLineNum":"","content":"","ConnectedLineName":"","CallerIDName":"","CallerIDNum":""}, + {"Event":"Newstate","Channel":"SIP/150010003-00000164","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032862.851","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"","CallerIDName":"Calling...","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","Uniqueid1":"ua1-staging-1512032862.851","CallerID1":"203","Channel2":"SIP/150010003-00000164","Uniqueid2":"ua1-staging-1512032863.852","CallerID2":"203","Privilege":"call,all","content":"","Bridgetype":"core","Bridgestate":"Link"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032862.849","Privilege":"call,all","ConnectedLineNum":"ID400711","content":"","ConnectedLineName":"","CallerIDName":"Calling...","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000f6;2","Uniqueid1":"ua1-staging-1512032862.849","CallerID1":"203","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid2":"ua1-staging-1512032862.850","CallerID2":"203","Privilege":"call,all","content":"","Bridgetype":"core","Bridgestate":"Link"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","ConnectedLineNum":"203","content":"","ConnectedLineName":"Calling...","CallerIDName":"","CallerIDNum":"ID400711"}, + {"Event":"Newstate","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032862.847","Privilege":"call,all","ConnectedLineNum":"","content":"","ConnectedLineName":"","CallerIDName":"Calling...","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","ConnectedLineNum":"","content":"","ConnectedLineName":"","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid1":"ua1-staging-1512032862.847","CallerID1":"203","Channel2":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid2":"ua1-staging-1512032862.848","CallerID2":"ID400711","Privilege":"call,all","content":"","Bridgetype":"core","Bridgestate":"Link"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","content":"","Clone":"SIP/150010003-00000164","CloneState":"Up","OriginalState":"Up"}, + {"Event":"Rename","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000164"}, + {"Event":"Rename","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000164"}, + {"Event":"Rename","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","content":"","Newname":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1"}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"203","CallerIDName":""}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","Uniqueid1":"ua1-staging-1512032862.851","CallerID1":"203","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid2":"ua1-staging-1512032863.852","CallerID2":"203","Privilege":"call,all","content":"","Bridgetype":"core","Bridgestate":"Unlink"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;1","Uniqueid":"ua1-staging-1512032863.852","Privilege":"call,all","ConnectedLineNum":"203","Cause-txt":"Normal Clearing","content":"","CallerIDName":"","Cause":"16","ConnectedLineName":"Calling...","CallerIDNum":"203"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/203@osvpi_account_call_int_permitted-000000f6;1","content":"","Clone":"SIP/150010003-00000164","CloneState":"Up","OriginalState":"Up"}, + {"Event":"Rename","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000164"}, + {"Event":"Rename","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","content":"","Newname":"SIP/150010003-00000164"}, + {"Event":"Rename","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","content":"","Newname":"Local/203@osvpi_account_call_int_permitted-000000f6;1"}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400711","CallerIDName":""}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000f6;2","Uniqueid1":"ua1-staging-1512032862.849","CallerID1":"203","Channel2":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid2":"ua1-staging-1512032862.850","CallerID2":"203","Privilege":"call,all","content":"","Bridgetype":"core","Bridgestate":"Unlink"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","UniqueID":"ua1-staging-1512032862.851","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000f7;2","Uniqueid":"ua1-staging-1512032862.851","Privilege":"call,all","ConnectedLineNum":"203","Cause-txt":"Normal Clearing","content":"","CallerIDName":"Calling...","Cause":"16","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;1","Uniqueid":"ua1-staging-1512032862.850","Privilege":"call,all","ConnectedLineNum":"203","Cause-txt":"Normal Clearing","content":"","CallerIDName":"","Cause":"16","ConnectedLineName":"Calling...","CallerIDNum":"203"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;2","UniqueID":"ua1-staging-1512032862.849","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000f6;2","Uniqueid":"ua1-staging-1512032862.849","Privilege":"call,all","ConnectedLineNum":"ID400711","Cause-txt":"Normal Clearing","content":"","CallerIDName":"Calling...","Cause":"16","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"NewCallerid","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31150010001","CallerIDName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032865.853","Privilege":"call,all","Context":"osvpi_world_call_permittedplus","content":"","Exten":"+31613925xxx","CallerIDName":"","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512032865.854","Privilege":"call,all","Context":"osvpi_world_call_permittedplus","content":"","Exten":"+31613925xxx","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;1","Uniqueid":"ua1-staging-1512032865.853","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400711","CallerIDName":""}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;1","Uniqueid1":"ua1-staging-1512032865.853","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;2","Uniqueid2":"ua1-staging-1512032865.854","Privilege":"call,all","Context":"osvpi_world_call_permittedplus","content":"","Exten":"+31613925xxx","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","UniqueID":"ua1-staging-1512032862.846","Privilege":"call,all","ConnectedLineNum":"","content":"","Destination":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;1","CallerIDName":"","DestUniqueID":"ua1-staging-1512032865.853","Dialstring":"+31613925xxx@osvpi_world_call_permittedplus","ConnectedLineName":"","CallerIDNum":"+31150010001"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-000000f9;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032865.855","Privilege":"call,all","Context":"world_out","content":"","Exten":"+31613925xxx","CallerIDName":"","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-000000f9;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512032865.856","Privilege":"call,all","Context":"world_out","content":"","Exten":"+31613925xxx","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@world_out-000000f9;1","Uniqueid":"ua1-staging-1512032865.855","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31613925xxx","CallerIDName":""}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@world_out-000000f9;1","Uniqueid1":"ua1-staging-1512032865.855","Channel2":"Local/+31613925xxx@world_out-000000f9;2","Uniqueid2":"ua1-staging-1512032865.856","Privilege":"call,all","Context":"world_out","content":"","Exten":"+31613925xxx","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;2","UniqueID":"ua1-staging-1512032865.854","Privilege":"call,all","ConnectedLineNum":"ID400711","content":"","Destination":"Local/+31613925xxx@world_out-000000f9;1","CallerIDName":"","DestUniqueID":"ua1-staging-1512032865.855","Dialstring":"+31613925xxx@world_out","ConnectedLineName":"","CallerIDNum":"+31150010001"}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-00000165","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512032865.857","Privilege":"call,all","Context":"voipgrid_in","content":"","Exten":"","CallerIDName":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000165","Uniqueid":"ua1-staging-1512032865.857","Privilege":"call,all","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31613925xxx","CallerIDName":""}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@world_out-000000f9;2","UniqueID":"ua1-staging-1512032865.856","Privilege":"call,all","ConnectedLineNum":"+31613925xxx","content":"","Destination":"SIP/voipgrid-siproute-staging-00000165","CallerIDName":"","DestUniqueID":"ua1-staging-1512032865.857","Dialstring":"+31613925xxx@voipgrid-siproute-staging","ConnectedLineName":"","CallerIDNum":"+31150010001"}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-staging-00000165","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032865.857","Privilege":"call,all","ConnectedLineNum":"+31150010001","content":"","ConnectedLineName":"","CallerIDName":"","CallerIDNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-000000f9;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032865.855","Privilege":"call,all","ConnectedLineNum":"+31150010001","content":"","ConnectedLineName":"","CallerIDName":"","CallerIDNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512032865.853","Privilege":"call,all","ConnectedLineNum":"+31150010001","content":"","ConnectedLineName":"","CallerIDName":"","CallerIDNum":"ID400711"}, + {"Event":"Bridge","Channel1":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid1":"ua1-staging-1512032862.847","CallerID1":"203","Channel2":"SIP/150010003-00000164","Uniqueid2":"ua1-staging-1512032862.848","CallerID2":"ID400711","Privilege":"call,all","content":"","Bridgetype":"core","Bridgestate":"Unlink"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010003-00000164","Uniqueid":"ua1-staging-1512032862.848","Privilege":"call,all","ConnectedLineNum":"203","Cause-txt":"Normal Clearing","content":"","CallerIDName":"","Cause":"16","ConnectedLineName":"Calling...","CallerIDNum":"ID400711"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","UniqueID":"ua1-staging-1512032862.847","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;2","Uniqueid":"ua1-staging-1512032862.847","Privilege":"call,all","ConnectedLineNum":"","Cause-txt":"Normal Clearing","content":"","CallerIDName":"Calling...","Cause":"16","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;1","Uniqueid":"ua1-staging-1512032865.853","Privilege":"call,all","ConnectedLineNum":"+31150010001","Cause-txt":"Unknown","content":"","CallerIDName":"","Cause":"0","ConnectedLineName":"","CallerIDNum":"ID400711"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","UniqueID":"ua1-staging-1512032862.846","Privilege":"call,all","content":"","DialStatus":"CANCEL"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400711@osvpi_proc_connectab_ctd-000000f5;1","Uniqueid":"ua1-staging-1512032862.846","Privilege":"call,all","ConnectedLineNum":"","Cause-txt":"Normal Clearing","content":"","CallerIDName":"","Cause":"16","ConnectedLineName":"","CallerIDNum":"+31150010001"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000f9;1","Uniqueid":"ua1-staging-1512032865.855","Privilege":"call,all","ConnectedLineNum":"+31150010001","Cause-txt":"Unknown","content":"","CallerIDName":"","Cause":"0","ConnectedLineName":"","CallerIDNum":"+31613925xxx"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;2","UniqueID":"ua1-staging-1512032865.854","Privilege":"call,all","content":"","DialStatus":"CANCEL"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000f8;2","Uniqueid":"ua1-staging-1512032865.854","Privilege":"call,all","ConnectedLineNum":"ID400711","Cause-txt":"Unknown","content":"","CallerIDName":"","Cause":"0","ConnectedLineName":"","CallerIDNum":"+31150010001"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000165","Uniqueid":"ua1-staging-1512032865.857","Privilege":"call,all","ConnectedLineNum":"+31150010001","Cause-txt":"Normal Clearing","content":"","CallerIDName":"","Cause":"16","ConnectedLineName":"","CallerIDNum":"+31613925xxx"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@world_out-000000f9;2","UniqueID":"ua1-staging-1512032865.856","Privilege":"call,all","content":"","DialStatus":"CANCEL"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000f9;2","Uniqueid":"ua1-staging-1512032865.856","Privilege":"call,all","ConnectedLineNum":"+31613925xxx","Cause-txt":"Unknown","content":"","CallerIDName":"","Cause":"0","ConnectedLineName":"","CallerIDNum":"+31150010001"}] diff --git a/tests/fixtures/connectab/ctd-account-world-fail2.json b/tests/fixtures/connectab/ctd-account-world-fail2.json new file mode 100644 index 0000000..ec914d3 --- /dev/null +++ b/tests/fixtures/connectab/ctd-account-world-fail2.json @@ -0,0 +1,87 @@ +[{"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400701","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029541.799","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400701","CallerIDNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"67 (Number Unavailable)","CallerIDNum":""}, + {"Event":"LocalBridge","Channel1":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","Uniqueid1":"ua1-staging-1512029541.798","Channel2":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid2":"ua1-staging-1512029541.799","Privilege":"call,all","content":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400701","LocalOptimization":"No"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid":"ua1-staging-1512029541.799","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"NewCallerid","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid":"ua1-staging-1512029541.799","Privilege":"call,all","CallerIDName":"Calling...","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid":"ua1-staging-1512029541.799","Privilege":"call,all","CallerIDName":"Calling...","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_account_call_int_permitted","Exten":"203","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029541.801","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_account_call_int_permitted","Exten":"203","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"ID400701"}, + {"Event":"LocalBridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid1":"ua1-staging-1512029541.800","Channel2":"Local/203@osvpi_account_call_int_permitted-000000e8;2","Uniqueid2":"ua1-staging-1512029541.801","Privilege":"call,all","content":"","Context":"osvpi_account_call_int_permitted","Exten":"203","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","UniqueID":"ua1-staging-1512029541.799","Privilege":"call,all","CallerIDName":"Calling...","content":"","Dialstring":"203@osvpi_account_call_int_permitted","CallerIDNum":"203","ConnectedLineName":"","ConnectedLineNum":"","Destination":"Local/203@osvpi_account_call_int_permitted-000000e8;1","DestUniqueID":"ua1-staging-1512029541.800"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029541.803","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"LocalBridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid1":"ua1-staging-1512029541.802","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","Uniqueid2":"ua1-staging-1512029541.803","Privilege":"call,all","content":"","Context":"osvpi_route_phoneaccount","Exten":"ID730671","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;2","UniqueID":"ua1-staging-1512029541.801","Privilege":"call,all","CallerIDName":"Calling...","content":"","Dialstring":"ID730671@osvpi_route_phoneaccount","CallerIDNum":"203","ConnectedLineName":"","ConnectedLineNum":"ID400701","Destination":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","DestUniqueID":"ua1-staging-1512029541.802"}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"150010003","Uniqueid":"ua1-staging-1512029541.803","Privilege":"user,all","Provider":"webhook","WebhookUrls":"","AccountInternalNumber":"203","content":""}, + {"Event":"Newchannel","AccountCode":"150010003","Channel":"SIP/150010003-00000150","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_account","Exten":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","UniqueID":"ua1-staging-1512029541.803","Privilege":"call,all","CallerIDName":"Calling...","content":"","Dialstring":"150010003/150010003/195.35.114.93!!203","CallerIDNum":"203","ConnectedLineName":"","ConnectedLineNum":"203","Destination":"SIP/150010003-00000150","DestUniqueID":"ua1-staging-1512029541.804"}, + {"Event":"Newstate","Channel":"SIP/150010003-00000150","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","content":"","ConnectedLineName":"Calling...","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","content":"","ConnectedLineName":"Calling...","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","content":"","ConnectedLineName":"Calling...","CallerIDNum":"ID400701"}, + {"Event":"Newstate","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","ConnectedLineNum":"","CallerIDName":"","content":"","ConnectedLineName":"","CallerIDNum":""}, + {"Event":"Newstate","Channel":"SIP/150010003-00000150","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","content":"","ConnectedLineName":"Calling...","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.803","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"Calling...","content":"","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","Uniqueid1":"ua1-staging-1512029541.803","CallerID1":"203","Channel2":"SIP/150010003-00000150","Uniqueid2":"ua1-staging-1512029541.804","CallerID2":"203","Privilege":"call,all","Bridgestate":"Link","Bridgetype":"core","content":""}, + {"Event":"Newstate","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","content":"","ConnectedLineName":"Calling...","CallerIDNum":"203"}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.801","Privilege":"call,all","ConnectedLineNum":"ID400701","CallerIDName":"Calling...","content":"","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000e8;2","Uniqueid1":"ua1-staging-1512029541.801","CallerID1":"203","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid2":"ua1-staging-1512029541.802","CallerID2":"203","Privilege":"call,all","Bridgestate":"Link","Bridgetype":"core","content":""}, + {"Event":"Newstate","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","ConnectedLineNum":"203","CallerIDName":"","content":"","ConnectedLineName":"Calling...","CallerIDNum":"ID400701"}, + {"Event":"Newstate","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.799","Privilege":"call,all","ConnectedLineNum":"","CallerIDName":"Calling...","content":"","ConnectedLineName":"","CallerIDNum":"203"}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Bridge","Channel1":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid1":"ua1-staging-1512029541.799","CallerID1":"203","Channel2":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid2":"ua1-staging-1512029541.800","CallerID2":"ID400701","Privilege":"call,all","Bridgestate":"Link","Bridgetype":"core","content":""}, + {"Event":"Newstate","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","ConnectedLineNum":"","CallerIDName":"","content":"","ConnectedLineName":"","CallerIDNum":""}, + {"Event":"NewAccountCode","AccountCode":"15001","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","content":"","OldAccountCode":"15001"}, + {"Event":"Masquerade","Privilege":"call,all","Clone":"SIP/150010003-00000150","content":"","OriginalState":"Up","Original":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","Newname":"SIP/150010003-00000150","content":""}, + {"Event":"Rename","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","Newname":"SIP/150010003-00000150","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","Newname":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"203"}, + {"Event":"Bridge","Channel1":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","Uniqueid1":"ua1-staging-1512029541.803","CallerID1":"203","Channel2":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid2":"ua1-staging-1512029541.804","CallerID2":"203","Privilege":"call,all","Bridgestate":"Unlink","Bridgetype":"core","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;1","Uniqueid":"ua1-staging-1512029541.804","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"203","ConnectedLineNum":"203","ConnectedLineName":"Calling...","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","UniqueID":"ua1-staging-1512029541.803","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID730671@osvpi_route_phoneaccount-000000e9;2","Uniqueid":"ua1-staging-1512029541.803","Privilege":"call,all","CallerIDName":"Calling...","content":"","CallerIDNum":"203","ConnectedLineNum":"203","ConnectedLineName":"","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Masquerade","Privilege":"call,all","Clone":"SIP/150010003-00000150","content":"","OriginalState":"Up","Original":"Local/203@osvpi_account_call_int_permitted-000000e8;1","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","Newname":"SIP/150010003-00000150","content":""}, + {"Event":"Rename","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","Newname":"SIP/150010003-00000150","content":""}, + {"Event":"Rename","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","Newname":"Local/203@osvpi_account_call_int_permitted-000000e8;1","content":""}, + {"Event":"NewCallerid","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"ID400701"}, + {"Event":"Bridge","Channel1":"Local/203@osvpi_account_call_int_permitted-000000e8;2","Uniqueid1":"ua1-staging-1512029541.801","CallerID1":"203","Channel2":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid2":"ua1-staging-1512029541.802","CallerID2":"203","Privilege":"call,all","Bridgestate":"Unlink","Bridgetype":"core","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;1","Uniqueid":"ua1-staging-1512029541.802","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"203","ConnectedLineNum":"203","ConnectedLineName":"Calling...","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;2","UniqueID":"ua1-staging-1512029541.801","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/203@osvpi_account_call_int_permitted-000000e8;2","Uniqueid":"ua1-staging-1512029541.801","Privilege":"call,all","CallerIDName":"Calling...","content":"","CallerIDNum":"203","ConnectedLineNum":"ID400701","ConnectedLineName":"","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"NewCallerid","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"+31150010001"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029543.805","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029543.806","Privilege":"call,all","CallerIDName":"","content":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;1","Uniqueid":"ua1-staging-1512029543.805","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"ID400701"}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;1","Uniqueid1":"ua1-staging-1512029543.805","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;2","Uniqueid2":"ua1-staging-1512029543.806","Privilege":"call,all","content":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","UniqueID":"ua1-staging-1512029541.798","Privilege":"call,all","CallerIDName":"","content":"","Dialstring":"+31613925xxx@osvpi_world_call_permittedplus","CallerIDNum":"+31150010001","ConnectedLineName":"","ConnectedLineNum":"","Destination":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;1","DestUniqueID":"ua1-staging-1512029543.805"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-000000eb;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029543.807","Privilege":"call,all","CallerIDName":"","content":"","Context":"world_out","Exten":"+31613925xxx","CallerIDNum":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-000000eb;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua1-staging-1512029543.808","Privilege":"call,all","CallerIDName":"","content":"","Context":"world_out","Exten":"+31613925xxx","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@world_out-000000eb;1","Uniqueid":"ua1-staging-1512029543.807","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"+31613925xxx"}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@world_out-000000eb;1","Uniqueid1":"ua1-staging-1512029543.807","Channel2":"Local/+31613925xxx@world_out-000000eb;2","Uniqueid2":"ua1-staging-1512029543.808","Privilege":"call,all","content":"","Context":"world_out","Exten":"+31613925xxx","LocalOptimization":"Yes"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;2","UniqueID":"ua1-staging-1512029543.806","Privilege":"call,all","CallerIDName":"","content":"","Dialstring":"+31613925xxx@world_out","CallerIDNum":"+31150010001","ConnectedLineName":"","ConnectedLineNum":"ID400701","Destination":"Local/+31613925xxx@world_out-000000eb;1","DestUniqueID":"ua1-staging-1512029543.807"}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-staging-00000151","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua1-staging-1512029543.809","Privilege":"call,all","CallerIDName":"","content":"","Context":"voipgrid_in","Exten":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-staging-00000151","Uniqueid":"ua1-staging-1512029543.809","Privilege":"call,all","CallerIDName":"","content":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","CallerIDNum":"+31613925xxx"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@world_out-000000eb;2","UniqueID":"ua1-staging-1512029543.808","Privilege":"call,all","CallerIDName":"","content":"","Dialstring":"+31613925xxx@voipgrid-siproute-staging","CallerIDNum":"+31150010001","ConnectedLineName":"","ConnectedLineNum":"+31613925xxx","Destination":"SIP/voipgrid-siproute-staging-00000151","DestUniqueID":"ua1-staging-1512029543.809"}, + {"Event":"Bridge","Channel1":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid1":"ua1-staging-1512029541.799","CallerID1":"203","Channel2":"SIP/150010003-00000150","Uniqueid2":"ua1-staging-1512029541.800","CallerID2":"ID400701","Privilege":"call,all","Bridgestate":"Unlink","Bridgetype":"core","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/150010003-00000150","Uniqueid":"ua1-staging-1512029541.800","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"ID400701","ConnectedLineNum":"203","ConnectedLineName":"Calling...","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","UniqueID":"ua1-staging-1512029541.799","Privilege":"call,all","DialStatus":"ANSWER","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;2","Uniqueid":"ua1-staging-1512029541.799","Privilege":"call,all","CallerIDName":"Calling...","content":"","CallerIDNum":"203","ConnectedLineNum":"","ConnectedLineName":"","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;1","Uniqueid":"ua1-staging-1512029543.805","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"ID400701","ConnectedLineNum":"+31150010001","ConnectedLineName":"","Cause":"0","Cause-txt":"Unknown"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","UniqueID":"ua1-staging-1512029541.798","Privilege":"call,all","DialStatus":"CANCEL","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/ID400701@osvpi_proc_connectab_ctd-000000e7;1","Uniqueid":"ua1-staging-1512029541.798","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"","ConnectedLineName":"","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000eb;1","Uniqueid":"ua1-staging-1512029543.807","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","ConnectedLineName":"","Cause":"0","Cause-txt":"Unknown"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;2","UniqueID":"ua1-staging-1512029543.806","Privilege":"call,all","DialStatus":"CANCEL","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-000000ea;2","Uniqueid":"ua1-staging-1512029543.806","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"ID400701","ConnectedLineName":"","Cause":"0","Cause-txt":"Unknown"}, + {"Event":"Hangup","AccountCode":"15001","Channel":"SIP/voipgrid-siproute-staging-00000151","Uniqueid":"ua1-staging-1512029543.809","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"+31613925xxx","ConnectedLineNum":"+31150010001","ConnectedLineName":"","Cause":"16","Cause-txt":"Normal Clearing"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@world_out-000000eb;2","UniqueID":"ua1-staging-1512029543.808","Privilege":"call,all","DialStatus":"CANCEL","content":""}, + {"Event":"Hangup","AccountCode":"15001","Channel":"Local/+31613925xxx@world_out-000000eb;2","Uniqueid":"ua1-staging-1512029543.808","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"+31150010001","ConnectedLineNum":"+31613925xxx","ConnectedLineName":"","Cause":"0","Cause-txt":"Unknown"}] diff --git a/tests/fixtures/connectab/ctd-account-world.json b/tests/fixtures/connectab/ctd-account-world.json new file mode 100644 index 0000000..12c675e --- /dev/null +++ b/tests/fixtures/connectab/ctd-account-world.json @@ -0,0 +1,140 @@ +[{"Event":"FullyBooted","Privilege":"system,all","content":"","Status":"Fully Booted"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400581"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_proc_connectab_ctd","Exten":"ID400581"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","content":""}, + {"Event":"NewCallerid","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"67 (Number Unavailable)","content":"","CallerIDNum":""}, + { + "Event": "LocalBridge", + "Channel1": "Local/ID400581@osvpi_proc_connectab_ctd-00000033;1", + "Uniqueid1": "ua0-acc-1511536963.146", + "Channel2": "Local/ID400581@osvpi_proc_connectab_ctd-00000033;2", + "Uniqueid2": "ua0-acc-1511536963.147", + "Privilege": "call,all", + "content": "", + "LocalOptimization": "No", + "Exten": "ID400581", + "Context": "osvpi_proc_connectab_ctd" + }, {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"NewCallerid","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","CallerIDName":"Calling...","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":""}, + {"Event":"NewCallerid","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","CallerIDName":"Calling...","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"217"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_account_call_int_permitted","Exten":"217"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua0-acc-1511536963.149","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_account_call_int_permitted","Exten":"217"}, + {"Event":"NewCallerid","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400581"}, + {"Event":"LocalBridge","Channel1":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid1":"ua0-acc-1511536963.148","Channel2":"Local/217@osvpi_account_call_int_permitted-00000034;2","Uniqueid2":"ua0-acc-1511536963.149","Privilege":"call,all","content":"","LocalOptimization":"Yes","Exten":"217","Context":"osvpi_account_call_int_permitted"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","UniqueID":"ua0-acc-1511536963.147","Privilege":"call,all","CallerIDName":"Calling...","DestUniqueID":"ua0-acc-1511536963.148","ConnectedLineNum":"","Destination":"Local/217@osvpi_account_call_int_permitted-00000034;1","content":"","CallerIDNum":"217","Dialstring":"217@osvpi_account_call_int_permitted","ConnectedLineName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_route_phoneaccount","Exten":"ID730651"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua0-acc-1511536963.151","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_route_phoneaccount","Exten":"ID730651"}, + {"Event":"NewCallerid","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"217"}, + {"Event":"LocalBridge","Channel1":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid1":"ua0-acc-1511536963.150","Channel2":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","Uniqueid2":"ua0-acc-1511536963.151","Privilege":"call,all","content":"","LocalOptimization":"Yes","Exten":"ID730651","Context":"osvpi_route_phoneaccount"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","UniqueID":"ua0-acc-1511536963.149","Privilege":"call,all","CallerIDName":"Calling...","DestUniqueID":"ua0-acc-1511536963.150","ConnectedLineNum":"ID400581","Destination":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","content":"","CallerIDNum":"217","Dialstring":"ID730651@osvpi_route_phoneaccount","ConnectedLineName":""}, + {"Event":"UserEvent","UserEvent":"NotifyCallstate","AccountCode":"126680005","Uniqueid":"ua0-acc-1511536963.151","Privilege":"user,all","content":"","Provider":"webhook","AccountInternalNumber":"217","WebhookUrls":""}, + {"Event":"Newchannel","AccountCode":"126680005","Channel":"SIP/126680005-0000002c","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_account","Exten":""}, + {"Event":"NewCallerid","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"217"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","UniqueID":"ua0-acc-1511536963.151","Privilege":"call,all","CallerIDName":"Calling...","DestUniqueID":"ua0-acc-1511536963.152","ConnectedLineNum":"217","Destination":"SIP/126680005-0000002c","content":"","CallerIDNum":"217","Dialstring":"126680005/126680005/195.35.115.203!!217","ConnectedLineName":""}, + {"Event":"Newstate","Channel":"SIP/126680005-0000002c","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"Calling...","ConnectedLineNum":"217","CallerIDNum":"217"}, + {"Event":"Newstate","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"Calling...","ConnectedLineNum":"217","CallerIDNum":"217"}, + {"Event":"Newstate","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"Calling...","ConnectedLineNum":"217","CallerIDNum":"ID400581"}, + {"Event":"Newstate","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"","CallerIDNum":""}, + {"Event":"Newstate","Channel":"SIP/126680005-0000002c","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"Calling...","ConnectedLineNum":"217","CallerIDNum":"217"}, + {"Event":"Newstate","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.151","Privilege":"call,all","CallerIDName":"Calling...","content":"","ConnectedLineName":"","ConnectedLineNum":"217","CallerIDNum":"217"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"Bridge","Channel1":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","Uniqueid1":"ua0-acc-1511536963.151","CallerID1":"217","Channel2":"SIP/126680005-0000002c","Uniqueid2":"ua0-acc-1511536963.152","CallerID2":"217","Privilege":"call,all","Bridgestate":"Link","content":"","Bridgetype":"core"}, + {"Event":"Newstate","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"Calling...","ConnectedLineNum":"217","CallerIDNum":"217"}, + {"Event":"Newstate","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.149","Privilege":"call,all","CallerIDName":"Calling...","content":"","ConnectedLineName":"","ConnectedLineNum":"ID400581","CallerIDNum":"217"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"Bridge","Channel1":"Local/217@osvpi_account_call_int_permitted-00000034;2","Uniqueid1":"ua0-acc-1511536963.149","CallerID1":"217","Channel2":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid2":"ua0-acc-1511536963.150","CallerID2":"217","Privilege":"call,all","Bridgestate":"Link","content":"","Bridgetype":"core"}, + {"Event":"Newstate","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"Calling...","ConnectedLineNum":"217","CallerIDNum":"ID400581"}, + {"Event":"Newstate","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","CallerIDName":"Calling...","content":"","ConnectedLineName":"","ConnectedLineNum":"","CallerIDNum":"217"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"Bridge","Channel1":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid1":"ua0-acc-1511536963.147","CallerID1":"217","Channel2":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid2":"ua0-acc-1511536963.148","CallerID2":"ID400581","Privilege":"call,all","Bridgestate":"Link","content":"","Bridgetype":"core"}, + {"Event":"Newstate","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"","CallerIDNum":""}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"NewCallerid","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31853030900"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua0-acc-1511536965.154","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"osvpi_world_call_permittedplus","Exten":"+31613925xxx"}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400581"}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid1":"ua0-acc-1511536965.153","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","Uniqueid2":"ua0-acc-1511536965.154","Privilege":"call,all","content":"","LocalOptimization":"Yes","Exten":"+31613925xxx","Context":"osvpi_world_call_permittedplus"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","UniqueID":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","DestUniqueID":"ua0-acc-1511536965.153","ConnectedLineNum":"","Destination":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","content":"","CallerIDNum":"+31853030900","Dialstring":"+31613925xxx@osvpi_world_call_permittedplus","ConnectedLineName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-00000037;1","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"world_out","Exten":"+31613925xxx"}, + {"Event":"Newchannel","AccountCode":"","Channel":"Local/+31613925xxx@world_out-00000037;2","ChannelState":"4","ChannelStateDesc":"Ring","Uniqueid":"ua0-acc-1511536965.156","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"world_out","Exten":"+31613925xxx"}, + {"Event":"NewCallerid","Channel":"Local/+31613925xxx@world_out-00000037;1","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31613925xxx"}, + {"Event":"LocalBridge","Channel1":"Local/+31613925xxx@world_out-00000037;1","Uniqueid1":"ua0-acc-1511536965.155","Channel2":"Local/+31613925xxx@world_out-00000037;2","Uniqueid2":"ua0-acc-1511536965.156","Privilege":"call,all","content":"","LocalOptimization":"Yes","Exten":"+31613925xxx","Context":"world_out"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","UniqueID":"ua0-acc-1511536965.154","Privilege":"call,all","CallerIDName":"","DestUniqueID":"ua0-acc-1511536965.155","ConnectedLineNum":"ID400581","Destination":"Local/+31613925xxx@world_out-00000037;1","content":"","CallerIDNum":"+31853030900","Dialstring":"+31613925xxx@world_out","ConnectedLineName":""}, + {"Event":"Newchannel","AccountCode":"","Channel":"SIP/voipgrid-siproute-dev-0000002d","ChannelState":"0","ChannelStateDesc":"Down","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","CallerIDName":"","content":"","CallerIDNum":"","Context":"voipgrid_in","Exten":""}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31613925xxx"}, + {"Event":"Dial","SubEvent":"Begin","Channel":"Local/+31613925xxx@world_out-00000037;2","UniqueID":"ua0-acc-1511536965.156","Privilege":"call,all","CallerIDName":"","DestUniqueID":"ua0-acc-1511536965.157","ConnectedLineNum":"+31613925xxx","Destination":"SIP/voipgrid-siproute-dev-0000002d","content":"","CallerIDNum":"+31853030900","Dialstring":"+31613925xxx@voipgrid-siproute-dev","ConnectedLineName":""}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","content":"","OriginalState":"Up","Clone":"SIP/126680005-0000002c","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","content":"","Newname":"SIP/126680005-0000002c"}, + {"Event":"Rename","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","content":"","Newname":"SIP/126680005-0000002c"}, + {"Event":"Rename","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","content":"","Newname":"Local/ID730651@osvpi_route_phoneaccount-00000035;1"}, + {"Event":"NewCallerid","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"217"}, + {"Event":"Bridge","Channel1":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","Uniqueid1":"ua0-acc-1511536963.151","CallerID1":"217","Channel2":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid2":"ua0-acc-1511536963.152","CallerID2":"217","Privilege":"call,all","Bridgestate":"Unlink","content":"","Bridgetype":"core"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/217@osvpi_account_call_int_permitted-00000034;1","content":"","OriginalState":"Up","Clone":"SIP/126680005-0000002c","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","content":"","Newname":"SIP/126680005-0000002c"}, + {"Event":"Rename","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","content":"","Newname":"SIP/126680005-0000002c"}, + {"Event":"Rename","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","content":"","Newname":"Local/217@osvpi_account_call_int_permitted-00000034;1"}, + {"Event":"NewCallerid","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400581"}, + {"Event":"Bridge","Channel1":"Local/217@osvpi_account_call_int_permitted-00000034;2","Uniqueid1":"ua0-acc-1511536963.149","CallerID1":"217","Channel2":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid2":"ua0-acc-1511536963.150","CallerID2":"217","Privilege":"call,all","Bridgestate":"Unlink","content":"","Bridgetype":"core"}, + {"Event":"HangupRequest","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","Uniqueid":"ua0-acc-1511536963.151","Privilege":"call,all","content":""}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;1","Uniqueid":"ua0-acc-1511536963.152","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"217","CallerIDNum":"217","Cause-txt":"Normal Clearing","ConnectedLineName":"Calling...","Cause":"16"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","UniqueID":"ua0-acc-1511536963.151","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"SoftHangupRequest","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","Uniqueid":"ua0-acc-1511536963.151","Privilege":"call,all","content":"","Cause":"16"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/ID730651@osvpi_route_phoneaccount-00000035;2","Uniqueid":"ua0-acc-1511536963.151","Privilege":"call,all","CallerIDName":"Calling...","content":"","ConnectedLineNum":"217","CallerIDNum":"217","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"HangupRequest","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","Uniqueid":"ua0-acc-1511536963.149","Privilege":"call,all","content":""}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;1","Uniqueid":"ua0-acc-1511536963.150","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"217","CallerIDNum":"217","Cause-txt":"Normal Clearing","ConnectedLineName":"Calling...","Cause":"16"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","UniqueID":"ua0-acc-1511536963.149","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"SoftHangupRequest","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","Uniqueid":"ua0-acc-1511536963.149","Privilege":"call,all","content":"","Cause":"16"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/217@osvpi_account_call_int_permitted-00000034;2","Uniqueid":"ua0-acc-1511536963.149","Privilege":"call,all","CallerIDName":"Calling...","content":"","ConnectedLineNum":"ID400581","CallerIDNum":"217","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-dev-0000002d","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31853030900","CallerIDNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-00000037;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31853030900","CallerIDNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","ChannelState":"5","ChannelStateDesc":"Ringing","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31853030900","CallerIDNum":"ID400581"}, + {"Event":"RTCPSent","Privilege":"reporting,all","content":"","To":"217.21.195.34:5005","CumulativeLoss":"0","DLSR":"14671.2400 (sec)","IAJitter":"0.0022","SentPackets":"86","FractionLost":"0","SentOctets":"13760","OurSSRC":"416723453","SentNTP":"1511536975.0986787840","SentRTP":"13760","TheirLastSR":"0"}, + {"Event":"Newstate","Channel":"SIP/voipgrid-siproute-dev-0000002d","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31853030900","CallerIDNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-00000037;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536965.156","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"+31853030900"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-00000037;2","Uniqueid1":"ua0-acc-1511536965.156","CallerID1":"+31853030900","Channel2":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid2":"ua0-acc-1511536965.157","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgestate":"Link","content":"","Bridgetype":"core"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@world_out-00000037;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31853030900","CallerIDNum":"+31613925xxx"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536965.154","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"ID400581","CallerIDNum":"+31853030900"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/+31613925xxx@world_out-00000037;1","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","Uniqueid1":"ua0-acc-1511536965.154","CallerID1":"+31853030900","Channel2":"Local/+31613925xxx@world_out-00000037;1","Uniqueid2":"ua0-acc-1511536965.155","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgestate":"Link","content":"","Bridgetype":"core"}, + {"Event":"Newstate","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","ChannelState":"6","ChannelStateDesc":"Up","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineName":"","ConnectedLineNum":"+31853030900","CallerIDNum":"ID400581"}, + {"Event":"NewAccountCode","AccountCode":"12668","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","content":"","OldAccountCode":"12668"}, + {"Event":"Bridge","Channel1":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid1":"ua0-acc-1511536963.146","CallerID1":"+31853030900","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid2":"ua0-acc-1511536965.153","CallerID2":"ID400581","Privilege":"call,all","Bridgestate":"Link","content":"","Bridgetype":"core"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31613925xxx@world_out-00000037;1","content":"","OriginalState":"Up","Clone":"SIP/voipgrid-siproute-dev-0000002d","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","content":"","Newname":"SIP/voipgrid-siproute-dev-0000002d"}, + {"Event":"Rename","Channel":"Local/+31613925xxx@world_out-00000037;1","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","content":"","Newname":"SIP/voipgrid-siproute-dev-0000002d"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","content":"","Newname":"Local/+31613925xxx@world_out-00000037;1"}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"+31613925xxx"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@world_out-00000037;2","Uniqueid1":"ua0-acc-1511536965.156","CallerID1":"+31853030900","Channel2":"Local/+31613925xxx@world_out-00000037;1","Uniqueid2":"ua0-acc-1511536965.157","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgestate":"Unlink","content":"","Bridgetype":"core"}, + {"Event":"Masquerade","Privilege":"call,all","Original":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","content":"","OriginalState":"Up","Clone":"SIP/voipgrid-siproute-dev-0000002d","CloneState":"Up"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","content":"","Newname":"SIP/voipgrid-siproute-dev-0000002d"}, + {"Event":"Rename","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","content":"","Newname":"SIP/voipgrid-siproute-dev-0000002d"}, + {"Event":"Rename","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","content":"","Newname":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1"}, + {"Event":"NewCallerid","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","CallerIDName":"","CID-CallingPres":"0 (Presentation Allowed, Not Screened)","content":"","CallerIDNum":"ID400581"}, + {"Event":"Bridge","Channel1":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","Uniqueid1":"ua0-acc-1511536965.154","CallerID1":"+31853030900","Channel2":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid2":"ua0-acc-1511536965.155","CallerID2":"+31613925xxx","Privilege":"call,all","Bridgestate":"Unlink","content":"","Bridgetype":"core"}, + {"Event":"HangupRequest","Channel":"Local/+31613925xxx@world_out-00000037;2","Uniqueid":"ua0-acc-1511536965.156","Privilege":"call,all","content":""}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/+31613925xxx@world_out-00000037;1","Uniqueid":"ua0-acc-1511536965.157","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"+31853030900","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@world_out-00000037;2","UniqueID":"ua0-acc-1511536965.156","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"SoftHangupRequest","Channel":"Local/+31613925xxx@world_out-00000037;2","Uniqueid":"ua0-acc-1511536965.156","Privilege":"call,all","content":"","Cause":"16"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/+31613925xxx@world_out-00000037;2","Uniqueid":"ua0-acc-1511536965.156","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"+31613925xxx","CallerIDNum":"+31853030900","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"HangupRequest","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","Uniqueid":"ua0-acc-1511536965.154","Privilege":"call,all","content":""}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;1","Uniqueid":"ua0-acc-1511536965.155","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"+31853030900","CallerIDNum":"+31613925xxx","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","UniqueID":"ua0-acc-1511536965.154","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"SoftHangupRequest","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","Uniqueid":"ua0-acc-1511536965.154","Privilege":"call,all","content":"","Cause":"16"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/+31613925xxx@osvpi_world_call_permittedplus-00000036;2","Uniqueid":"ua0-acc-1511536965.154","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"ID400581","CallerIDNum":"+31853030900","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"RTCPSent","Privilege":"reporting,all","content":"","To":"217.21.195.34:5005","CumulativeLoss":"0","DLSR":"14676.2400 (sec)","IAJitter":"0.0021","SentPackets":"334","FractionLost":"0","SentOctets":"53440","OurSSRC":"767355108","SentNTP":"1511536980.0983085056","SentRTP":"2113514960","TheirLastSR":"0"}, + {"Event":"RTCPSent","Privilege":"reporting,all","content":"","To":"62.180.246.11:39733","CumulativeLoss":"0","DLSR":"14679.8200 (sec)","IAJitter":"0.0005","SentPackets":"251","FractionLost":"0","SentOctets":"40160","OurSSRC":"265539484","SentNTP":"1511536983.3362594816","SentRTP":"571200","TheirLastSR":"0"}, + {"Event":"RTCPSent","Privilege":"reporting,all","content":"","To":"217.21.195.34:5005","CumulativeLoss":"0","DLSR":"14681.2400 (sec)","IAJitter":"0.0020","SentPackets":"584","FractionLost":"0","SentOctets":"93440","OurSSRC":"767355108","SentNTP":"1511536985.0985235456","SentRTP":"2113554960","TheirLastSR":"0"}, + {"Event":"RTCPReceived","Privilege":"reporting,all","ReceptionReports":"1","content":"","LastSR":"47063.827955493904318464","DLSR":"1.8670(sec)","RTT":"12(sec)","From":"62.180.246.11:39733","FractionLost":"0","IAJitter":"16","PT":"200(Sender Report)","PacketsLost":"0","HighestSequence":"14315","SenderSSRC":"0","SequenceNumberCycles":"0"}, + {"Event":"HangupRequest","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","content":""}, + {"Event":"Bridge","Channel1":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid1":"ua0-acc-1511536963.146","CallerID1":"+31853030900","Channel2":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid2":"ua0-acc-1511536965.153","CallerID2":"ID400581","Privilege":"call,all","Bridgestate":"Unlink","content":"","Bridgetype":"core"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"SIP/voipgrid-siproute-dev-0000002d","Uniqueid":"ua0-acc-1511536965.153","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"+31853030900","CallerIDNum":"ID400581","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","UniqueID":"ua0-acc-1511536963.146","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"SoftHangupRequest","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","content":"","Cause":"16"}, + {"Event":"HangupRequest","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","content":""}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;1","Uniqueid":"ua0-acc-1511536963.146","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"","CallerIDNum":"+31853030900","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}, + {"Event":"Bridge","Channel1":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid1":"ua0-acc-1511536963.147","CallerID1":"217","Channel2":"SIP/126680005-0000002c","Uniqueid2":"ua0-acc-1511536963.148","CallerID2":"ID400581","Privilege":"call,all","Bridgestate":"Unlink","content":"","Bridgetype":"core"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"SIP/126680005-0000002c","Uniqueid":"ua0-acc-1511536963.148","Privilege":"call,all","CallerIDName":"","content":"","ConnectedLineNum":"217","CallerIDNum":"ID400581","Cause-txt":"Normal Clearing","ConnectedLineName":"Calling...","Cause":"16"}, + {"Event":"Dial","SubEvent":"End","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","UniqueID":"ua0-acc-1511536963.147","Privilege":"call,all","content":"","DialStatus":"ANSWER"}, + {"Event":"SoftHangupRequest","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","content":"","Cause":"16"}, + {"Event":"Hangup","AccountCode":"12668","Channel":"Local/ID400581@osvpi_proc_connectab_ctd-00000033;2","Uniqueid":"ua0-acc-1511536963.147","Privilege":"call,all","CallerIDName":"Calling...","content":"","ConnectedLineNum":"","CallerIDNum":"217","Cause-txt":"Normal Clearing","ConnectedLineName":"","Cause":"16"}] diff --git a/tests/fixtures/connectab/ctd-attn-xfer.json b/tests/fixtures/connectab/ctd-attn-xfer.json new file mode 100644 index 0000000..d34521d --- /dev/null +++ b/tests/fixtures/connectab/ctd-attn-xfer.json @@ -0,0 +1,160 @@ +[ + {"Event": "FullyBooted", "Privilege": "system,all", "content": "", "Status": "Fully Booted"}, + {"Event": "FullyBooted", "Privilege": "system,all", "content": "", "Status": "Fully Booted"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "Exten": "ID400681", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_proc_connectab_ctd", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778720.1900", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Exten": "ID400681", "CallerIDNum": "", "ChannelState": "4", "CallerIDName": "", "Context": "osvpi_proc_connectab_ctd", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513778720.1901", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778720.1900", "AccountCode": "12668", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1900", "CallerIDName": "", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "CallerIDNum": "", "content": "", "CID-CallingPres": "67 (Number Unavailable)"}, + {"Privilege": "call,all", "Event": "LocalBridge", "Uniqueid1": "ua0-acc-1513778720.1900", "Uniqueid2": "ua0-acc-1513778720.1901", "Exten": "ID400681", "Channel2": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "LocalOptimization": "No", "content": "", "Context": "osvpi_proc_connectab_ctd"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778720.1901", "OldAccountCode": "12668", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1901", "CallerIDName": "Calling...", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CallerIDNum": "", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1901", "CallerIDName": "Calling...", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CallerIDNum": "217", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "Exten": "217", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_account_call_int_permitted", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778720.1902", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "Exten": "217", "CallerIDNum": "", "ChannelState": "4", "CallerIDName": "", "Context": "osvpi_account_call_int_permitted", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513778720.1903", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1902", "CallerIDName": "", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "CallerIDNum": "ID400681", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "LocalBridge", "Uniqueid1": "ua0-acc-1513778720.1902", "Uniqueid2": "ua0-acc-1513778720.1903", "Exten": "217", "Channel2": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "Channel1": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "LocalOptimization": "Yes", "content": "", "Context": "osvpi_account_call_int_permitted"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "", "CallerIDNum": "217", "Dialstring": "217@osvpi_account_call_int_permitted", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CallerIDName": "Calling...", "DestUniqueID": "ua0-acc-1513778720.1902", "Destination": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778720.1901", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "Exten": "ID730651", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_route_phoneaccount", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778720.1904", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "Exten": "ID730651", "CallerIDNum": "", "ChannelState": "4", "CallerIDName": "", "Context": "osvpi_route_phoneaccount", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513778720.1905", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1904", "CallerIDName": "", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "CallerIDNum": "217", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "LocalBridge", "Uniqueid1": "ua0-acc-1513778720.1904", "Uniqueid2": "ua0-acc-1513778720.1905", "Exten": "ID730651", "Channel2": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "Channel1": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "LocalOptimization": "Yes", "content": "", "Context": "osvpi_route_phoneaccount"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "ID400681", "CallerIDNum": "217", "Dialstring": "ID730651@osvpi_route_phoneaccount", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "CallerIDName": "Calling...", "DestUniqueID": "ua0-acc-1513778720.1904", "Destination": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778720.1903", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "SIP/126680005-000001fa", "Exten": "", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_account", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778720.1906", "AccountCode": "126680005", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1906", "CallerIDName": "", "Channel": "SIP/126680005-000001fa", "CallerIDNum": "217", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "217", "CallerIDNum": "217", "Dialstring": "126680005/126680005/195.35.115.203!!217", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "CallerIDName": "Calling...", "DestUniqueID": "ua0-acc-1513778720.1906", "Destination": "SIP/126680005-000001fa", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778720.1905", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778720.1906", "content": "", "ConnectedLineName": "Calling...", "CallerIDName": "", "Channel": "SIP/126680005-000001fa", "CallerIDNum": "217", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778720.1904", "content": "", "ConnectedLineName": "Calling...", "CallerIDName": "", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "CallerIDNum": "217", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778720.1902", "content": "", "ConnectedLineName": "Calling...", "CallerIDName": "", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "CallerIDNum": "ID400681", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778720.1900", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "CallerIDNum": "", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1906", "content": "", "ConnectedLineName": "Calling...", "CallerIDName": "", "Channel": "SIP/126680005-000001fa", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1905", "content": "", "ConnectedLineName": "", "CallerIDName": "Calling...", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778720.1906", "OldAccountCode": "12668", "Channel": "SIP/126680005-000001fa", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1905", "CallerID2": "217", "Uniqueid2": "ua0-acc-1513778720.1906", "CallerID1": "217", "Channel2": "SIP/126680005-000001fa", "Channel1": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1904", "content": "", "ConnectedLineName": "Calling...", "CallerIDName": "", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "ID400681", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1903", "content": "", "ConnectedLineName": "", "CallerIDName": "Calling...", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778720.1904", "OldAccountCode": "12668", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1903", "CallerID2": "217", "Uniqueid2": "ua0-acc-1513778720.1904", "CallerID1": "217", "Channel2": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "Channel1": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1902", "content": "", "ConnectedLineName": "Calling...", "CallerIDName": "", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "CallerIDNum": "ID400681", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1901", "content": "", "ConnectedLineName": "", "CallerIDName": "Calling...", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778720.1902", "OldAccountCode": "12668", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1901", "CallerID2": "ID400681", "Uniqueid2": "ua0-acc-1513778720.1902", "CallerID1": "217", "Channel2": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778720.1900", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "CallerIDNum": "", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778720.1900", "OldAccountCode": "12668", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Masquerade", "Clone": "SIP/126680005-000001fa", "CloneState": "Up", "OriginalState": "Up", "content": "", "Original": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1"}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1906", "Newname": "SIP/126680005-000001fa", "Channel": "SIP/126680005-000001fa", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1904", "Newname": "SIP/126680005-000001fa", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1906", "Newname": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "Channel": "SIP/126680005-000001fa", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1904", "CallerIDName": "", "Channel": "SIP/126680005-000001fa", "CallerIDNum": "217", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1905", "CallerID2": "217", "Uniqueid2": "ua0-acc-1513778720.1906", "CallerID1": "217", "Channel2": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "Channel1": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Masquerade", "Clone": "SIP/126680005-000001fa", "CloneState": "Up", "OriginalState": "Up", "content": "", "Original": "Local/217@osvpi_account_call_int_permitted-000002ba;1"}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1904", "Newname": "SIP/126680005-000001fa", "Channel": "SIP/126680005-000001fa", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1902", "Newname": "SIP/126680005-000001fa", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1904", "Newname": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "Channel": "SIP/126680005-000001fa", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1902", "CallerIDName": "", "Channel": "SIP/126680005-000001fa", "CallerIDNum": "ID400681", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1903", "CallerID2": "217", "Uniqueid2": "ua0-acc-1513778720.1904", "CallerID1": "217", "Channel2": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "Channel1": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;1", "CallerIDName": "", "ConnectedLineName": "Calling...", "Uniqueid": "ua0-acc-1513778720.1906", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "SubEvent": "End", "UniqueID": "ua0-acc-1513778720.1905", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/ID730651@osvpi_route_phoneaccount-000002bb;2", "CallerIDName": "Calling...", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778720.1905", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;1", "CallerIDName": "", "ConnectedLineName": "Calling...", "Uniqueid": "ua0-acc-1513778720.1904", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "SubEvent": "End", "UniqueID": "ua0-acc-1513778720.1903", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "ID400681", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/217@osvpi_account_call_int_permitted-000002ba;2", "CallerIDName": "Calling...", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778720.1903", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778720.1900", "CallerIDName": "", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "CallerIDNum": "217", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "Exten": "218", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_account_call_int_permitted", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778722.1907", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "Exten": "218", "CallerIDNum": "", "ChannelState": "4", "CallerIDName": "", "Context": "osvpi_account_call_int_permitted", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513778722.1908", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778722.1907", "CallerIDName": "", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "CallerIDNum": "ID400681", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "LocalBridge", "Uniqueid1": "ua0-acc-1513778722.1907", "Uniqueid2": "ua0-acc-1513778722.1908", "Exten": "218", "Channel2": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "Channel1": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "LocalOptimization": "Yes", "content": "", "Context": "osvpi_account_call_int_permitted"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "", "CallerIDNum": "217", "Dialstring": "218@osvpi_account_call_int_permitted", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "CallerIDName": "", "DestUniqueID": "ua0-acc-1513778722.1907", "Destination": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778720.1900", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "Exten": "ID730661", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_route_phoneaccount", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778722.1909", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "Exten": "ID730661", "CallerIDNum": "", "ChannelState": "4", "CallerIDName": "", "Context": "osvpi_route_phoneaccount", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513778722.1910", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778722.1909", "CallerIDName": "", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "CallerIDNum": "218", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "LocalBridge", "Uniqueid1": "ua0-acc-1513778722.1909", "Uniqueid2": "ua0-acc-1513778722.1910", "Exten": "ID730661", "Channel2": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "Channel1": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "LocalOptimization": "Yes", "content": "", "Context": "osvpi_route_phoneaccount"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "ID400681", "CallerIDNum": "217", "Dialstring": "ID730661@osvpi_route_phoneaccount", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "CallerIDName": "", "DestUniqueID": "ua0-acc-1513778722.1909", "Destination": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778722.1908", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "SIP/126680010-000001fb", "Exten": "", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "osvpi_account", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778723.1911", "AccountCode": "126680010", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778723.1911", "CallerIDName": "", "Channel": "SIP/126680010-000001fb", "CallerIDNum": "218", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "218", "CallerIDNum": "217", "Dialstring": "126680010/126680010/195.35.115.203!!217", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "CallerIDName": "", "DestUniqueID": "ua0-acc-1513778723.1911", "Destination": "SIP/126680010-000001fb", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778722.1910", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778723.1911", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "SIP/126680010-000001fb", "CallerIDNum": "218", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778722.1909", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "CallerIDNum": "218", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778722.1907", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "CallerIDNum": "ID400681", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778723.1911", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "SIP/126680010-000001fb", "CallerIDNum": "218", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "218", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778722.1910", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778723.1911", "OldAccountCode": "12668", "Channel": "SIP/126680010-000001fb", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778722.1910", "CallerID2": "218", "Uniqueid2": "ua0-acc-1513778723.1911", "CallerID1": "217", "Channel2": "SIP/126680010-000001fb", "Channel1": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778722.1909", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "CallerIDNum": "218", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "ID400681", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778722.1908", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "CallerIDNum": "217", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778722.1909", "OldAccountCode": "12668", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778722.1908", "CallerID2": "218", "Uniqueid2": "ua0-acc-1513778722.1909", "CallerID1": "217", "Channel2": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "Channel1": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "217", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778722.1907", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "CallerIDNum": "ID400681", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778722.1907", "OldAccountCode": "12668", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "content": "", "AccountCode": "12668"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1900", "CallerID2": "ID400681", "Uniqueid2": "ua0-acc-1513778722.1907", "CallerID1": "217", "Channel2": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Masquerade", "Clone": "SIP/126680010-000001fb", "CloneState": "Up", "OriginalState": "Up", "content": "", "Original": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1"}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778723.1911", "Newname": "SIP/126680010-000001fb", "Channel": "SIP/126680010-000001fb", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778722.1909", "Newname": "SIP/126680010-000001fb", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778723.1911", "Newname": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "Channel": "SIP/126680010-000001fb", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778722.1909", "CallerIDName": "", "Channel": "SIP/126680010-000001fb", "CallerIDNum": "218", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778722.1910", "CallerID2": "218", "Uniqueid2": "ua0-acc-1513778723.1911", "CallerID1": "217", "Channel2": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "Channel1": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Masquerade", "Clone": "SIP/126680010-000001fb", "CloneState": "Up", "OriginalState": "Up", "content": "", "Original": "Local/218@osvpi_account_call_int_permitted-000002bc;1"}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778722.1909", "Newname": "SIP/126680010-000001fb", "Channel": "SIP/126680010-000001fb", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778722.1907", "Newname": "SIP/126680010-000001fb", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778722.1909", "Newname": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "Channel": "SIP/126680010-000001fb", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778722.1907", "CallerIDName": "", "Channel": "SIP/126680010-000001fb", "CallerIDNum": "ID400681", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778722.1908", "CallerID2": "218", "Uniqueid2": "ua0-acc-1513778722.1909", "CallerID1": "217", "Channel2": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "Channel1": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "218", "Cause-txt": "Normal Clearing", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;1", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778723.1911", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "SubEvent": "End", "UniqueID": "ua0-acc-1513778722.1910", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "218", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/ID730661@osvpi_route_phoneaccount-000002bd;2", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778722.1910", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "218", "Cause-txt": "Normal Clearing", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;1", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778722.1909", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "SubEvent": "End", "UniqueID": "ua0-acc-1513778722.1908", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "ID400681", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/218@osvpi_account_call_int_permitted-000002bc;2", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778722.1908", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1901", "CallerID2": "ID400681", "Uniqueid2": "ua0-acc-1513778720.1902", "CallerID1": "217", "Channel2": "SIP/126680005-000001fa", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1901", "CallerID2": "ID400681", "Uniqueid2": "ua0-acc-1513778720.1902", "CallerID1": "217", "Channel2": "SIP/126680005-000001fa", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "SIP/126680005-000001fc", "Exten": "0612345678", "CallerIDNum": "126680005", "ChannelState": "0", "CallerIDName": "Test SPA 1", "Context": "osvpi_account", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778732.1912", "AccountCode": "126680005", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "", "ChannelState": "4", "Uniqueid": "ua0-acc-1513778732.1912", "content": "", "ConnectedLineName": "", "CallerIDName": "Test SPA 1", "Channel": "SIP/126680005-000001fc", "CallerIDNum": "126680005", "ChannelStateDesc": "Ring"}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778732.1912", "CallerIDName": "Test SPA 1", "Channel": "SIP/126680005-000001fc", "CallerIDNum": "+31853030900", "content": "", "CID-CallingPres": "1 (Presentation Allowed, Passed Screen)"}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778732.1912", "CallerIDName": "", "Channel": "SIP/126680005-000001fc", "CallerIDNum": "+31853030900", "content": "", "CID-CallingPres": "1 (Presentation Allowed, Passed Screen)"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/+31612345678@world_out-000002be;1", "Exten": "+31612345678", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "world_out", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778732.1913", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "Local/+31612345678@world_out-000002be;2", "Exten": "+31612345678", "CallerIDNum": "", "ChannelState": "4", "CallerIDName": "", "Context": "world_out", "ChannelStateDesc": "Ring", "Uniqueid": "ua0-acc-1513778732.1914", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778732.1913", "CallerIDName": "", "Channel": "Local/+31612345678@world_out-000002be;1", "CallerIDNum": "+31612345678", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "LocalBridge", "Uniqueid1": "ua0-acc-1513778732.1913", "Uniqueid2": "ua0-acc-1513778732.1914", "Exten": "+31612345678", "Channel2": "Local/+31612345678@world_out-000002be;2", "Channel1": "Local/+31612345678@world_out-000002be;1", "LocalOptimization": "Yes", "content": "", "Context": "world_out"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "", "CallerIDNum": "+31853030900", "Dialstring": "+31612345678@world_out", "Channel": "SIP/126680005-000001fc", "CallerIDName": "", "DestUniqueID": "ua0-acc-1513778732.1913", "Destination": "Local/+31612345678@world_out-000002be;1", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778732.1912", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newchannel", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "Exten": "", "CallerIDNum": "", "ChannelState": "0", "CallerIDName": "", "Context": "voipgrid_in", "ChannelStateDesc": "Down", "Uniqueid": "ua0-acc-1513778732.1915", "AccountCode": "", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778732.1915", "CallerIDName": "", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "CallerIDNum": "+31612345678", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Dial", "ConnectedLineNum": "+31612345678", "CallerIDNum": "+31853030900", "Dialstring": "+31612345678@voipgrid-siproute-dev", "Channel": "Local/+31612345678@world_out-000002be;2", "CallerIDName": "", "DestUniqueID": "ua0-acc-1513778732.1915", "Destination": "SIP/voipgrid-siproute-dev-000001fd", "content": "", "ConnectedLineName": "", "UniqueID": "ua0-acc-1513778732.1914", "SubEvent": "Begin"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "+31853030900", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778732.1915", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "CallerIDNum": "+31612345678", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "+31853030900", "ChannelState": "5", "Uniqueid": "ua0-acc-1513778732.1913", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/+31612345678@world_out-000002be;1", "CallerIDNum": "+31612345678", "ChannelStateDesc": "Ringing"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "+31853030900", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778732.1915", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "CallerIDNum": "+31612345678", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "+31612345678", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778732.1914", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/+31612345678@world_out-000002be;2", "CallerIDNum": "+31853030900", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778732.1915", "OldAccountCode": "126680005", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "content": "", "AccountCode": "126680005"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778732.1914", "CallerID2": "+31612345678", "Uniqueid2": "ua0-acc-1513778732.1915", "CallerID1": "+31853030900", "Channel2": "SIP/voipgrid-siproute-dev-000001fd", "Channel1": "Local/+31612345678@world_out-000002be;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "+31853030900", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778732.1913", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "Local/+31612345678@world_out-000002be;1", "CallerIDNum": "+31612345678", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "Newstate", "ConnectedLineNum": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513778732.1912", "content": "", "ConnectedLineName": "", "CallerIDName": "", "Channel": "SIP/126680005-000001fc", "CallerIDNum": "+31853030900", "ChannelStateDesc": "Up"}, + {"Privilege": "call,all", "Event": "NewAccountCode", "Uniqueid": "ua0-acc-1513778732.1913", "OldAccountCode": "126680005", "Channel": "Local/+31612345678@world_out-000002be;1", "content": "", "AccountCode": "126680005"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778732.1912", "CallerID2": "+31612345678", "Uniqueid2": "ua0-acc-1513778732.1913", "CallerID1": "+31853030900", "Channel2": "Local/+31612345678@world_out-000002be;1", "Channel1": "SIP/126680005-000001fc", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Masquerade", "Clone": "SIP/voipgrid-siproute-dev-000001fd", "CloneState": "Up", "OriginalState": "Up", "content": "", "Original": "Local/+31612345678@world_out-000002be;1"}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778732.1915", "Newname": "SIP/voipgrid-siproute-dev-000001fd", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778732.1913", "Newname": "SIP/voipgrid-siproute-dev-000001fd", "Channel": "Local/+31612345678@world_out-000002be;1", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778732.1915", "Newname": "Local/+31612345678@world_out-000002be;1", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778732.1913", "CallerIDName": "", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "CallerIDNum": "+31612345678", "content": "", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778732.1914", "CallerID2": "+31612345678", "Uniqueid2": "ua0-acc-1513778732.1915", "CallerID1": "+31853030900", "Channel2": "Local/+31612345678@world_out-000002be;1", "Channel1": "Local/+31612345678@world_out-000002be;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "+31853030900", "CallerIDNum": "+31612345678", "Cause-txt": "Normal Clearing", "Channel": "Local/+31612345678@world_out-000002be;1", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778732.1915", "AccountCode": "126680005", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/+31612345678@world_out-000002be;2", "SubEvent": "End", "UniqueID": "ua0-acc-1513778732.1914", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "+31612345678", "CallerIDNum": "+31853030900", "Cause-txt": "Normal Clearing", "Channel": "Local/+31612345678@world_out-000002be;2", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778732.1914", "AccountCode": "126680005", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "SIP-Callid": "451fb6ca4819ed6050cdda5a71e3590d@acceptatie.voipgrid.nl", "Event": "Transfer", "Channel": "SIP/126680005-000001fa", "Uniqueid": "ua0-acc-1513778720.1902", "TransferType": "Attended", "TransferMethod": "SIP", "TargetUniqueid": "ua0-acc-1513778732.1912", "content": "", "TargetChannel": "SIP/126680005-000001fc"}, + {"Privilege": "call,all", "Event": "Masquerade", "Clone": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CloneState": "Up", "OriginalState": "Up", "content": "", "Original": "SIP/126680005-000001fc"}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1901", "Newname": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778732.1912", "Newname": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Channel": "SIP/126680005-000001fc", "content": ""}, + {"Privilege": "call,all", "Event": "Rename", "Uniqueid": "ua0-acc-1513778720.1901", "Newname": "SIP/126680005-000001fc", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "content": ""}, + {"Privilege": "call,all", "Event": "NewCallerid", "Uniqueid": "ua0-acc-1513778732.1912", "CallerIDName": "Calling...", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CallerIDNum": "217", "content": "", "CID-CallingPres": "1 (Presentation Allowed, Passed Screen)"}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1901", "CallerID2": "ID400681", "Uniqueid2": "ua0-acc-1513778720.1902", "CallerID1": "+31853030900", "Channel2": "SIP/126680005-000001fa", "Channel1": "SIP/126680005-000001fc", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "ID400681", "Cause-txt": "Normal Clearing", "Channel": "SIP/126680005-000001fa", "CallerIDName": "", "ConnectedLineName": "Calling...", "Uniqueid": "ua0-acc-1513778720.1902", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "SIP/126680005-000001fc", "SubEvent": "End", "UniqueID": "ua0-acc-1513778720.1901", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "", "CallerIDNum": "+31853030900", "Cause-txt": "Normal Clearing", "Channel": "SIP/126680005-000001fc", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778720.1901", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778732.1912", "CallerID2": "+31612345678", "Uniqueid2": "ua0-acc-1513778732.1913", "CallerID1": "217", "Channel2": "SIP/voipgrid-siproute-dev-000001fd", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778732.1912", "CallerID2": "+31612345678", "Uniqueid2": "ua0-acc-1513778732.1913", "CallerID1": "217", "Channel2": "SIP/voipgrid-siproute-dev-000001fd", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Bridgetype": "core", "Bridgestate": "Link", "content": ""}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778732.1912", "CallerID2": "+31612345678", "Uniqueid2": "ua0-acc-1513778732.1913", "CallerID1": "217", "Channel2": "SIP/voipgrid-siproute-dev-000001fd", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "217", "CallerIDNum": "+31612345678", "Cause-txt": "Normal Clearing", "Channel": "SIP/voipgrid-siproute-dev-000001fd", "CallerIDName": "", "ConnectedLineName": "Calling...", "Uniqueid": "ua0-acc-1513778732.1913", "AccountCode": "126680005", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "SubEvent": "End", "UniqueID": "ua0-acc-1513778732.1912", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "", "CallerIDNum": "217", "Cause-txt": "Normal Clearing", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;2", "CallerIDName": "Calling...", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778732.1912", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Bridge", "Uniqueid1": "ua0-acc-1513778720.1900", "CallerID2": "ID400681", "Uniqueid2": "ua0-acc-1513778722.1907", "CallerID1": "", "Channel2": "SIP/126680010-000001fb", "Channel1": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "Bridgetype": "core", "Bridgestate": "Unlink", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "", "CallerIDNum": "ID400681", "Cause-txt": "Normal Clearing", "Channel": "SIP/126680010-000001fb", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778722.1907", "AccountCode": "12668", "Cause": "16", "content": ""}, + {"Privilege": "call,all", "Event": "Dial", "DialStatus": "ANSWER", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "SubEvent": "End", "UniqueID": "ua0-acc-1513778720.1900", "content": ""}, + {"Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "", "CallerIDNum": "", "Cause-txt": "Normal Clearing", "Channel": "Local/ID400681@osvpi_proc_connectab_ctd-000002b9;1", "CallerIDName": "", "ConnectedLineName": "", "Uniqueid": "ua0-acc-1513778720.1900", "AccountCode": "12668", "Cause": "16", "content": ""} +] diff --git a/tests/fixtures/fixed/fixed_outbound_success.json b/tests/fixtures/fixed/fixed_outbound_success.json new file mode 100644 index 0000000..c28deb4 --- /dev/null +++ b/tests/fixtures/fixed/fixed_outbound_success.json @@ -0,0 +1,40 @@ +[ + {"content": "", "Status": "Fully Booted", "Event": "FullyBooted", "Privilege": "system,all"}, + {"content": "", "Status": "Fully Booted", "Event": "FullyBooted", "Privilege": "system,all"}, + {"ChannelState": "0", "ChannelStateDesc": "Down", "AccountCode": "126680010", "Event": "Newchannel", "Context": "osvpi_account", "Channel": "SIP/126680010-000001fe", "Uniqueid": "ua0-acc-1513784375.1916", "CallerIDNum": "126680010", "Privilege": "call,all", "content": "", "Exten": "0508009000", "CallerIDName": "Test SPA 2"}, + {"Channel": "SIP/126680010-000001fe", "ConnectedLineNum": "", "CallerIDNum": "126680010", "ChannelStateDesc": "Ring", "Privilege": "call,all", "content": "", "ChannelState": "4", "Uniqueid": "ua0-acc-1513784375.1916", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": "Test SPA 2"}, + {"Channel": "SIP/126680010-000001fe", "Uniqueid": "ua0-acc-1513784375.1916", "CID-CallingPres": "1 (Presentation Allowed, Passed Screen)", "Privilege": "call,all", "content": "", "CallerIDNum": "126680010", "Event": "NewCallerid", "CallerIDName": "Test SPA 1"}, + {"Channel": "SIP/126680010-000001fe", "Uniqueid": "ua0-acc-1513784375.1916", "CID-CallingPres": "1 (Presentation Allowed, Passed Screen)", "Privilege": "call,all", "content": "", "CallerIDNum": "+31853030900", "Event": "NewCallerid", "CallerIDName": "Test SPA 1"}, + {"Channel": "SIP/126680010-000001fe", "Uniqueid": "ua0-acc-1513784375.1916", "CID-CallingPres": "1 (Presentation Allowed, Passed Screen)", "Privilege": "call,all", "content": "", "CallerIDNum": "+31853030900", "Event": "NewCallerid", "CallerIDName": ""}, + {"ChannelState": "0", "ChannelStateDesc": "Down", "AccountCode": "", "Event": "Newchannel", "Context": "world_out", "Channel": "Local/+31508009000@world_out-000002bf;1", "Uniqueid": "ua0-acc-1513784375.1917", "CallerIDNum": "", "Privilege": "call,all", "content": "", "Exten": "+31508009000", "CallerIDName": ""}, + {"ChannelState": "4", "ChannelStateDesc": "Ring", "AccountCode": "", "Event": "Newchannel", "Context": "world_out", "Channel": "Local/+31508009000@world_out-000002bf;2", "Uniqueid": "ua0-acc-1513784375.1918", "CallerIDNum": "", "Privilege": "call,all", "content": "", "Exten": "+31508009000", "CallerIDName": ""}, + {"Channel": "Local/+31508009000@world_out-000002bf;1", "Uniqueid": "ua0-acc-1513784375.1917", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Privilege": "call,all", "content": "", "CallerIDNum": "+31508009000", "Event": "NewCallerid", "CallerIDName": ""}, + {"LocalOptimization": "Yes", "Channel1": "Local/+31508009000@world_out-000002bf;1", "Channel2": "Local/+31508009000@world_out-000002bf;2", "Uniqueid1": "ua0-acc-1513784375.1917", "Privilege": "call,all", "content": "", "Exten": "+31508009000", "Uniqueid2": "ua0-acc-1513784375.1918", "Event": "LocalBridge", "Context": "world_out"}, + {"Destination": "Local/+31508009000@world_out-000002bf;1", "ConnectedLineName": "", "SubEvent": "Begin", "Event": "Dial", "UniqueID": "ua0-acc-1513784375.1916", "Channel": "SIP/126680010-000001fe", "ConnectedLineNum": "", "CallerIDNum": "+31853030900", "Privilege": "call,all", "content": "", "DestUniqueID": "ua0-acc-1513784375.1917", "CallerIDName": "", "Dialstring": "+31508009000@world_out"}, + {"ChannelState": "0", "ChannelStateDesc": "Down", "AccountCode": "", "Event": "Newchannel", "Context": "voipgrid_in", "Channel": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid": "ua0-acc-1513784375.1919", "CallerIDNum": "", "Privilege": "call,all", "content": "", "Exten": "", "CallerIDName": ""}, + {"Channel": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid": "ua0-acc-1513784375.1919", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Privilege": "call,all", "content": "", "CallerIDNum": "+31508009000", "Event": "NewCallerid", "CallerIDName": ""}, + {"Destination": "SIP/voipgrid-siproute-dev-000001ff", "ConnectedLineName": "", "SubEvent": "Begin", "Event": "Dial", "UniqueID": "ua0-acc-1513784375.1918", "Channel": "Local/+31508009000@world_out-000002bf;2", "ConnectedLineNum": "+31508009000", "CallerIDNum": "+31853030900", "Privilege": "call,all", "content": "", "DestUniqueID": "ua0-acc-1513784375.1919", "CallerIDName": "", "Dialstring": "+31508009000@voipgrid-siproute-dev"}, + {"Channel": "SIP/voipgrid-siproute-dev-000001ff", "ConnectedLineNum": "+31853030900", "CallerIDNum": "+31508009000", "ChannelStateDesc": "Ringing", "Privilege": "call,all", "content": "", "ChannelState": "5", "Uniqueid": "ua0-acc-1513784375.1919", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": ""}, + {"Channel": "Local/+31508009000@world_out-000002bf;1", "ConnectedLineNum": "+31853030900", "CallerIDNum": "+31508009000", "ChannelStateDesc": "Ringing", "Privilege": "call,all", "content": "", "ChannelState": "5", "Uniqueid": "ua0-acc-1513784375.1917", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": ""}, + {"Channel": "SIP/voipgrid-siproute-dev-000001ff", "ConnectedLineNum": "+31853030900", "CallerIDNum": "+31508009000", "ChannelStateDesc": "Up", "Privilege": "call,all", "content": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513784375.1919", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": ""}, + {"Channel": "Local/+31508009000@world_out-000002bf;1", "ConnectedLineNum": "+31853030900", "CallerIDNum": "+31508009000", "ChannelStateDesc": "Up", "Privilege": "call,all", "content": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513784375.1917", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": ""}, + {"Channel": "SIP/126680010-000001fe", "ConnectedLineNum": "", "CallerIDNum": "+31853030900", "ChannelStateDesc": "Up", "Privilege": "call,all", "content": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513784375.1916", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": ""}, + {"Channel": "Local/+31508009000@world_out-000002bf;1", "Uniqueid": "ua0-acc-1513784375.1917", "Privilege": "call,all", "content": "", "AccountCode": "126680010", "Event": "NewAccountCode", "OldAccountCode": "126680010"}, + {"Bridgestate": "Link", "Channel1": "SIP/126680010-000001fe", "Channel2": "Local/+31508009000@world_out-000002bf;1", "Uniqueid1": "ua0-acc-1513784375.1916", "Privilege": "call,all", "content": "", "Bridgetype": "core", "CallerID2": "+31508009000", "Event": "Bridge", "Uniqueid2": "ua0-acc-1513784375.1917", "CallerID1": "+31853030900"}, + {"Channel": "Local/+31508009000@world_out-000002bf;2", "ConnectedLineNum": "+31508009000", "CallerIDNum": "+31853030900", "ChannelStateDesc": "Up", "Privilege": "call,all", "content": "", "ChannelState": "6", "Uniqueid": "ua0-acc-1513784375.1918", "ConnectedLineName": "", "Event": "Newstate", "CallerIDName": ""}, + {"Channel": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid": "ua0-acc-1513784375.1919", "Privilege": "call,all", "content": "", "AccountCode": "126680010", "Event": "NewAccountCode", "OldAccountCode": "126680010"}, + {"Bridgestate": "Link", "Channel1": "Local/+31508009000@world_out-000002bf;2", "Channel2": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid1": "ua0-acc-1513784375.1918", "Privilege": "call,all", "content": "", "Bridgetype": "core", "CallerID2": "+31508009000", "Event": "Bridge", "Uniqueid2": "ua0-acc-1513784375.1919", "CallerID1": "+31853030900"}, + {"Clone": "SIP/voipgrid-siproute-dev-000001ff", "CloneState": "Up", "content": "", "OriginalState": "Up", "Event": "Masquerade", "Original": "Local/+31508009000@world_out-000002bf;1", "Privilege": "call,all"}, + {"content": "", "Uniqueid": "ua0-acc-1513784375.1919", "Newname": "SIP/voipgrid-siproute-dev-000001ff", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-000001ff", "Event": "Rename"}, + {"content": "", "Uniqueid": "ua0-acc-1513784375.1917", "Newname": "SIP/voipgrid-siproute-dev-000001ff", "Privilege": "call,all", "Channel": "Local/+31508009000@world_out-000002bf;1", "Event": "Rename"}, + {"content": "", "Uniqueid": "ua0-acc-1513784375.1919", "Newname": "Local/+31508009000@world_out-000002bf;1", "Privilege": "call,all", "Channel": "SIP/voipgrid-siproute-dev-000001ff", "Event": "Rename"}, + {"Channel": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid": "ua0-acc-1513784375.1917", "CID-CallingPres": "0 (Presentation Allowed, Not Screened)", "Privilege": "call,all", "content": "", "CallerIDNum": "+31508009000", "Event": "NewCallerid", "CallerIDName": ""}, + {"Bridgestate": "Unlink", "Channel1": "Local/+31508009000@world_out-000002bf;2", "Channel2": "Local/+31508009000@world_out-000002bf;1", "Uniqueid1": "ua0-acc-1513784375.1918", "Privilege": "call,all", "content": "", "Bridgetype": "core", "CallerID2": "+31508009000", "Event": "Bridge", "Uniqueid2": "ua0-acc-1513784375.1919", "CallerID1": "+31853030900"}, + {"Cause-txt": "Normal Clearing", "Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "+31853030900", "Cause": "16", "Channel": "Local/+31508009000@world_out-000002bf;1", "Uniqueid": "ua0-acc-1513784375.1919", "CallerIDNum": "+31508009000", "AccountCode": "126680010", "content": "", "ConnectedLineName": "", "CallerIDName": ""}, + {"Channel": "Local/+31508009000@world_out-000002bf;2", "DialStatus": "ANSWER", "Privilege": "call,all", "content": "", "Event": "Dial", "SubEvent": "End", "UniqueID": "ua0-acc-1513784375.1918"}, + {"Cause-txt": "Normal Clearing", "Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "+31508009000", "Cause": "16", "Channel": "Local/+31508009000@world_out-000002bf;2", "Uniqueid": "ua0-acc-1513784375.1918", "CallerIDNum": "+31853030900", "AccountCode": "126680010", "content": "", "ConnectedLineName": "", "CallerIDName": ""}, + {"Bridgestate": "Unlink", "Channel1": "SIP/126680010-000001fe", "Channel2": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid1": "ua0-acc-1513784375.1916", "Privilege": "call,all", "content": "", "Bridgetype": "core", "CallerID2": "+31508009000", "Event": "Bridge", "Uniqueid2": "ua0-acc-1513784375.1917", "CallerID1": "+31853030900"}, + {"Cause-txt": "Normal Clearing", "Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "+31853030900", "Cause": "16", "Channel": "SIP/voipgrid-siproute-dev-000001ff", "Uniqueid": "ua0-acc-1513784375.1917", "CallerIDNum": "+31508009000", "AccountCode": "126680010", "content": "", "ConnectedLineName": "", "CallerIDName": ""}, + {"Channel": "SIP/126680010-000001fe", "DialStatus": "ANSWER", "Privilege": "call,all", "content": "", "Event": "Dial", "SubEvent": "End", "UniqueID": "ua0-acc-1513784375.1916"}, + {"Cause-txt": "Normal Clearing", "Privilege": "call,all", "Event": "Hangup", "ConnectedLineNum": "", "Cause": "16", "Channel": "SIP/126680010-000001fe", "Uniqueid": "ua0-acc-1513784375.1916", "CallerIDNum": "+31853030900", "AccountCode": "126680010", "content": "", "ConnectedLineName": "", "CallerIDName": ""} +] diff --git a/tests/test_acceptance.py b/tests/test_acceptance.py index a6d7950..8d633c3 100644 --- a/tests/test_acceptance.py +++ b/tests/test_acceptance.py @@ -35,7 +35,7 @@ def test_accepted(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) def test_multiple_accepted(self): """Test an accepted call via callgroup with two fixed destinations. @@ -72,7 +72,7 @@ def test_multiple_accepted(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) def test_multiple_complexaccepted(self): """Test an accepted call via callgroup with two fixed destinations. @@ -110,7 +110,7 @@ def test_multiple_complexaccepted(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) def test_notaccepted(self): """Test a not accepted but answered call. @@ -134,7 +134,7 @@ def test_notaccepted(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) def test_deny(self): """Test a denied call. @@ -158,7 +158,7 @@ def test_deny(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) def test_timeout(self): """Test a callgroup with acceptance, nobody picks up. @@ -182,4 +182,4 @@ def test_timeout(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) diff --git a/tests/test_connectab.py b/tests/test_connectab.py new file mode 100644 index 0000000..a18a0b0 --- /dev/null +++ b/tests/test_connectab.py @@ -0,0 +1,325 @@ +from cacofonisk.callerid import CallerId +from .replaytest import ChannelEventsTestCase + + +class TestConnectab(ChannelEventsTestCase): + + def test_account_world(self): + """ + Click-to-dial call between a phoneaccount and an external number. + + 217 is dialed, + 217 picks up, + +31613925xxx is dialed + +31613925xxx picks up + +31613925xxx hangs up + """ + events = self.run_and_get_events('fixtures/connectab/ctd-account-world.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua0-acc-1511536963.147', + 'caller': CallerId(code=126680005, number='+31853030900', is_public=True), + 'to_number': '+31613925xxx', + 'targets': [CallerId(code=0, number='+31613925xxx', is_public=True)], + }), + ('on_up', { + 'call_id': 'ua0-acc-1511536963.147', + 'caller': CallerId(code=126680005, number='+31853030900', is_public=True), + 'to_number': '+31613925xxx', + 'callee': CallerId(code=0, number='+31613925xxx', is_public=True), + }), + ('on_hangup', { + 'call_id': 'ua0-acc-1511536963.147', + 'caller': CallerId(code=126680005, number='+31853030900', is_public=True), + 'to_number': '+31613925xxx', + 'reason': 'completed', + }), + )) + + self.assertEqual(expected_events, events) + + def test_account_account(self): + """ + Click-to-dial call between a phoneaccount and an external number. + + 203 is dialed, + 203 picks up, + 202 is dialed + 202 picks up + 203 hangs up + """ + events = self.run_and_get_events('fixtures/connectab/ctd-account-account.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua1-staging-1511945444.284', + 'caller': CallerId(code=150010003, number='203', is_public=True), + 'to_number': '202', + 'targets': [CallerId(code=150010002, number='202', is_public=True)], + }), + ('on_up', { + 'call_id': 'ua1-staging-1511945444.284', + 'caller': CallerId(code=150010003, number='203', is_public=True), + 'to_number': '202', + 'callee': CallerId(code=150010002, number='202', is_public=True), + }), + ('on_hangup', { + 'call_id': 'ua1-staging-1511945444.284', + 'caller': CallerId(code=150010003, number='203', is_public=True), + 'to_number': '202', + 'reason': 'completed', + }), + )) + + self.assertEqual(expected_events, events) + + def test_account_world_deny_a(self): + """ + Click-to-dial call between a phoneaccount and an external number. + + 203 is dialed, + 203 refuses the call + """ + events = self.run_and_get_events('fixtures/connectab/ctd-account-world-deny_a.json') + + self.assertEqual((), events) + + def test_account_world_fail(self): + """ + Click-to-dial call between a phoneaccount and an external number. + + 203 is dialed, + 203 picks up, and hangs up fast + """ + events = self.run_and_get_events('fixtures/connectab/ctd-account-world-fail2.json') + + self.assertEqual((), events) + + def test_account_world_deny_b(self): + """ + Click-to-dial call between a phoneaccount and an external number. + + 203 is dialed, + 203 picks up + +31613925xxx does not pickup + """ + events = self.run_and_get_events('fixtures/connectab/ctd-account-world-deny_b.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua1-staging-1512032862.847', + 'caller': CallerId(code=150010003, number='+31150010001', is_public=True), + 'to_number': '+31613925xxx', + 'targets': [CallerId(code=0, name='', number='+31613925xxx', is_public=True)], + }), + ('on_hangup', { + 'call_id': 'ua1-staging-1512032862.847', + 'caller': CallerId(code=150010003, number='+31150010001', is_public=True), + 'to_number': '+31613925xxx', + 'reason': 'no-answer', + }), + )) + + self.assertEqual(expected_events, events) + + def test_ctd_attn_xfer(self): + """ + Click-to-dial with an attended transfer. + + Ensure that the call_id which is used for ConnectAB is consistent with + other functions (like transfers). + """ + events = self.run_and_get_events('fixtures/connectab/ctd-attn-xfer.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua0-acc-1513778720.1901', + 'caller': CallerId(code=126680005, number='217', is_public=True), + 'to_number': '218', + 'targets': [CallerId(code=126680010, name='', number='218', is_public=True)], + }), + ('on_up', { + 'call_id': 'ua0-acc-1513778720.1901', + 'caller': CallerId(code=126680005, number='217', is_public=True), + 'to_number': '218', + 'callee': CallerId(code=126680010, name='', number='218', is_public=True), + }), + ('on_b_dial', { + 'call_id': 'ua0-acc-1513778732.1912', + 'caller': CallerId(code=126680005, number='+31853030900', is_public=True), + 'to_number': '0612345678', + 'targets': [CallerId(number='+31612345678', is_public=True)], + }), + ('on_up', { + 'call_id': 'ua0-acc-1513778732.1912', + 'caller': CallerId(code=126680005, number='+31853030900', is_public=True), + 'to_number': '0612345678', + 'callee': CallerId(code=126680005, number='+31612345678', is_public=True), + }), + ('on_warm_transfer', { + 'redirector': CallerId(code=126680005, number='+31853030900', is_public=True), + 'caller': CallerId(code=126680005, number='217', is_public=True), + 'callee': CallerId(code=126680005, number='+31612345678', is_public=True), + 'new_id': 'ua0-acc-1513778732.1912', + 'merged_id': 'ua0-acc-1513778720.1901', + }), + ('on_hangup', { + 'call_id': 'ua0-acc-1513778732.1912', + 'caller': CallerId(code=126680005, number='217', is_public=True), + 'to_number': '218', + 'reason': 'completed', + }), + )) + + self.assertEqual(expected_events, events) + + def test_cmn_world_account(self): + """ + Call-me-now call between a mobilephone and an internal number. + + +31613925xxx is dialed, + +31613925xxx picks up, + 203 is dialed + 203 picks up, + +31613925xxx hangs up + """ + events = self.run_and_get_events('fixtures/connectab/cmn-world-account.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua1-staging-1512038737.882', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '203', + 'targets': [CallerId(code=150010003, number='203', is_public=True)], + }), + ('on_up', { + 'call_id': 'ua1-staging-1512038737.882', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '203', + 'callee': CallerId(code=150010003, number='203', is_public=True), + }), + ('on_hangup', { + 'call_id': 'ua1-staging-1512038737.882', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '203', + 'reason': 'completed', + }), + )) + + self.assertEqual(expected_events, events) + + def test_cmn_world_account_unaccepted(self): + """ + Call-me-now call between a mobilephone and an internal number. + + +31613925xxx is dialed, + +31613925xxx picks up and does not accept. + """ + events = self.run_and_get_events('fixtures/connectab/cmn-world-account-unaccepted.json') + + self.assertEqual((), events) + + def test_cmn_world_world(self): + """ + Call-me-now call between a mobilephone and an internal number. + + +31613925xxx is dialed, + +31613925xxx picks up, + +31150010003 is dialed and starts ua1-staging-1512036277.877, + +31150010003 picks up, + +31150010003 hangs up + """ + events = self.run_and_get_events('fixtures/connectab/cmn-world-world.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua1-staging-1512036255.866', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '+31150010003', + 'targets': [CallerId(code=0, number='+31150010003', is_public=True)], + }), + ('on_b_dial', { + 'call_id': 'ua1-staging-1512036277.877', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '+31150010003', + 'targets': [CallerId(code=150010003, number='+31150010003', is_public=True)], + }), + ('on_up', { + 'call_id': 'ua1-staging-1512036277.877', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '+31150010003', + 'callee': CallerId(code=150010003, number='+31150010003', is_public=True), + }), + ('on_up', { + 'call_id': 'ua1-staging-1512036255.866', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '+31150010003', + 'callee': CallerId(code=0, number='+31150010003', is_public=True), + }), + ('on_hangup', { + 'call_id': 'ua1-staging-1512036277.877', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '+31150010003', + 'reason': 'completed', + }), + ('on_hangup', { + 'call_id': 'ua1-staging-1512036255.866', + 'caller': CallerId(code=15001, number='+31613925xxx', is_public=True), + 'to_number': '+31150010003', + 'reason': 'completed', + }), + )) + + self.assertEqual(expected_events, events) + + def test_cmn_self_world(self): + """ + Call-me-now between an external number and a self owned number. + + In here, you'll see two calls: + - The "inbound" call from Call-me-now which goes to the local number. + - The "inbound" call from world-in which is routed to the destination. + """ + events = self.run_and_get_events('fixtures/connectab/cmn-self-world.json') + + expected_event = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua0-acc-1513786051.1965', + 'caller': CallerId(code=12668, number='+31508009074', is_public=True), + 'targets': [CallerId(number='+31853030903', is_public=True)], + 'to_number': '+31853030903', + }), + ('on_b_dial', { + 'call_id': 'ua0-acc-1513786064.1976', + 'caller': CallerId(code=12668, number='+31508009074', is_public=True), + 'targets': [CallerId(code=126680010, number='+31853030903', is_public=True)], + 'to_number': '+31853030903', + }), + ('on_up', { + 'call_id': 'ua0-acc-1513786064.1976', + 'caller': CallerId(code=12668, number='+31508009074', is_public=True), + 'callee': CallerId(code=126680010, number='+31853030903', is_public=True), + 'to_number': '+31853030903', + }), + ('on_up', { + 'call_id': 'ua0-acc-1513786051.1965', + 'caller': CallerId(code=12668, number='+31508009074', is_public=True), + 'callee': CallerId(number='+31853030903', is_public=True), + 'to_number': '+31853030903', + }), + ('on_hangup', { + 'call_id': 'ua0-acc-1513786051.1965', + 'caller': CallerId(code=12668, number='+31508009074', is_public=True), + 'reason': 'completed', + 'to_number': '+31853030903', + }), + ('on_hangup', { + 'call_id': 'ua0-acc-1513786064.1976', + 'caller': CallerId(code=12668, number='+31508009074', is_public=True), + 'reason': 'completed', + 'to_number': '+31853030903', + }), + )) + + self.assertEqual(expected_event, events) diff --git a/tests/test_fixed.py b/tests/test_fixed.py index b93fa40..eaa996e 100644 --- a/tests/test_fixed.py +++ b/tests/test_fixed.py @@ -31,7 +31,36 @@ def test_incoming(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) + + def test_outbound(self): + """ + Test a simple outbound call. + """ + events = self.run_and_get_events('fixtures/fixed/fixed_outbound_success.json') + + expected_events = self.events_from_tuples(( + ('on_b_dial', { + 'call_id': 'ua0-acc-1513784375.1916', + 'caller': CallerId(code=126680010, number='+31853030900', is_public=True), + 'targets': [CallerId(number='+31508009000', is_public=True)], + 'to_number': '0508009000', + }), + ('on_up', { + 'call_id': 'ua0-acc-1513784375.1916', + 'caller': CallerId(code=126680010, number='+31853030900', is_public=True), + 'callee': CallerId(number='+31508009000', is_public=True), + 'to_number': '0508009000', + }), + ('on_hangup', { + 'call_id': 'ua0-acc-1513784375.1916', + 'caller': CallerId(code=126680010, number='+31853030900', is_public=True), + 'to_number': '0508009000', + 'reason': 'completed', + }), + )) + + self.assertEqual(expected_events, events) def test_fixed(self): """Test an incomming call with fixed destination. @@ -61,4 +90,4 @@ def test_fixed(self): }), )) - self.assertEqual(events, expected_events) + self.assertEqual(expected_events, events) diff --git a/tests/test_partial.py b/tests/test_partial.py index 07c7c18..958230e 100644 --- a/tests/test_partial.py +++ b/tests/test_partial.py @@ -14,6 +14,7 @@ def test_partial_events(self): for filename in files: events = self.load_events_from_disk(filename) + events = list(filter(lambda e: e['Event'] not in ('VarSet', 'Newexten'), events)) while len(events) != 0: events.pop(0) reporter = TestReporter()