Current-time: Jan 29 11:26:24 PST (UTC -0800) H323-conf-id: 54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D SIP Call-ID: 94.23.242.200-1264792371.126 SIP Call-ID: 94.23.225.212-1264792371.14 Requests: 4 REQUEST-- Jan 29 11:12:51: Processing request (BE ver1.245.2.11,pid15598): NAS-IP-Address = '94.23.242.200' NAS-Port-Name = 'SIP/41215500329-08839900' User-Name = '41215500329' Called-Station-Id = '0216912818' Calling-Station-Id = '41215500329' h323-conf-id = '54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D' call-id = '94.23.242.200-1264792371.126' Digest-Attributes = 'User-Name = "41215500329"' Digest-Attributes = 'Realm = "switzernet"' Digest-Attributes = 'Nonce = "54e9ecb2"' Digest-Attributes = 'URI = "sip:0216912818@94.23.242.200"' Digest-Attributes = 'Method = "INVITE"' Digest-Attributes = 'Algorithm = "MD5"' Digest-Response = 'dbc2db23e70dc3f0edc4b9f2846db177' h323-ivr-out = 'PortaBilling_Routing:SIP' Jan 29 11:12:51: h323-conf-id=54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1, call-id=94.23.242.200-1264792371.126/1 Jan 29 11:12:51: H323/SIP call, use h323-conf-id, but remember call-id Jan 29 11:12:51: Checking if this call comes through a VoIP from vendor connection Jan 29 11:12:51: No VoIP from vendor connections were found Jan 29 11:12:51: PrepareNexecute 'AccountAuth' Jan 29 11:12:51: SQL query 'AccountAuth' executed in 0.001903 seconds Jan 29 11:12:51: Found Account: 41215500329[58048,credit,balance=0.25000,limit=none] of customer Swiss offices[16165,balance=633.53000,limit=700.00000] Jan 29 11:12:51: PrepareNexecute 'GetSessions' Jan 29 11:12:51: SQL query 'GetSessions' executed in 0.001329 seconds Jan 29 11:12:51: Account 41215500329 is already logged in, other session with call ID=2129AF17 60390377 2722CBBF 613CEA4D Jan 29 11:12:51: Verification of password using method 'digest_response': success Jan 29 11:12:51: Applying customer dialing translation rule on CLD ... Jan 29 11:12:51: Translation 'local_to_e164($_,{cc=>'41',dp=>'0',ip=>'00'});#% cc=41 dp=0 ip=00' applied: '0216912818' -> '41216912818' Jan 29 11:12:51: PrepareNexecute 'AccountAuth' Jan 29 11:12:51: SQL query 'AccountAuth' executed in 0.001416 seconds Jan 29 11:12:51: CLD '41216912818' is an off-net number Jan 29 11:12:51: Setting up a new charge with tariff 'business' ... Jan 29 11:12:51: Using peak rate, since no off-peak is defined Jan 29 11:12:51: PrepareNexecute 'GetPricePerDestination*' Jan 29 11:12:51: SQL query 'GetPricePerDestination*' executed in 0.00222 seconds Jan 29 11:12:51: Compute maximum call duration for leg Account 41215500329 to destination with funds 66.47 (customer funds 66.47 reduced to 66.47) Jan 29 11:12:51: Maximum call duration: 199410 announced as 199410 (+1x1x0.02+199409x1x0.02) by rate 2487323 using 85951 as seed Jan 29 11:12:51: Remote termination 'PortaSIP': Calculating routing for 41216912818 Jan 29 11:12:51: RTP Proxy with origination preference 'Undetermined', Calling party NOT behind NAT. Jan 29 11:12:51: Looking up routes to '41216912818' using '' routing plan Jan 29 11:12:51: PrepareNexecute 'GetRoutingPerDestination*' Jan 29 11:12:51: SQL query 'GetRoutingPerDestination*' executed in 0.005765 seconds Jan 29 11:12:51: Checked 2010-01-29 20:12:51 Europe/Zurich against 'hr{17-7} wd{mo-fr }, wd{sa su }, md{25} mo{dec}, md{26} mo{dec}, md{1} mo{jan}, md{2} mo{jan}, md{10} mo{apr}, md{13} mo{apr}, md{1} mo{may}, md{1} mo{jun}, md{1} mo{aug}': 1 Jan 29 11:12:51: Start of call is peak level 1 Jan 29 11:12:51: Using peak rate, since no off-peak is defined Jan 29 11:12:51: Checked 2010-01-29 20:12:51 Europe/Zurich against 'hr{17-7} wd{mo-fr }, wd{sa su }, md{25} mo{dec}, md{26} mo{dec}, md{1} mo{jan}, md{2} mo{jan}, md{10} mo{apr}, md{13} mo{apr}, md{1} mo{may}, md{1} mo{jun}, md{1} mo{aug}': 1 Jan 29 11:12:51: Start of call is peak level 1 Jan 29 11:12:51: Checked 2010-01-29 20:12:51 Europe/Zurich against 'hr{17-7} wd{mo-fr }, wd{sa su }, md{25} mo{dec}, md{26} mo{dec}, md{1} mo{jan}, md{2} mo{jan}, md{10} mo{apr}, md{13} mo{apr}, md{1} mo{may}, md{1} mo{jun}, md{1} mo{aug}': 1 Jan 29 11:12:51: Start of call is peak level 1 Jan 29 11:12:51: Using peak rate, since no off-peak is defined Jan 29 11:12:51: Using peak rate, since no off-peak is defined Jan 29 11:12:51: Using peak rate, since no off-peak is defined Jan 29 11:12:51: Checked 2010-01-29 20:12:51 Europe/Zurich against 'hr{17-7} wd{mo-fr }, wd{sa su }, md{25} mo{dec}, md{26} mo{dec}, md{1} mo{jan}, md{2} mo{jan}, md{10} mo{apr}, md{13} mo{apr}, md{1} mo{may}, md{1} mo{jun}, md{1} mo{aug}': 1 Jan 29 11:12:51: Start of call is peak level 1 Jan 29 11:12:51: Using peak rate, since no off-peak is defined Jan 29 11:12:51: Applying route outgoing CLD translation on '41216912818' ... Jan 29 11:12:51: Translation 's/^(\d)/\+$1/;' applied: '41216912818' -> '+41216912818' Jan 29 11:12:51: Applying route outgoing CLD translation on '41216912818' ... Jan 29 11:12:51: Translation 's/^(\d)/\+$1/;' applied: '41216912818' -> '+41216912818' Jan 29 11:12:51: Applying route outgoing CLD translation on '41216912818' ... Jan 29 11:12:51: Translation 's/^(\d)/00$1/;' applied: '41216912818' -> '0041216912818' Jan 29 11:12:51: Applying route outgoing CLD translation on '41216912818' ... Jan 29 11:12:51: Translation 's/^(\d)/\+$1/' applied: '41216912818' -> '+41216912818' Jan 29 11:12:51: Applying route outgoing CLI translation on '41215500329' ... Jan 29 11:12:51: Translation 's/^(\d)/\+$1/;' applied: '41215500329' -> '+41215500329' Jan 29 11:12:51: Applying route outgoing CLI translation on '41215500329' ... Jan 29 11:12:51: Translation 's/^(\d)/\+$1/;' applied: '41215500329' -> '+41215500329' Jan 29 11:12:51: Applying route outgoing CLI translation on '41215500329' ... Jan 29 11:12:51: Translation 's/^(\d)/00$1/;' applied: '41215500329' -> '0041215500329' Jan 29 11:12:51: Applying route outgoing CLI translation on '41215500329' ... Jan 29 11:12:51: Translation 's/^(\d)/\+$1/;' applied: '41215500329' -> '+41215500329' Jan 29 11:12:51: Result routes to destination '41216912818': +41216912818@212.249.15.9, prio = 10, cost = 0.00654, off-peak, 'OpenSER 9' - to remote GW +41216912818@212.249.15.3, prio = 10, cost = 0.00654, off-peak, 'OpenSER 3' - to remote GW 0041216912818@217.168.45.4, prio = 9, cost = 0.00000, off-peak, 'Asterisk SS7' - to remote GW +41216912818@87.106.213.52, prio = 8, cost = 0.00000, 'OpenSER UK' - to remote GW Jan 29 11:12:51: Enhance lifetime with 1800s to Fri Jan 29 11:42:51 2010 Jan 29 11:12:51: Authentication acknowledge response h323-ivr-in = PortaBilling_Routing:@;g-hunt=seq h323-ivr-in = PortaBilling_Routing: @;g-hunt=skip;expires=300;credit-time=199410;cli=+41215500329;patience=20 h323-ivr-in = PortaBilling_Routing: +41216912818@212.249.15.9 h323-ivr-in = PortaBilling_Routing: +41216912818@212.249.15.3 h323-ivr-in = PortaBilling_Routing: 0041216912818@217.168.45.4;cli=0041215500329;rtpp=1 h323-ivr-in = PortaBilling_Routing: +41216912818@87.106.213.52 h323-billing-model = 0 h323-ivr-in = Tariff:business h323-ivr-in = PortaBilling_CLI:41215500329 h323-ivr-in = MOH:1 h323-ivr-in = PortaBilling_CompleteNumber:41216912818 h323-ivr-in = PortaBilling_Auth_CLD:41216912818 h323-ivr-in = PortaBilling_Auth_Reseller_CLD:41216912818 h323-ivr-in = DURATION:199410 h323-return-code = 0 h323-currency = CHF h323-credit-time = 199410 h323-preferred-lang = en Jan 29 11:12:51: ...Done Authorize/INVITE in 0.041323 seconds, 0.012633 spent in SQL queries. --REQUEST REQUEST-- Jan 29 11:12:57: Processing request (BE ver1.245.2.11,pid15598): NAS-IP-Address = '94.23.225.212' User-Name = '94.23.242.200' Called-Station-Id = '+41216912818' Calling-Station-Id = '41215500329' Acct-Status-Type = 'Start' h323-call-origin = 'originate' h323-call-type = 'VoIP' h323-setup-time = '19:12:51 GMT Fri Jan 29 2010' h323-conf-id = '54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D' call-id = '94.23.225.212-1264792371.14' session-protocol = 'sipv2' h323-remote-address = '212.249.15.9' Exec-Program-Log = 'porta-billing.pl' Jan 29 11:12:57: fixup: Using value '19:12:51 GMT Fri Jan 29 2010' to supply missing h323-connect-time attribute in Start accounting Jan 29 11:12:57: h323-conf-id=54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1, call-id=94.23.225.212-1264792371.14/1 Jan 29 11:12:57: Found a call in cache with such id Jan 29 11:12:57: Replacing username '94.23.242.200' with the real username '41215500329' Jan 29 11:12:57: Copied account: 41215500329[58048,credit,balance=0.25000,limit=none] of customer Swiss offices[16165,balance=633.53000,limit=700.00000] from '94.23.242.200' into the current request Jan 29 11:12:57: Fixing time with duration 0 seconds from connect time Jan 29 11:12:57: PrepareNexecute 'GetActiveLegIdByAcct' Jan 29 11:12:57: SQL query 'GetActiveLegIdByAcct' executed in 0.00195 seconds Jan 29 11:12:57: Looking up vendor/connection Jan 29 11:12:57: Trying to match connection for call Jan 29 11:12:57: Looking for a connection VoIP/originate Jan 29 11:12:57: Outgoing VoIP, matching by the remote IP address '212.249.15.9' (env 1) Jan 29 11:12:57: Found connection 217 'OpenSER 9' to vendor 'Verizon' Jan 29 11:12:57: Found vendor/connection Jan 29 11:12:57: PrepareNexecute 'InsertActiveLeg' Jan 29 11:12:57: SQL query 'InsertActiveLeg' executed in 0.001463 seconds Jan 29 11:12:57: Accounting response Jan 29 11:12:57: ...Done Accounting/Start/originate/VoIP in 0.009346 seconds, 0.003413 spent in SQL queries. --REQUEST REQUEST-- Jan 29 11:12:57: Processing request (BE ver1.245.2.11,pid15598): NAS-IP-Address = '94.23.225.212' User-Name = '94.23.242.200' Called-Station-Id = '41216912818' Calling-Station-Id = '41215500329' Acct-Status-Type = 'Start' h323-call-origin = 'answer' h323-call-type = 'VoIP' h323-setup-time = '19:12:51 GMT Fri Jan 29 2010' h323-conf-id = '54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D' call-id = '94.23.225.212-1264792371.14' session-protocol = 'sipv2' h323-remote-address = '94.23.242.200' Exec-Program-Log = 'porta-billing.pl' Jan 29 11:12:57: fixup: Using value '19:12:51 GMT Fri Jan 29 2010' to supply missing h323-connect-time attribute in Start accounting Jan 29 11:12:57: h323-conf-id=54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1, call-id=94.23.225.212-1264792371.14/1 Jan 29 11:12:57: Found a call in cache with such id Jan 29 11:12:57: Replacing username '94.23.242.200' with the real username '41215500329' Jan 29 11:12:57: Copied account: 41215500329[58048,credit,balance=0.25000,limit=none] of customer Swiss offices[16165,balance=633.53000,limit=700.00000] from '94.23.242.200' into the current request Jan 29 11:12:57: Fixing time with duration 0 seconds from connect time Jan 29 11:12:57: PrepareNexecute 'GetActiveLegIdByAcct' Jan 29 11:12:57: SQL query 'GetActiveLegIdByAcct' executed in 0.001754 seconds Jan 29 11:12:57: Looking up vendor/connection Jan 29 11:12:57: Trying to match connection for call Jan 29 11:12:57: Looking for a connection VoIP/answer Jan 29 11:12:57: VoIP, matching by the node IP '94.23.225.212' and User-Name '94.23.242.200' Jan 29 11:12:57: No VoIP from vendor connections were found Jan 29 11:12:57: Connection to vendor not found Jan 29 11:12:57: PrepareNexecute 'InsertActiveLeg' Jan 29 11:12:57: SQL query 'InsertActiveLeg' executed in 0.001346 seconds Jan 29 11:12:57: Accounting response Jan 29 11:12:57: ...Done Accounting/Start/answer/VoIP in 0.008887 seconds, 0.003100 spent in SQL queries. --REQUEST REQUEST-- Jan 29 11:24:08: Processing request (BE ver1.245.2.11,pid15598): NAS-IP-Address = '94.23.225.212' User-Name = '94.23.242.200' Called-Station-Id = '+41216912818' Calling-Station-Id = '41215500329' Acct-Status-Type = 'Stop' h323-call-origin = 'originate' h323-call-type = 'VoIP' h323-setup-time = '19:12:51 GMT Fri Jan 29 2010' h323-connect-time = '19:12:57 GMT Fri Jan 29 2010' h323-disconnect-time = '19:13:58 GMT Fri Jan 29 2010' h323-disconnect-cause = '10' h323-conf-id = '54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D' call-id = '94.23.225.212-1264792371.14' Acct-Session-Time = '61' session-protocol = 'sipv2' h323-remote-address = '212.249.15.9' Exec-Program-Log = 'porta-billing.pl' Jan 29 11:24:08: h323-conf-id=54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1, call-id=94.23.225.212-1264792371.14/1 Jan 29 11:24:08: Found a call in cache with such id Jan 29 11:24:08: Replacing username '94.23.242.200' with the real username '41215500329' Jan 29 11:24:08: Copied account: 41215500329[58048,credit,balance=0.25000,limit=none] of customer Swiss offices[16165,balance=633.53000,limit=700.00000] from '94.23.242.200' into the current request Jan 29 11:24:08: WARNING: Suspiciously delayed time received (610) - fixing to request time Jan 29 11:24:08: PrepareNexecute 'MailAlarm' Jan 29 11:24:08: SQL query 'MailAlarm' executed in 0.025875 seconds Jan 29 11:24:08: There are no recepients of mail alarms with type 'TIME_FMT' Jan 29 11:24:08: Fixing time with duration 61 seconds till request time Jan 29 11:24:08: PrepareNexecute 'GetActiveLegIdByAcct' Jan 29 11:24:08: SQL query 'GetActiveLegIdByAcct' executed in 0.002003 seconds Jan 29 11:24:08: PrepareNexecute 'DeleteActiveLeg' Jan 29 11:24:08: SQL query 'DeleteActiveLeg' executed in 0.000825 seconds Jan 29 11:24:08: End of the outgoing call for account, which appears as never logged-in Jan 29 11:24:08: Set lifetime with 15s to Fri Jan 29 11:24:23 2010 Jan 29 11:24:08: Looking up vendor/connection Jan 29 11:24:08: Trying to match connection for call Jan 29 11:24:08: Looking for a connection VoIP/originate Jan 29 11:24:08: Outgoing VoIP, matching by the remote IP address '212.249.15.9' (env 1) Jan 29 11:24:08: Found connection 217 'OpenSER 9' to vendor 'Verizon' Jan 29 11:24:08: Found vendor/connection Jan 29 11:24:08: Applying connection translation rule on CLD ... Jan 29 11:24:08: Translation 's/^\+//;' applied: '+41216912818' -> '41216912818' Jan 29 11:24:08: Charging call ... Jan 29 11:24:08: Using peak rate, since no off-peak is defined Jan 29 11:24:08: Can reuse the already initialized charge. Jan 29 11:24:08: Calculating account's charge by tariff 'business' Jan 29 11:24:08: Call to '41216912818' with duration 61 seconds will be charged for 61 seconds and cost is 0.03 (1x1x0.02+60x1x0.02^2) by rate 2487323 using 85951 as seed Jan 29 11:24:08: Setting up a new charge with tariff 'verizon-PRE' ... Jan 29 11:24:08: Checked 2010-01-29 20:23:07 Europe/Zurich against 'hr{17-7} wd{mo-fr }, wd{sa su }, md{25} mo{dec}, md{26} mo{dec}, md{1} mo{jan}, md{2} mo{jan}, md{10} mo{apr}, md{13} mo{apr}, md{1} mo{may}, md{1} mo{jun}, md{1} mo{aug}': 1 Jan 29 11:24:08: Checked 2010-01-29 20:24:08 Europe/Zurich against 'hr{17-7} wd{mo-fr }, wd{sa su }, md{25} mo{dec}, md{26} mo{dec}, md{1} mo{jan}, md{2} mo{jan}, md{10} mo{apr}, md{13} mo{apr}, md{1} mo{may}, md{1} mo{jun}, md{1} mo{aug}': 1 Jan 29 11:24:08: Start of call is peak level 1 Jan 29 11:24:08: End of call is peak level 1 Jan 29 11:24:08: PrepareNexecute 'GetPricePerDestination*' Jan 29 11:24:08: SQL query 'GetPricePerDestination*' executed in 0.002243 seconds Jan 29 11:24:08: Calculating vendor's charge by tariff 'verizon-PRE' Jan 29 11:24:08: Call to '41216912818' with duration 61 seconds will be charged for 61 seconds and cost is 0.01142 (1x1x0.2709+60x1x0.0069) by rate 3530937 using 85951 as seed Jan 29 11:24:08: Charging account for the call Jan 29 11:24:08: Inserting CDR Jan 29 11:24:08: PrepareNexecute 'InsertAccountCDR' Jan 29 11:24:08: SQL query 'InsertAccountCDR' executed in 0.001272 seconds Jan 29 11:24:08: Charging credit account 41215500329 0.03 Jan 29 11:24:08: PrepareNexecute 'UpdateAccountBalance' Jan 29 11:24:08: SQL query 'UpdateAccountBalance' executed in 0.000856 seconds Jan 29 11:24:08: Charging account's owner for the call Jan 29 11:24:08: Charging customer 16165 'Swiss offices' 0.03 Jan 29 11:24:08: PrepareNexecute 'UpdateCustomerBalance' Jan 29 11:24:08: SQL query 'UpdateCustomerBalance' executed in 0.000885 seconds Jan 29 11:24:08: Charging vendor for the call Jan 29 11:24:08: Charging vendor 55 'Verizon' 0.01142 Jan 29 11:24:08: Inserting CDR Jan 29 11:24:08: PrepareNexecute 'InsertVendorCDR' Jan 29 11:24:08: SQL query 'InsertVendorCDR' executed in 0.001075 seconds Jan 29 11:24:08: PrepareNexecute 'UpdateVendorBalance' Jan 29 11:24:08: SQL query 'UpdateVendorBalance' executed in 0.000806 seconds Jan 29 11:24:08: Accounting response Jan 29 11:24:08: ...Done Accounting/Stop/originate/VoIP in 0.055432 seconds, 0.035840 spent in SQL queries. --REQUEST CALL-- Jan 29 11:24:37: Removing call 54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1 Jan 29 11:24:37: Scheduling 41215500329 for logout, call lifetime reduced to 15 Jan 29 11:24:37: PrepareNexecute 'GetSessions' Jan 29 11:24:37: SQL query 'GetSessions' executed in 0.000558 seconds Jan 29 11:24:37: Logging out account '41215500329'(58048) from '54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D' Jan 29 11:24:37: PrepareNexecute 'RemoveSession' Jan 29 11:24:37: SQL query 'RemoveSession' executed in 0.000935 seconds Jan 29 11:24:37: Cleaning up the call Jan 29 11:24:37: Usernames in all accounting requests are ok Jan 29 11:24:37: Processing answer/VoIP call leg Jan 29 11:24:37: Skipping Start accounting Jan 29 11:24:37: Processing originate/VoIP call leg Jan 29 11:24:37: Processing originate/VoIP call leg Jan 29 11:24:37: Skipping Start accounting Jan 29 11:24:37: There are no unsaved CDRs for this call left Jan 29 11:24:37: Call '54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1' deleted from the cache Jan 29 11:24:37: Call 54C8A9FA 6FA1E1A8 18ECEB75 17AEAE4D/1 removed --CALL