Basic Residential VoIP Service

 

Initial Configuration of PortaSwitch®

Create a Vendor Tariff

Enter Rates for Your Vendor Tariff

Create Vendors

Define Connections

Create Customer Tariffs

Enter Rates to the Tariff for Outgoing Calls

Enter Rates to the Tariff for Incoming Calls

Create a Product

Create Invoice Template

Configure Taxation

Create a Customer Class

Create a Customer

Create Accounts

Set up Dialing Rules for the Customer (Optional)

Test the Whole System

Check Log Files with Log Viewer

SIP Log Examples

BE Log Examples

Verify Call History for an Account

Check Call History

 

This chapter demonstrates how to set up the basic SIP service so that your customers will be able to make outgoing calls via your SIP server.

 

For more information about available fields, click  at the top-right corner.

Checklist

Print the following page and use it to check off the operations you have completed while performing the system setup according to the instructions in this chapter. Please be sure to perform all of the operations in the order designated (all of the boxes should be checked), otherwise the service will not work.

 

 

Operation

 

Done

Rating configuration (Vendor)

 

Create a tariff (referred to as tariff A later on), which describes your termination costs and routing for off-net calls (make sure it has a Routing type!)

[     ]

Enter rates in tariff A for the destinations your customers will call

[     ]

Create an off-net calls vendor

[     ]

Create a connection for this vendor using tariff A

[     ]

Rating configuration (Customer)

 

Create a tariff (referred to as tariff B later on), which will be applied to SIP subscribers for making outgoing calls

[     ]

Create a tariff (referred to as tariff C later on), which will be applied to SIP subscribers for receiving incoming calls

[     ]

Enter rates in tariff B for the destinations to which your customers will call (both off-net and SIP-to-SIP calls)

[     ]

Enter rates in tariff C for the destinations from which your customers receive incoming calls

[     ]

Create your SIP product

[     ]

Create a rating entry for this product, associating the Voice Calls service and tariff B with the PortaSIP® node and empty Access Code

[     ]

Create a rating entry for this product, associating the Voice Calls service and tariff C with the PortaSIP® node and INCOMING Access Code

[     ]

Create an invoice template

[     ]

Account provisioning

 

Create a customer class for your SIP customers

[     ]

Create a retail customer who will use the SIP service

[     ]

Create several accounts for this customer, with account ID identical to the SIP phone number

[     ]

Testing

 

Program the parameters (phone #, password and SIP server address) into the SIP phone and make a test call

[     ]

Initial Configuration of PortaSwitch®

If you have just installed the PortaSwitch® software or dedicated a new billing environment to configure the services described in this handbook, make sure to first perform the initial configuration of PortaSwitch®. To do this, use the PortaSwitch Initial Configuration handbook.

Create a Vendor Tariff

The tariff is a single price list for calling services or for your termination costs. A tariff combines:

·       Conditions which are applicable for every call regardless of the called destination.

·       Per destination rates.

 

1.     On the navigation menu to the left, select Service catalog and click Tariffs.

 

Open the Tariffs panel.

 

2.     On the Create tariff panel, fill in the tariff details:

·       Name – Type a short name for the tariff object; this is the name you will see in the select menus (for example, GlobalNet Termination).

·       Currency – Choose the currency in which the vendor charges you.

NOTE: The currency for the tariff may be chosen only once, and cannot be changed later.

·       Service – Choose Voice Calls here.

·       Applied to – Choose Vendor in the Applied to list.

·       Routing – Leave the Routing option enabled for this tariff.

 

3.     Click Save.

 

Add a new vendor tariff.

Enter Rates for Your Vendor Tariff

Rates are per-destination prices. Please refer to the Call Billing Parameters section in the PortaBilling Administrator Guide for more information on billing parameters.

Managing Rates Online

Managing rates online is very convenient for maintaining existing rate tables, as well as for reference purposes. For new price lists or for major updates, an offline method is better.

 

1.     On the vendor tariff’s panel (GlobalNet Termination), click Rates.

2.     On the Add rate panel, fill in the rate details:

·       Destination – Select a destination prefix from the list or type it in directly, e.g. 420 for Czech Republic.

NOTE:  You must create an entry for certain phone prefixes in the Destination register before creating a rate for them in the tariff.

·       Route category – You can split your available routes into several categories, such as “High quality,” “Premium,” etc., then create routing plans for your customers. Use the Default route category for now.

·       Preference – The routing priority for the specific destination. 10 is the highest priority, 0 is the lowest (i.e. do not use this destination for routing at all). For now, you can just set all of your vendor rates at preference 5, and the system will organize available routes according to cost (LCR).

·       Huntstop – When enabled, instructs the system to not try any routes with a lower preference.

·       First interval, seconds – Type a first billing unit in seconds.

·       Next interval, seconds – Type the next billing unit in seconds.

·       First price – Type a per minute price for a first interval.

·       Next price – Type a per minute price for the next interval.

NOTE: Off-peak fields appear only if this tariff has already been assigned an off-peak period on the General info panel.

·       Effective from – If you want this rate to take effect sometime in the future, you can either type in a date manually, or use the calendar.

NOTE: When using the calendar, you can specify that the date you are entering is in a different time zone than your present one. PortaBilling® will then automatically adjust the time.

3.     Click Save.

4.     Repeat these steps if you need to enter more rates.

 

Add a new rate

Managing Rates Offline

You can also upload rates from a .csv or .xls file – please consult the Rate Import handbook for more details.

 

timesaver Perform the Create Tariff and Enter Rates steps described above until you have created a tariff with the termination costs for each termination partner you have; these tariffs are created as “Applied to: Vendor”.

Create Vendors

This step is only required if you have not entered information about your vendors into the system before. Vendors are your termination partners or the providers of incoming toll-free lines and DID numbers.

1.     In the left upper corner click  to open the navigation menu.

2.     On the navigation menu, select Infrastructure, then select Vendors.

3.     On the Create vendor panel, fill in the vendor details:

·       Name – Type a short name for the vendor object; this will be used on the web interface (for example, GlobalNet).

·       Currency – Choose the currency in which this vendor charges you.

·       Opening balance – This indicates a starting balance for the vendor; the default is zero.

·       Billing period – Split period for vendor statistics.

 

4.     Click Save.

 

Add a new vendor.

 

When a call is sent from your network to the vendor’s gateway, the vendor performs an authorization for the call. Authorization can be done based on your PortaSIP® IP address (in this case you just need to supply that information to the vendor and no further action is required on your part) or the vendor can provide you with a SIP username and password to use for call authorization. These credentials should be stored with the “vendor authorization” info and then associated with a specific connection so that they can be used during actual call processing.

 

5.      In this case, it is necessary to create an account for digest authorization of outgoing calls:

·       On your vendor’s panel (GlobalNet), click General configuration, then click Authorization.

·       On the Authorization panel, click Add and enter the credentials provided by the vendor.

·       Click Save.

 

Define the ahtorization parameters.

 

6.     Repeat these steps to add all of your vendors.

Define Connections

This connection represents the point from which calls leave or enter your network and are directed to or from vendors where charges are incurred.

1.     On your vendor’s panel (GlobalNet), click Connections.

2.     On the Create connection panel, fill in the connection details: 

·       Description –Type a descriptive name for this connection. It will be displayed in the list of connections.

·       Service type – Select Voice Calls.

·       Type of connections Select SIP.

·       Direction – Select To vendor.

·       Tariff – Choose the tariff that defines your termination costs for this connection / vendor.

·       Active – Use the slider to set this connection as active.

·       Identify gateway by – Choose how to identify the gateway: IP, gateway ID or both. Specify the IP address and / or ID of the vendor’s gateway or switch.

 

3.     Click Save.

 

Add

 

4.     On your vendor’s panel (GlobalNet), click General configuration.

·       Vendor authorization – Select GlobalNet-SIP for digest authorization of outgoing call from your accounts.

 

5.     Click Save.

 

Define a vendor authorization.

 

6.     Repeat these steps to add more connections to this vendor.

Create Customer Tariffs

To enable your customers to make and receive calls, it is necessary to create two tariffs: one applied for outgoing calls and another one applied for incoming calls.

1.     On the navigation menu, select Service catalog and click Tariffs.

2.     On the Create tariff panel, fill in the tariff details:

·       Name – Type a short name for the tariff object; this is the name you will see in the select menus, (for example, SIP Phone Subscribers).

·       Currency – This indicates the currency in which you charge your customers.

NOTE: The currency for the tariff is chosen only once, and cannot be changed later.

·       Service – Select Voice Calls.

·       Applied to – Select Customer as this tariff will be used to charge your customers.

·       Managed by – Select Administrator only here, since we are setting up a service without the involvement of resellers.

 

3.     Click Save.

 

Add a customer tariff.

 

4.     On your customer tariff’s panel (SIP Phone Subscribers), click General info.

5.     On the General info panel, fill in the following information:

·       Default off-peak period – If you do not differentiate between peak and off-peak rates, just choose None; otherwise, select one of the previously defined off-peak periods.

·       Destination group set – If you wish to enter rates in the tariff not for every individual prefix, but for a whole group of prefixes at once, you should create a destination group set and destination groups beforehand. Leave this select menu empty for now.

·       Round up to, decimal places – Instead of calculating xDRs with a 5-decimal-place precision, round up xDR amount values (e.g. to cents, so that 1.16730 becomes 1.17).

·       Default formula – Default rating formula, which will be applied to every rate created in the tariff. If you leave this empty, the “old-style” rating will be used.

·       Short description – Type a short tariff description. This will be shown in the rate lookup on the admin interface and the self-care pages for your accounts and customers.

·       Description – Type an extended tariff description.

 

6.     Click Save.

 

Tariff general information.

 

7.     Repeat these steps to create a tariff to be applied for incoming calls.

 

Customer tariffs.

Enter Rates to the Tariff for Outgoing Calls

1.     On the navigation menu, select Service catalog and click Tariffs.

2.     Use the Tariff search panel to locate the tariff you created for outgoing calls (SIP Phone Subscribers). Specify one or more of the search criteria listed there and click Apply filters.

3.     On the Results panel, click your customer tariff name, which is also a link that redirects you to the edit tariff panel.

 

Search for tariffs.

 

4.     On your customer tariff’s panel (SIP Phone Subscribers), click Rates.

5.     On the Add rate panel, fill in the rate details:

·       Destination – Select a destination prefix from the list or type it directly, e.g. 420 for Czech Republic.

NOTE: You must create an entry for certain phone prefixes in the Destination register before creating a rate for them in the tariff.

·       First interval, seconds – Type a first billing unit in seconds.

·       Next interval, seconds – Type the next billing unit in seconds.

·       First price – Type a per minute price for the first interval.

·       Next price – Type a per minute price for the next interval

·       Off-peak first interval – Type a first billing unit in seconds for off‑peak time.

·       Off-peak next interval – Next billing unit in seconds for off‑peak time.

·       Off-peak first price – Type a per minute price for first interval for off‑peak time.

·       Off-peak next price – Type a per minute price for next interval for off-peak time.

NOTE: Off-peak fields appear only if this tariff has already been assigned an off-peak period on the General info panel.

·       Rate formula – Type a custom rating formula.

·       Effective from – If you want this rate to take effect sometime in the future, you can either type in a date manually, or use the calendar (click on the DD-MM-YYYY link).

NOTE: When using the calendar, you can specify that the date you are entering is in a different time zone than your present one. PortaBilling® will then automatically adjust the time.

6.     Click Save.

7.     Repeat these steps to enter more rates.

 

Add a new rate.

Enter Rates to the Tariff for Incoming Calls

timesaver The process of entering incoming call rates is similar to the one described above. If you do not actually charge your customers for incoming calls (in most cases, there is no cost associated with them), or charge them the same rate for incoming calls from any number, you can simply use the wildcard destination (|) and enter a single rate in the tariff.

Create a Product

Accounts for accessing your SIP services will be issued for a specific product. Products are a powerful tool that defines different ways to bill an account. Product definition is always realized through these steps: product definition, service definition and configuration and creation of a rating list.

 

1.     On the navigation menu, select Service catalog and click Products.

2.     On the Create product panel, fill in the product details:

·       Name – Type an internal product name that will be shown on the administrator interface.

·       Name visible to end users – Type a name of the product that will be shown to end users on their self-care interfaces.

·       Product type – Select Main product here.

·       Currency – Choose a currency the product will be priced in.

·       Managed by – Select Administrator only here, since we are setting up a service without the involvement of resellers.

·       Account default ACL – Choose an Access Control List (ACL) for accounts with this product assigned. ACLs control which objects end users can access to and which actions they can perform.

·       Account role – Select Phone line since this product is intended for making and receiving calls.

 

3.     Click Save.

 

Add a new product.

Included Services

Define which service types are included in the product. A service type is a description of the physical service provided to end users.

 

To add a service type:

1.     On your product’s panel, click Services.

2.     On the Services panel, click Add a service.

3.     In the Select services to add dialog box, select Voice calls and click Add.

 

Add a new service.

Service Configuration

Define the default values of service attributes for all accounts which this product will be assigned to. The configuration of a limit on simultaneous calls represents a good example of service attributes definition.

Limit Simultaneous Calls

Fair usage policy is very important for every ITSP since it helps prevent fraud and service abuse of products that provide customers with free calls.

 

To configure a limit on simultaneous calls within a product:

1.     On the Services panel, click Voice.

2.     On the Voice calls configuration panel, enable the Fair usage policy.

3.     Type the maximum number of simultaneous calls allowed. This allows you to limit the number of concurrent calls for accounts using this product, thus ensuring that it will be for personal use only.

Configure the Fair usage policy.

Usage Charges

The rating list has two functions: it defines permitted access points (nodes and access numbers) and specifies which tariff should be used for billing in each of these points. At this step two rating entries need to be created – one to be used to handle outgoing calls and one – to handle incoming calls.

 

1.     On your product’s panel, click Charges, then click Usage charges.

2.     On the Usage charges panel, click Add.

3.     Fill in the required information:

·       Service – Select Voice Calls.

·       Node – Select the PortaSIP® node.

·       Access code – Leave this field empty for the basic SIP service.

·       Tariff – Choose the tariff that will be used to calculate the charges for outgoing calls.

·       Overdraft protection – To configure overdraft protection for this product, consult the Configure Overdraft Protection Section within the Product section in the Overdraft Protection Configuration handbook.

 

4.      Click Save.

 

Add a rating entry for outgouung calls.

 

5.     On the Usage charges panel, click Add to add the second rating entry.

6.     Fill in the required information:

·       Service – Select Voice Calls.

·       Node – Select the PortaSIP® node.

·       Access code – Type INCOMING in this field.

·       Tariff – Choose the tariff that will be used to calculate the charges for incoming calls.

·       Overdraft protection – To configure overdraft protection for this product, consult the Configure Overdraft Protection Section within the Product section in the Overdraft Protection Configuration handbook.

 

7.     Click Save.

 

Add a rating entry for incoming calls.

Charges

On the Charges panel you can define special pricing such as volume discounts, regular payments such as subscriptions, and set up overdraft protection.

To access this panel, click Charges on your product’s panel, then click General info.

Overdraft protection

Use the slider to turn on / off overdraft protection. For obvious reason, turning off overdraft protection is not recommended for general use.

Recurring Charges

This allows you to choose a subscription plan for the product, so that this subscription plan will be automatically applied to every account with this product assigned. Select None as no subscription plan is specified for this service.

Volume Discounts

This allows you to assign a discount plan for the product. Select None as no volume discount plan is specified for this service.

 

Define charges information for the product.

 

Additional information

Define additional settings for the product.

1.     On your product’s panel, click Additional information.

2.     On the Additional information panel, fill in the following product information:

·       Notes – Open the Notes panel to make notes about the product.

·       Product group – A product group is a custom grouping of add-on products on the account self-care interface. Select None for this product.

·       Account default ACL – The access level assigned by default to new accounts created with this product. The ACL determines which operations may be performed by accounts on the self-care pages. The default ACL value “Account self-care” allows all possible operations.

·       Information URL – If you have an external server with a description of product features, enter the URL here (e.g. http://www.myproduct.com). Your customers will be able to go there from their self-care page.

·       Description – Your internal comments about the intended use of this product.

·       Description visible to end users – Provide a product description to be shown to end users on their self-care interfaces.

 

Aditional information about the product.

 

3.     Click Save.

Create Invoice Template

At the end of a billing period, you can produce invoices for your customers. The invoice reflects all transactions (calls, payments, refunds, subscription charges, etc.) that occurred during a specific period. It serves as the primary record of services provided to a certain customer as well as the primary record of their current status. To enable invoice generation you need to create a template for the invoice layout first.

 

_Hint_Glasses Even if you do not plan to distribute invoices to customers (e.g. invoices are produced by an external accounting system), it is still a good idea to create a template and use the word “statement” instead of “invoice.” This way your customers will always have up-to-date information about the history of their service consumption.

1.     In the  Management section of the PortaBilling® main page, choose Templates.

2.     Click the add Add icon.

3.     Fill in the required information:

·       Name Type a name for the template object; this will be used on the web interface.

·       Type – Select Invoice.

·       Managed By Select Administrator only.

·       Source – Specify the template creation source:

o   Upload External Template – Select this option to use a template created by an external design agency.

o   Design Template using Built-In Editor – Select this option to adjust a template using the built-in layout designer.

 

·       Pages – Select one of two invoice page formats:

o   A single page with totals only This is a traditional-style invoice. It consists of a single page with an invoice header (your company name, customer name, etc.), invoice fields (invoice number, invoice date) and an invoice footer (subtotal, total).

o   First page with totals + usage details attached on additional pages This template’s first page is identical to the single page with totals only invoice template. It has multiple pages that detail all of the charges included in the invoice.

 

·       Subtotal per Service This allows you to calculate (and respectively, show in the invoices) subtotals per service.

 

Add invoice template

 

4.     Click save_close Save & Close.

 

Check template added

Configure Taxation

Configure Taxation Method

If you calculate taxes for your customers using an external taxation company (e.g. SureTax or Avalara, for example), it is necessary to configure the respective taxation method.

1.     In the  Billing section of the PortaBilling® main page, choose Taxation.

2.     Select the Taxation Plugins tab and click add Add to add a taxation plug-in.

3.     Select the required plug-in (e.g. SureTax) from the Taxation Plugin list and click the Plugin Credentials link.

4.     Specify the plug-in credentials (for SureTax in our example):

·       URL – The URL for SureTax API access.

·       Login – Your login to access the SureTax API.

·       Key – The key to access the SureTax API.

5.     Click Save to save the credentials and save_add Save to save the plug-in configuration.

 

timesaver To configure taxation via the Avalara plug-in, please refer to the Configuring Taxation with Avalara handbook.

Define Your Taxes

If you include taxes in your rates, it is necessary to define which taxes will apply to your customers.

1.     In the  Billing section of the PortaBilling® main page, choose Taxation.

2.     While on the Custom Taxes tab, click add Add to add a new tax.

 

Define taxes

 

3.     Fill in the information about the new tax:

·       Name – Type in a name for the tax. This will be visible in the xDRs and in the taxation configuration for customers.

·       Tax rate (%) – Specify the rate value for this tax.

·       Applied To ­– Select which services this tax will be applied to: Usage Charges Only, All Recurring Charges or All Charges.

4.     Click the save_add Save icon on the left hand side of the row.

Create a Customer Class

A customer class provides the ability to define the business model and a group of parameters in a centralized manner, and then apply those parameters to many customers simultaneously.

 

1.     On the navigation menu, select Sales, then select Customer classes.

2.     On the Create a customer class panel, fill in the customer class details:

·       Name – Type a short name for this customer class.

·       Currency – Specify the currency in which you want to set the Collection threshold. When specified, this customer class can only be assigned to customers with the same currency. Once the currency selection is saved, it cannot be changed.

·       Business model – Select which customers this customer class will apply. Select Residential VoIP from the list.

·       Managed by – Select Administrator only.

 

3.     Click Save.

 

Create a customer class.

 

4.     On your customer class panel, click Finances, then click General info.

5.     On the General info panel, fill in general information about the customer class:

·       The billing period is closed – Select Automatically.

·       Configure the Statistics parameters:

o   Generate invoices – Leave this option enabled to generate invoices for customers who belong to this customer class.

o   Send statistics via email – Define how you will provide statistics to your customers.

 

·       Configure the Customer status changes parameters:

o   Suspend on insufficient funds for subscriptions – Specify whether PortaBilling® should check whether the customer has sufficient funds for their subscription charges.

 

General information about the customer class.

 

6.     On your customer class panel, click Finances, click Invoicing, then click Regular invoices.

7.     On the Regular invoices panel, specify the invoicing parameters for the customer class:

·       Use regular invoices – Enable this parameter to generate regular invoices for customers who belong to this customer class.

·       Invoice Template – Select the appropriate template which will be used to create a .pdf file with the invoice for your customers (e.g. Retail customer invoice template).

·       Generate invoice pdf – Leave the default option At the end of billing period selected.

·       Send invoices via email – Select Automatically to automatically send an invoice to a customer at the end of a billing period.

·       Configure Payment terms, Payment collection and Action upon non-payment parameters for customers. Please consult the PortaBilling® help for a description of parameters available here.

 

Reegular invoice configuration.

 

8.     On the Out-of-turn invoices panel, specify the invoicing parameters for the customer class as described in the previous step.

9.     On your customer class panel, click Finances, click Invoicing, and then click Taxation.

10.   On the Taxation panel, select one of the available taxation methods and specify the taxation parameters for it. Please consult the PortaBilling® help for a description of parameters available here. For the Fixed VAT Rate or Custom taxation methods, enable the Taxes included into rates / fees option and taxes that are calculated (for the Custom taxation method).

 

Specify the taxation parameters. 

 

11.   Click Save.

Create a Customer

A customer is an owner of accounts. The customer’s contact information is used to distribute account usage information, call statistics, invoices, and so on.

In this example we will describe how to create a new customer.

 

1.     On the navigation menu, select Sales, then select Customers.

2.     On the Create customer panel, fill in the customer details:

·       Name – Type a short name for the customer object; this will be used on the web interface.

·       Business model ­– A business model defines what type of service is to be provided to the customer. Select Residential VoIP for this customer.

·       Customer class – Customer class allows you to define a policy for automated payment collection. By choosing a specific class here the customer will automatically inherit all of the class properties (grace period, invoice template, etc.). Select the previously created customer class.

·       Billing period – Choose a billing period for the customer. A billing period defines the frequency of invoicing for this customer.

·       Billing period time zone – Choose a time zone in which customer’s billing period will be closed and invoices will be generated.

·       The last day of the billing period – This is a read-only field available only during customer creation. It shows the last date of the customer’s first billing period. Note that this date is shown in customer’s time zone.

·       Balance control - Specify the way the customer will pay for the service: Postpaid – after consuming the services; Prepaid – prior to consuming the services. Select Postpaid in this field.

·       Currency – Choose the currency in which this customer will be billed.

·       Credit limit – Assign a credit limit for the customer.

 

3.     Click Save.

 

Create a new customer.

Personal info

Define the customer's personal information (such as name, email address, and etc.).

1.     On your customer’s panel, click Personal, then click General info.

2.     On the Personal info panel, fill in the customer’s personal information and an email address for the receipt of accounting information. After the billing period is over, a list of xDRs and other statistics will be sent to this address.

Web self-care

Define credentials and preferred settings (such as language, time zone, date input and output formats) for this customer's self-care interface.

1.     On your customer’s panel, click Personal, click General info, then click Web self-care.

2.     On the Web self-care panel, define credentials for the customer self-care interface (such as login, password, time zone, etc.) and other preferred settings.

Subscriptions

Define whether to suspend the customer when their balance is insufficient to cover subscription charges.

1.     On your customer’s panel, click Finances, click General info, then click Subscriptions.

2.     On the Subscriptions panel, set the Suspend on insufficient funds parameter. This defines whether the system should check that the customer has sufficient funds for their subscription charges. 

Balance and credits

1.     On your customer’s panel, click Finances, click General info, then click Balance and credits.

2.     On the Balance and credits panel, define the Credit limit warning threshold parameter. The customer can be notified by email when his balance is dangerously close to the credit limit and service will soon be blocked. The threshold can be specified:

·       As a percentage (e.g. 90%). The warning will be sent when the customer’s balance exceeds that percentage of his credit limit. So, if the credit limit is USD 1000.00 and the threshold is 90%, a warning will be sent as soon as the balance exceeds USD 900.00. This is only applicable when the customer has a positive credit limit.

·       As an absolute value. The warning will be sent as soon as the balance goes above the specified value.

Invoices and taxation

Define whether to send this customer their statistics and invoices by email.

1.     On your customer’s panel, click Finances, and then click Invoices and taxation.

2.     On the Invoices and taxation panel, set the Send Statistics via email option to Summary only. This delivers a call summary only and do not attach a details file; this could be useful in the case of a large number of calls. Other options are Full Statistics (attach a complete list of xDRs) or Do not send (this option prevents the delivery of event statistics to this customer via email).

Services

1.     On your customer’s panel, click Services.

 

The Services panel provides an access to a group of panels where you can activate / deactivate various features of the voice calls service provided to the customer.

 

This is a convenient way for managing parameters which are the same for a whole set of accounts. Instead of trying to configure them for each individual account, you can define them once at the customer level, then specify in the account configuration that the value in the customer’s configuration be used. Should you wish to change this value later, you need only modify it once for the change to be automatically propagated to all accounts.

 

Please consult the PortaBilling® help for a description of parameters available here. For now you may leave these with their default values. If you change them later, these changes will automatically affect all accounts created under this customer.

 

2.     Click Save.

Create Accounts

An account identifies an end user who uses the service. In the case of Residential VoIP service, an account is regarded as a phone line having a unique phone number (DID). This phone number serves as an account ID within PortaBilling® and is provided by your termination partners. To create an account for your customers, you must first add DIDs to the DID inventory and then set up their charging parameters.

 

Perform the configuration of the DID Inventory according to the instructions provided in the Managing Available Phone Numbers (DID Inventory) handbook.

 

For information on how to create an account, refer to the Create an Account section of the Managing Available Phone Numbers (DID Inventory) handbook.

 

Set up Dialing Rules for the Customer (Optional)

Your customer may wish to use his own numbering format. For example, in order to make the transition from PSTN / PBX to VoIP as easy as possible, a customer will require that his users are able to dial phone numbers in exactly the same way as they used to on their PBX: 9 for an outside line, then 00 for international dialing or 0 for domestic, etc.

 

1.     On your customer’s panel, click Services, then click Voice.

2.     On the Voice calls configuration panel, click Dialing rules.

3.     On the Dialing rules configuration panel, enable the Dialing rules option.

4.     In the Dialing rule list, select Custom Dialing Rule and click .

5.     On the Edit dialing rule panel, use either the sample rule settings or create your own rules, such as the international dialing prefix, to adjust to your customer’s requirements.

6.     Click Save.

 

Thus, when one of this customer’s accounts tries to make a call to 900420212345678, the SIP server will send an authentication request to the billing engine. The billing engine will then apply this customer’s translation rule or node translation rule (if defined).

 

Title: Dialing rules - Description: Edit dialing rules.

Test the Whole System

1.     Configure your SIP user agent with the account ID and password. (See appendices for configuration guidelines for some SIP UAs). Then have your SIP user agent login to the SIP server.

2.     Check that the account is logged into the SIP server:

·       On the navigation menu, select Toolbox, then select Find account.

·       On the Account search panel, locate your account and check if the SIP indicator  is shown for it.

 

 

3.     Open the Account info panel and check that the Information about the SIP device field contains some values. These fields show the account’s current registration information.

 

Information about the SIP device.

 

4.     Try to make a call.

Check Log Files with Log Viewer

_Hint_Glasses You can browse the log file from the PortaBilling® web interface using a log viewer where you can see:

·       Merged SIP and billing logs to provide an entire overview of the session flow;

·       General information about a session in the form of a diagram between the main participants (e.g. SIP phones and PortaSwitch®) with the issue description and troubleshooting instructions for the most common issues; and

·       The ability to switch to the advanced log view if deeper investigation is required.

 

1.     On the navigation menu, select Toolbox, then select Trace session.

2.     On the Search session panel, specify the Time interval and Service type search criteria. To narrow the call log search, extend the search query by enabling additional filters and defining their values.

3.     Click Apply filters to produce the call attempts list.

 

Session result list

 

4.     To obtain a detailed log view, click the  next to the call you are interested in. The Session logs panel opens, displaying general information about the call in the form of a diagram.

 

 

5.     If deeper investigation is required, switch to the Advanced log view. In the lower frame you will see a detailed copy of all messages in this call. The upper frame provides a call-flow diagram, representing the main participating entities (SIP phone, SIP proxy, B2BUA, remote SIP UA, etc.). If you click on a particular dialogue element here, the lower frame scrolls automatically to display the corresponding message.

 

Title: Log viewer - Description: Session logs.

SIP Log Examples

SIP user agent attempts to make a call via the SIP server.

2017-02-01T11:21:26.633044Z|edgeproxy[25767]|POwd3XUemF|IS|1144| RECEIVED message from UDP:192.168.192.116:5060 at UDP:193.28.87.122:5060:

     INVITE sip:16045558901@193.28.87.122 SIP/2.0

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.bYwwiuPN5;rport=5060

    Max-Forwards: 70

     Contact: <sip:16045558915@192.168.192.116>;+sip.instance="<urn:uuid:bbad0958-3520-43c2-9ca8-d41713f25105>"

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 20 INVITE

     Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE

     Content-Type: application/sdp

     Supported: outbound

     User-Agent: Linphone/3.8.1 (belle-sip/1.4.0)

     Content-Length: 483

    

     v=0

     o=16045558915 3787 1313 IN IP4 192.168.192.116

     s=Talk

     c=IN IP4 192.168.192.116

     t=0 0

     a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics

     m=audio 7078 RTP/AVP 96 97 98 0 8 101 99 100

     a=rtpmap:96 opus/48000/2

     a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0

     a=rtpmap:97 speex/16000

     a=fmtp:97 vbr=on

     a=rtpmap:98 speex/8000

     a=fmtp:98 vbr=on

     a=rtpmap:101 telephone-event/48000

     a=rtpmap:99 telephone-event/16000

     a=rtpmap:100 telephone-event/8000

B2BUA receives this INVITE request transmitted by proxy.

2017-02-01T11:21:26.633420Z|edgeproxy[25767]|POwd3XUemF|IS|1442| SENDING message to UDP:193.28.87.210:5070 from UDP:193.28.87.122:5060:

     INVITE sip:16045558901@193.28.87.210:5070 SIP/2.0

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---4549614ce5ddb66b996f60efd635ce42;rport

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.bYwwiuPN5;rport=5060

     Max-Forwards: 69

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     Contact: <sip:16045558915@192.168.192.116;pinhole=UDP:192.168.192.116:5060>;+sip.instance="<urn:uuid:bbad0958-3520-43c2-9ca8-d41713f25105>"

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 20 INVITE

     Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE

     Content-Type: application/sdp

     Supported: outbound

     User-Agent: Linphone/3.8.1 (belle-sip/1.4.0)

     PortaOne-Requested-URI: sip:16045558901@193.28.87.122

     PortaSIP-Notify: NAT=192.168.192.116;NAT-type=4

     Content-Length: 483

    

     v=0

     o=16045558915 3787 1313 IN IP4 192.168.192.116

     s=Talk

     c=IN IP4 192.168.192.116

     t=0 0

     a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics

     m=audio 7078 RTP/AVP 96 97 98 0 8 101 99 100

     a=rtpmap:96 opus/48000/2

     a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0

     a=rtpmap:97 speex/16000

     a=fmtp:97 vbr=on

     a=rtpmap:98 speex/8000

     a=fmtp:98 vbr=on

     a=rtpmap:101 telephone-event/48000

     a=rtpmap:99 telephone-event/16000

     a=rtpmap:100 telephone-event/8000

PortaSIP requests digest authentication from the SIP UA, providing a challenge.

2017-02-01T11:21:26.666160Z|b2bua[19688]|POwd3XUemF|IS|597| SENDING message to UDP:193.28.87.122:5060 from UDP:193.28.87.210:5070:

     SIP/2.0 401 Unauthorized

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---4549614ce5ddb66b996f60efd635ce42;rport=5060

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.bYwwiuPN5;rport=5060

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     Call-ID: POwd3XUemF

     CSeq: 20 INVITE

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     To: sip:16045558901@193.28.87.122

     Server: Sippy

     WWW-Authenticate: Digest realm="sip-1.performance",nonce="ea215b1d48054efc60e3f9dee96360e692e5"

     Content-Length: 0

 

2017-02-01T11:21:26.666628Z|edgeproxy[25767]|POwd3XUemF|IS|598| RECEIVED message from UDP:193.28.87.210:5070 at UDP:193.28.87.122:5060:

     SIP/2.0 401 Unauthorized

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---4549614ce5ddb66b996f60efd635ce42;rport=5060

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.bYwwiuPN5;rport=5060

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 20 INVITE

     Server: Sippy

     WWW-Authenticate: Digest realm="sip-1.performance",nonce="ea215b1d48054efc60e3f9dee96360e692e5"

     Content-Length: 0

 

2017-02-01T11:21:26.666857Z|edgeproxy[25767]|POwd3XUemF|IS|492| SENDING message to UDP:192.168.192.116:5060 from UDP:193.28.87.122:5060:

     SIP/2.0 401 Unauthorized

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.bYwwiuPN5;rport=5060

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 20 INVITE

     Server: Sippy

     WWW-Authenticate: Digest realm="sip-1.performance",nonce="ea215b1d48054efc60e3f9dee96360e692e5"

     Content-Length: 0

SIP UA acknowledges that it has received an authorization request (ACKs will be skipped in the rest of the document.) and sends another INVITE request.

2017-02-01T11:21:26.705257Z|edgeproxy[25767]|POwd3XUemF|IS|464| RECEIVED message from UDP:192.168.192.116:5060 at UDP:193.28.87.122:5060:

     ACK sip:16045558901@193.28.87.122 SIP/2.0

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.bYwwiuPN5;rport=5060

     Max-Forwards: 70

     Contact: <sip:16045558915@192.168.192.116>;+sip.instance="<urn:uuid:bbad0958-3520-43c2-9ca8-d41713f25105>"

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 20 ACK

     Content-Length: 0

 

2017-02-01T11:21:26.705642Z|edgeproxy[25767]|POwd3XUemF|IS|1346| RECEIVED message from UDP:192.168.192.116:5060 at UDP:193.28.87.122:5060:

     INVITE sip:16045558901@193.28.87.122 SIP/2.0

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.3LkfQ1Mu3;rport=5060

     Max-Forwards: 70

     Contact: <sip:16045558915@192.168.192.116>;+sip.instance="<urn:uuid:bbad0958-3520-43c2-9ca8-d41713f25105>"

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 21 INVITE

     Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE

     Content-Type: application/sdp

     Supported: outbound

     User-Agent: Linphone/3.8.1 (belle-sip/1.4.0)

     Authorization: Digest realm="sip-1.performance", nonce="ea215b1d48054efc60e3f9dee96360e692e5", username="16045558915", uri="sip:16045558901@193.28.87.122", response="fde8d9b6581af9937b46ff9125261d49"

     Content-Length: 483

    

     v=0

     o=16045558915 3787 1313 IN IP4 192.168.192.116

     s=Talk

     c=IN IP4 192.168.192.116

     t=0 0

     a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics

     m=audio 7078 RTP/AVP 96 97 98 0 8 101 99 100

     a=rtpmap:96 opus/48000/2

     a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0

     a=rtpmap:97 speex/16000

     a=fmtp:97 vbr=on

     a=rtpmap:98 speex/8000

     a=fmtp:98 vbr=on

     a=rtpmap:101 telephone-event/48000

     a=rtpmap:99 telephone-event/16000

     a=rtpmap:100 telephone-event/8000

Proxy receives a reply to the authorization request, with a response to the challenge.

2017-02-01T11:21:26.732244Z|b2bua[19688]|POwd3XUemF|IS|1645| RECEIVED message from UDP:193.28.87.122:5060 at UDP:193.28.87.210:5070:

     INVITE sip:16045558901@193.28.87.210:5070 SIP/2.0

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---98a275dd1478e5ea44c8274aa9c751b2;rport

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.3LkfQ1Mu3;rport=5060

     Max-Forwards: 69

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     Contact: <sip:16045558915@192.168.192.116;pinhole=UDP:192.168.192.116:5060>;+sip.instance="<urn:uuid:bbad0958-3520-43c2-9ca8-d41713f25105>"

     To: sip:16045558901@193.28.87.122

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 21 INVITE

     Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, UPDATE

     Content-Type: application/sdp

     Supported: outbound

     User-Agent: Linphone/3.8.1 (belle-sip/1.4.0)

     Authorization: Digest realm="sip-1.performance", nonce="ea215b1d48054efc60e3f9dee96360e692e5", username="16045558915", uri="sip:16045558901@193.28.87.122", response="fde8d9b6581af9937b46ff9125261d49"

     PortaOne-Requested-URI: sip:16045558901@193.28.87.122

     PortaSIP-Notify: NAT=192.168.192.116;NAT-type=4

     Content-Length: 483

    

     v=0

     o=16045558915 3787 1313 IN IP4 192.168.192.116

     s=Talk

     c=IN IP4 192.168.192.116

     t=0 0

     a=rtcp-xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics

     m=audio 7078 RTP/AVP 96 97 98 0 8 101 99 100

     a=rtpmap:96 opus/48000/2

     a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0

     a=rtpmap:97 speex/16000

     a=fmtp:97 vbr=on

     a=rtpmap:98 speex/8000

     a=fmtp:98 vbr=on

     a=rtpmap:101 telephone-event/48000

     a=rtpmap:99 telephone-event/16000

     a=rtpmap:100 telephone-event/8000

B2BUA is informed that the request has been received and is being processed (100 Trying responses will be omitted in the rest of the document.)

2017-02-01T11:21:26.737441Z|b2bua[19688]|POwd3XUemF|IS|585| SENDING message to UDP:193.28.87.122:5060 from UDP:193.28.87.210:5070:

     SIP/2.0 100 Trying

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---98a275dd1478e5ea44c8274aa9c751b2;rport=5060

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.3LkfQ1Mu3;rport=5060

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     Call-ID: POwd3XUemF

     CSeq: 21 INVITE

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     To: sip:16045558901@193.28.87.122

     Server: Sippy

     Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE

     Content-Length: 0

2017-02-01T11:21:26.739497Z|b2bua[19688]|POwd3XUemF|IG|55| Source conf-id is not trusted, generating new conf-id

B2BUA sends an authorization request to the billing.

2017-02-01T11:21:26.740523Z|b2bua[19688]|POwd3XUemF|IA|1241| sending AAA request:

     b2bua_request_serial             = 6BBA066E

     User-Name                        = "16045558915"

     Digest-Realm                     = "sip-1.performance"

     Digest-Nonce                     = "ea215b1d48054efc60e3f9dee96360e692e5"

     Digest-Method                    = "INVITE"

     Digest-URI                       = "sip:16045558901@193.28.87.122"

     Digest-Algorithm                 = "MD5"

     Digest-Username                  = "16045558915"

     Digest-Response                  = "fde8d9b6581af9937b46ff9125261d49"

     Calling-Station-Id               = "16045558915"

     Called-Station-Id                = "16045558901"

     h323-conf-id                     = "D241210E 814932D0 742B5D37 7482DD36"

     call-id                          = "POwd3XUemF"

     h323-remote-address              = "192.168.192.116"

     PortaOne-Transport-Protocol      = "SIP"

     h323-ivr-out                     = "PortaBilling_AuthMethod:INVITE"

     PortaOne-Service-Features        = "routing=1;version=25.0;ivrs=internal"

     h323-ivr-out                     = "PortaBilling_Seed:2930590810"

     PortaOne-Calling-Party           = "display-id=16045558915;privacy=0"

     h323-ivr-out                     = "PortaSIP_Aux_Info:auth_life=128470/1/0;auth_cnt=1;CC_now=128470/1;pid=19688;request_type=routing"

B2BUA sends INVITE to the gateway/proxy in the route list.

2017-02-01T11:21:26.970464Z|b2bua[19688]|POwd3XUemF|IS|1354| SENDING message to UDP:193.28.87.122:5060 from UDP:193.28.87.210:5070:

     INVITE sip:16045558901@192.168.222.48:5060 SIP/2.0

     Via: SIP/2.0/UDP 193.28.87.210:5070;rport;branch=z9hG4bK-ww4asa7urdxgqn2u

     Route: <sip:193.28.87.122:5060;transport=udp;lr;pinhole=UDP:192.168.222.48:5060>

     Max-Forwards: 70

     Call-ID: POwd3XUemF

     CSeq: 186 INVITE

     From: <sip:16045558915@193.28.87.122>;tag=w6ab6y377jpelg2h.o

     To: <sip:16045558901@193.28.87.122>

     Contact: sip:193.28.87.210:5070

     Expires: 300

     User-Agent: Sippy

     cisco-GUID: 746730273-3581942256-3384553610-3384553610

     h323-conf-id: 746730273-3581942256-3384553610-3384553610

     P-Asserted-Identity: <sip:16045558915@193.28.87.122>

     Remote-Party-ID: <sip:16045558915@193.28.87.122>;party=calling

     Content-disposition: session

     Portasip-3264-action: offer 1

     Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE

     Content-Length: 412

     Content-Type: application/sdp

    

     v=0

     o=Sippy 4421442246427894274 1 IN IP4 193.28.87.210

     s=Talk

     t=0 0

     m=audio 43278 RTP/AVP 96 97 98 0 8 101 99 100

     c=IN IP4 193.28.87.210

     a=rtpmap:96 opus/48000/2

     a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0

     a=rtpmap:97 speex/16000

     a=fmtp:97 vbr=on

     a=rtpmap:98 speex/8000

     a=fmtp:98 vbr=on

     a=rtpmap:101 telephone-event/48000

     a=rtpmap:99 telephone-event/16000

     a=rtpmap:100 telephone-event/8000

No reply is received from this gateway/proxy, so PortaSIP re-sends the invite message several times.

2017-02-01T11:21:26.972351Z|edgeproxy[25767]|POwd3XUemF|IS|1360| RECEIVED message from UDP:193.28.87.210:5070 at UDP:193.28.87.122:5060:

     INVITE sip:16045558901@192.168.222.48:5060 SIP/2.0

     Via: SIP/2.0/UDP 193.28.87.210:5070;rport=5070;branch=z9hG4bK-ww4asa7urdxgqn2u

     Max-Forwards: 70

     Route: <sip:193.28.87.122:5060;transport=udp;lr;pinhole=UDP:192.168.222.48:5060>

     Contact: sip:193.28.87.210:5070

     To: <sip:16045558901@193.28.87.122>

     From: <sip:16045558915@193.28.87.122>;tag=w6ab6y377jpelg2h.o

     Call-ID: POwd3XUemF

     CSeq: 186 INVITE

     Expires: 300

     Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE

     Content-Disposition: session

     Content-Type: application/sdp

     User-Agent: Sippy

     P-Asserted-Identity: <sip:16045558915@193.28.87.122>

     Remote-Party-ID: <sip:16045558915@193.28.87.122>;party=calling

     cisco-GUID: 746730273-3581942256-3384553610-3384553610

     h323-conf-id: 746730273-3581942256-3384553610-3384553610

     Portasip-3264-action: offer 1

     Content-Length: 412

    

     v=0

     o=Sippy 4421442246427894274 1 IN IP4 193.28.87.210

     s=Talk

     t=0 0

     m=audio 43278 RTP/AVP 96 97 98 0 8 101 99 100

     c=IN IP4 193.28.87.210

     a=rtpmap:96 opus/48000/2

     a=fmtp:96 useinbandfec=1; stereo=0; sprop-stereo=0

     a=rtpmap:97 speex/16000

     a=fmtp:97 vbr=on

     a=rtpmap:98 speex/8000

     a=fmtp:98 vbr=on

     a=rtpmap:101 telephone-event/48000

     a=rtpmap:99 telephone-event/16000

     a=rtpmap:100 telephone-event/8000

Finally, the gateway is available, so we get a reply stating that it has started to process the call.

2017-02-01T11:21:27.012370Z|edgeproxy[25767]|POwd3XUemF|IS|622| RECEIVED message from UDP:192.168.222.48:5060 at UDP:193.28.87.122:5060:

     SIP/2.0 100 Trying

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---a3a08444dbf8faacc9a14395b2b56965

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---b46e97ef6f9e4c7740bc99a129d4b8c0;rport

     Via: SIP/2.0/UDP 193.28.87.210:5070;rport=5070;branch=z9hG4bK-ww4asa7urdxgqn2u

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     To: <sip:16045558901@193.28.87.122>

     From: <sip:16045558915@193.28.87.122>;tag=w6ab6y377jpelg2h.o

     Call-ID: POwd3XUemF

     CSeq: 186 INVITE

     Server: Linksys/SPA942-6.1.5(a)

     Content-Length: 0

The SIP proxy sends a ringback, so the user on the SIP phone will hear ringing.

2017-02-01T11:21:27.060091Z|edgeproxy[25767]|POwd3XUemF|IS|567| SENDING message to UDP:192.168.192.116:5060 from UDP:193.28.87.122:5060:

     SIP/2.0 180 Ringing

     Via: SIP/2.0/UDP 192.168.192.116:5060;branch=z9hG4bK.3LkfQ1Mu3;rport=5060

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     Contact: sip:193.28.87.210:5070

     To: sip:16045558901@193.28.87.122;tag=khapqwb6zbbogyl2.i

     From: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     Call-ID: POwd3XUemF

     CSeq: 21 INVITE

     Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE

     Server: Sippy

     Portasip-3264-action: none 1

     Content-Length: 0

The called party answers the call.

2017-02-01T11:21:33.019170Z|edgeproxy[25767]|POwd3XUemF|IS|1025| RECEIVED message from UDP:192.168.222.48:5060 at UDP:193.28.87.122:5060:

     SIP/2.0 200 OK

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---a3a08444dbf8faacc9a14395b2b56965

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---b46e97ef6f9e4c7740bc99a129d4b8c0;rport

     Via: SIP/2.0/UDP 193.28.87.210:5070;rport=5070;branch=z9hG4bK-ww4asa7urdxgqn2u

     Record-Route: <sip:193.28.87.122:5060;transport=udp;lr>

     Contact: "16045558901" <sip:16045558901@192.168.222.48:5060>

     To: <sip:16045558901@193.28.87.122>;tag=80cf06e8ca14b820i1

     From: <sip:16045558915@193.28.87.122>;tag=w6ab6y377jpelg2h.o

     Call-ID: POwd3XUemF

     CSeq: 186 INVITE

     Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER

     Content-Type: application/sdp

     Server: Linksys/SPA942-6.1.5(a)

     Supported: replaces

     Content-Length: 205

    

     v=0

     o=- 73577 73577 IN IP4 192.168.222.48

     s=-

     c=IN IP4 192.168.222.48

     t=0 0

     m=audio 16420 RTP/AVP 0 99

     a=rtpmap:0 PCMU/8000

     a=rtpmap:99 telephone-event/8000

     a=fmtp:99 0-15

     a=ptime:20

     a=sendrecv

The called party hangs up; the call termination process is started.

2017-02-01T11:21:44.545219Z|edgeproxy[25767]|POwd3XUemF|IS|457| RECEIVED message from UDP:192.168.222.48:5060 at UDP:193.28.87.122:5060:

     BYE sip:193.28.87.210:5070 SIP/2.0

     Via: SIP/2.0/UDP 192.168.222.48:5060;branch=z9hG4bK-83f50038

     Max-Forwards: 70

     Route: <sip:193.28.87.122:5060;transport=udp;lr>

     To: <sip:16045558915@193.28.87.122>;tag=w6ab6y377jpelg2h.o

     From: <sip:16045558901@193.28.87.122>;tag=80cf06e8ca14b820i1

     Call-ID: POwd3XUemF

     CSeq: 101 BYE

     User-Agent: Linksys/SPA942-6.1.5(a)

     Content-Length: 0

B2BUA confirms call disconnection.

2017-02-01T11:21:44.596446Z|edgeproxy[25767]|POwd3XUemF|IS|448| SENDING message to UDP:192.168.222.48:5060 from UDP:193.28.87.122:5060:

     SIP/2.0 200 OK

     Via: SIP/2.0/UDP 192.168.222.48:5060;branch=z9hG4bK-83f50038;rport=5060

     To: <sip:16045558915@193.28.87.122>;tag=w6ab6y377jpelg2h.o

     From: <sip:16045558901@193.28.87.122>;tag=80cf06e8ca14b820i1

     Call-ID: POwd3XUemF

     CSeq: 101 BYE

     Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE

     Server: Sippy

     Content-Length: 0

SIP user agent receives BYE and confirms end of the calls

2017-02-01T11:21:44.705358Z|edgeproxy[25767]|POwd3XUemF|IS|849| SENDING message to UDP:192.168.192.116:5060 from UDP:193.28.87.122:5060:

     BYE sip:16045558915@192.168.192.116 SIP/2.0

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---33674005c0122524c97d1a497c2b981e;rport

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---2751cb065207e9850ecb6b0a5300eabc;rport

     Via: SIP/2.0/UDP 193.28.87.210:5070;rport=5070;branch=z9hG4bK-hpv6c6xwclaserxf

     Max-Forwards: 69

     Contact: sip:193.28.87.210:5070

     To: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     From: sip:16045558901@193.28.87.122;tag=khapqwb6zbbogyl2.i

     Call-ID: POwd3XUemF

     CSeq: 778 BYE

     Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE

     User-Agent: Sippy

     cisco-GUID: 3527483662-2169058000-1948998967-1954733366

     h323-conf-id: 3527483662-2169058000-1948998967-1954733366

     Content-Length: 0

2017-02-01T11:21:44.759095Z|edgeproxy[25767]|POwd3XUemF|IS|613| RECEIVED message from UDP:192.168.192.116:5060 at UDP:193.28.87.122:5060:

     SIP/2.0 200 Ok

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---33674005c0122524c97d1a497c2b981e;rport

     Via: SIP/2.0/UDP 193.28.87.122:5060;branch=z9hG4bK-524287-1---2751cb065207e9850ecb6b0a5300eabc;rport

     Via: SIP/2.0/UDP 193.28.87.210:5070;rport=5070;branch=z9hG4bK-hpv6c6xwclaserxf

     To: <sip:16045558915@193.28.87.122>;tag=DScSadWsg

     From: <sip:16045558901@193.28.87.122>;tag=khapqwb6zbbogyl2.i

     Call-ID: POwd3XUemF

     CSeq: 778 BYE

     Supported: outbound

     User-Agent: Linphone/3.8.1 (belle-sip/1.4.0)

     Content-Length: 0

B2BUA sends stop accounting to the billing.

2017-02-01T11:21:45.127217Z|b2bua[19688]|POwd3XUemF|IA|1679| sending Acct Stop (Originate):

     h323-call-origin                 = "originate"

     h323-call-type                   = "VoIP"

     PortaOne-Transport-Protocol      = "SIP"

     h323-setup-time                  = "11:21:26.939 GMT Wed Feb 1 2017"

     User-Name                        = "16045558915"

     Calling-Station-Id               = "16045558915"

     Called-Station-Id                = "16045558901"

     h323-conf-id                     = "D241210E 814932D0 742B5D37 7482DD36"

     call-id                          = "POwd3XUemF"

     Acct-Session-Id                  = "POwd3XUemF"

     h323-remote-address              = "SIP-UA"

     h323-ivr-out                     = "PortaSIP_Aux_Info:CC=128470/2;route_seq=(2, 0);route_id=140470106466976;cc_id=140470176278248;pid=19688;forward-on-fail=yes"

     h323-ivr-out                     = "PortaBilling_RatePattern:VOICEONNET\RX|16045558901"

     h323-ivr-out                     = "PortaBilling_AccessCode:OUTGOING"

     h323-ivr-out                     = "PortaBilling_Seed:2930590810"

     h323-remote-id                   = "SIP-UA"

     PortaOne-Calling-Party           = "x=2509;bill-to=16045558915;media-time=12;net=0;ip=192.168.192.116;site=2509"

     PortaOne-Called-Party            = "x=2509;bill-to=16045558901;net=0;site=2509"

     h323-connect-time                = "11:21:33.075 GMT Wed Feb 1 2017"

     h323-voice-quality               = "0"

     Acct-Terminate-Cause             = "User-Request"

     h323-disconnect-cause            = "0"

     alert-timepoint                  = "11:21:27.055 GMT Wed Feb 1 2017"

     h323-disconnect-time             = "11:21:45.126 GMT Wed Feb 1 2017"

     Acct-Session-Time                = "13"

     Acct-Status-Type                 = "Stop"

     Event-Timestamp                  = "1485948105"

The call is finished.

BE Log Examples

PortaBilling receives the authorization request.

Feb 01 11:21:26 [0]: Processing request (BE ver:mr61,cluster:25393)...
Feb 01 11:21:26 [3]: Attributes:
NAS-IP-Address                     = '193.28.87.122'
User-Name                          = '16045558915'
Called-Station-Id                  = '16045558901'
Calling-Station-Id                 = '16045558915'
h323-conf-id                       = 'D241210E 814932D0 742B5D37 7482DD36'
call-id                            = 'POwd3XUemF'
Digest-Username                    = '16045558915'
Digest-Realm                       = 'sip-1.performance'
Digest-Nonce                       = 'ea215b1d48054efc60e3f9dee96360e692e5'
Digest-URI                         = 'sip:16045558901@193.28.87.122'
Digest-Method                      = 'INVITE'
Digest-Algorithm                   = 'MD5'
Digest-Response                    = 'fde8d9b6581af9937b46ff9125261d49'
h323-remote-address                = '192.168.192.116'
PortaOne-Transport-Protocol        = 'SIP'
h323-ivr-out                       = 'PortaBilling_AuthMethod:INVITE'
PortaOne-Service-Features          = 'routing=1;version=25.0;ivrs=internal'
h323-ivr-out                       = 'PortaBilling_Seed:2930590810'
PortaOne-Calling-Party             = 'display-id=16045558915;privacy=0'
h323-ivr-out                       = 'PortaSIP_Aux_Info:auth_life=128470/1/0;auth_cnt=1;CC_now=128470/1;pid=19688;request_type=routing'
NAS-Port                           = '5060'

Feb 01 11:21:26 [0]: <Session id="D241210E 814932D0 742B5D37 7482DD36" valid="1" i_service_type="3" i_env="8" created="Feb 01 11:21:26" expires="Feb 01 11:21:56"/>

Feb 01 11:21:26 [3]: Processing account authorization: <Authenticate::INVITE nas="ak-techwr.portaone.com" at="Feb 01 11:21:26" from="16045558915" serial="0"/> requested by <Node i="1803" name="PortaSIP" vendorCode="portaone" typeCode="portasip" aaaProtocol="RADIUS"/>

 

Feb 01 11:21:26 [4]: Found account: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/> of <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/>

Account information is located in the database.

Feb 01 11:21:26 [4]: Verification of password using method 'digest_response': success

Password verification is successful.

Feb 01 11:21:26 [4]: Gained the new deposit for this session: <Session::Deposit i_account="2130584" i_customer="2509" session_id="D241210E 814932D0 742B5D37 7482DD36" amount="1043.15945" customer_lock="1" created="2017 Feb 01 11:21:26"/>

Feb 01 11:21:26 [5]: Translated "16045558901" stripping feature codes to "16045558901" in <DialRule i="-1" name="^Implicit"/> evaluating "feature_code($_);"
Feb 01 11:21:26 [5]: Translated "16045558901" to canonic "16045558901" in <DialRule i="-1" name="cld translate override"/> evaluating "s/^\*3164\*//;"
Feb 01 11:21:26 [5]: Translated "16045558901" to canonic "16045558901" in <DialRule i="-1" name="^Implicit"/> evaluating "s/^\+//;"

Feb 01 11:21:26 [4]: Found account: <Account i="2130584" id="16045558901" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/> of <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/>

Feb 01 11:21:26 [3]: ::on_authorize_account_translate[voice]: Found destination <Account i="2123423" id="16045558901" model="credit" balance="0.00022" activation="2017 Jan 04 23:00:00"/> matching id '16045558901' for cld '16045558901'

Feb 01 11:21:45 [4]: Synchronized: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/>

Feb 01 11:21:45 [4]: Synchronized: <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/>

The phone number is not changed as it is already in the E.164 format.

Feb 01 11:21:26 [5]: Looking for Porta::Rating::Rate::Standard matching <RateLookup pattern="VOICEONNET\RX|16045558901" seed="2930590810" effectiveFrom="2017 Feb 01 11:21:26" effectiveTo="2017 Feb 01 11:23:26" from="2017 Feb 01 11:21:26" to="2017 Feb 01 11:23:26" bill="2017 Feb 01 11:21:26"/> in <Tariff i="2461" name="SIP Phone Subscribers"/>

Feb 01 11:21:26 [3]: Subtracting locked session deposits 1043.15945 from the total customer's available funds 1043.15945: 0.00000

Feb 01 11:21:26 [4]: Got <Quota base="session-time" granted="62589567" presented="62589567" consumed="0" retained="0" unit="second" allocated-funds="1043.15945" history="availableFunds(1043.15945)+62589567x1@0.00100"/>

Maximum session time is calculated according to the available funds and rate.

Feb 01 11:21:26 [4]: Routing result:
<Route::PointList route-lookup-cld="16045558901" cld="16045558901" i_routing_plan="-1" routing_plan_name="LCR with all Available Routes">
  <Route::Point order="+0+0+0+0+0+0+0.00000000" p="INTERNAL" cld="16045558901" gwname="INTERNAL" description="Calls to Media Server"/>
</Route::PointList>

Looking for possible routes.

Feb 01 11:21:26 [3]: Computing routing ...

Feb 01 11:21:26 [3]: AAA::Authentication acknowledge response, attributes:
h323-return-code                   = '0'
h323-ivr-in                        = 'PortaBilling_CompleteNumber:16045558901'
h323-ivr-in                        = 'DURATION:62589567'
h323-ivr-in                        = 'Product:SIP Subscribers'
h323-ivr-in                        = 'Tariff:SIP Phone Subscribers'
h323-ivr-in                        = 'PortaBilling_NodeId:ak-techwr.portaone.com'
h323-ivr-in                        = 'PortaBilling_AccessCode:OUTGOING'
h323-ivr-in                        = 'PortaBilling_Seed:2930590810'
h323-ivr-in                        = 'PortaBilling_RatePattern:VOICEONNET\RX|16045558901'
h323-ivr-in                        = 'PortaBilling_Authorize:base=session-time;avail=62589567;retained=0;expires=1491132081'
h323-billing-model                 = '0'
PortaOne-Service-Features          = 'moh=1'
h323-credit-time                   = '62589567'
PortaOne-Calling-Party             = 'site=2509;bill-to=16045558915;x=2509;net=0'
PortaOne-Called-Party              = 'site=2509;bill-to=16045558901;x=2509;net=0'
h323-currency                      = 'USD'
h323-preferred-lang                = 'en'
Framed-Route                       = 'r=;g-hunt=seq'
Framed-Route                       = 'p_=SIP-UA;gwname=SIP-UA;expires=0;forward-on-fail=1;moh=1;patience=30;grp=-;acct=trying-start-stop'
Framed-Route                       = 'r_=;bill-to=16045558901;rate-pattern=INCOMING%5CNRX|16045558901;access-code=INCOMING;h323-cid=1'
Framed-Route                       = 'p__=SIP-UA;gwname=SIP-UA;expires=30;moh=1;patience=30;grp=-;acct=trying-start-stop'
Framed-Route                       = 'r__=;rate-pattern=UMRECORD|16045558901;access-code=FOLLOWME;d.bill-to=;d.net=;d.x=;d.s=;f.bill-to=16045558901;f.net=0;f.x=2509;f.s=2509;fcli=16045558901;h323-cid=2'
Framed-Route                       = 'p___=INTERNAL;gwname=INTERNAL;expires=300;d.bill-to=16045558901;clit=1;moh=1;patience=30;app-type=UMRECORD'
Feb 01 11:21:26 [4]: This session expires in cache at Feb 01 11:21:56 (in 30s)
Feb 01 11:21:26 [0]: ...Done Authorize::INVITE in 0.179246 seconds, 0.052289 spent in SQL queries. Dispatch+activation: 0.000107+0.000507 seconds.

An authorization response is sent to PortaSIP.

Feb 01 11:21:45 [0]: Processing request (BE ver:mr60,cluster:25393)...
Feb 01 11:21:45 [3]: Attributes:
NAS-IP-Address                     = '193.28.87.122'
User-Name                          = '16045558915'
Called-Station-Id                  = '16045558901'
Calling-Station-Id                 = '16045558915'
Acct-Status-Type                   = 'Stop'
h323-call-origin                   = 'answer'
h323-call-type                     = 'VoIP'
h323-setup-time                    = '11:21:26.936 GMT Wed Feb 1 2017'
alert-timepoint                    = '11:21:27.055 GMT Wed Feb 1 2017'
h323-connect-time                  = '11:21:33.102 GMT Wed Feb 1 2017'
h323-disconnect-time               = '11:21:45.125 GMT Wed Feb 1 2017'
h323-disconnect-cause              = '0'
h323-voice-quality                 = '0'
h323-conf-id                       = 'D241210E 814932D0 742B5D37 7482DD36'
call-id                            = 'POwd3XUemF'
Acct-Session-Id                    = 'POwd3XUemF'
Acct-Session-Time                  = '13'
Acct-Delay-Time                    = '0'
PortaOne-Transport-Protocol        = 'SIP'
h323-remote-address                = '192.168.192.116'
h323-ivr-out                       = 'PortaBilling_AccessCode:OUTGOING'
h323-ivr-out                       = 'PortaBilling_Seed:2930590810'
h323-ivr-out                       = 'PortaSIP_Aux_Info:CC=128470/1;cc_id=140470176278248;pid=19688'
PortaOne-Called-Party              = 'x=2509;bill-to=16045558901;net=0;site=2509'
Acct-Terminate-Cause               = 'User-Request'
Event-Timestamp                    = '1485948105'
NAS-Port                           = '5060'

The billing re-uses information in the call cache to speed up account info lookup.

Feb 01 11:21:45 [0]: <Session id="D241210E 814932D0 742B5D37 7482DD36" valid="1" i_service_type="3" i_env="8" created="Feb 01 11:21:26" modified="Feb 01 11:21:45" expires="Feb 01 11:21:56"/>

 Feb 01 11:21:45 [3]: Processing accounting: <Accounting::VOICE-answer-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="3"/>

Feb 01 11:21:45 [4]: Copied account: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/> of <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/> from <Authorize::INVITE nas="ak-techwr.portaone.com" at="Feb 01 11:21:26" from="16045558915" cld="16045558901" serial="0"/> into current request

Feb 01 11:21:45 [4]: Synchronized: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/>

Feb 01 11:21:45 [4]: Synchronized: <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/>

Feb 01 11:21:45 [4]: Successful update of the session deposit: <Session::Deposit i_account="2130584" i_customer="2509" session_id="D241210E 814932D0 742B5D37 7482DD36" amount="1043.15945" customer_lock="1" opened="2017 Feb 01 11:21:26" closing="2017 Feb 01 11:21:50"/>

Feb 01 11:21:45 [3]: Found <Connection i="2015" name="SIP-to-SIP (on-net) calls" matchClass="VOICE/originate/VoIP:SIP"/> matched by routingGatewayId('SIP-UA'), remoteIp(empty), routingCld(empty)
Feb 01 11:21:45 [4]: Found vendor: <Vendor i="1699" name="Internal Vendor"/>

Feb 01 11:21:45 [3]: AAA::Accounting response, no attributes.
Feb 01 11:21:45 [4]: This session closes in cache at Feb 01 11:22:15 (in 30s)
Feb 01 11:21:45 [0]: ...Done Accounting::VOICE-originate-VoIP::Stop in 0.228812 seconds, 0.183026 spent in SQL queries. Dispatch+activation: 0.002478+0.105232 seconds.

 Connection matched.

Feb 01 11:21:45 [0]: Processing request (BE ver:mr60,cluster:25393)...
Feb 01 11:21:45 [3]: Attributes:
NAS-IP-Address                     = '193.28.87.122'
User-Name                          = '16045558915'
Called-Station-Id                  = '16045558901'
Calling-Station-Id                 = '16045558915'
Acct-Status-Type                   = 'Stop'
h323-call-origin                   = 'answer'
h323-call-type                     = 'VoIP'
h323-setup-time                    = '11:21:26.936 GMT Wed Feb 1 2017'
alert-timepoint                    = '11:21:27.055 GMT Wed Feb 1 2017'
h323-connect-time                  = '11:21:33.102 GMT Wed Feb 1 2017'
h323-disconnect-time               = '11:21:45.125 GMT Wed Feb 1 2017'
h323-disconnect-cause              = '0'
h323-voice-quality                 = '0'
h323-conf-id                       = 'D241210E 814932D0 742B5D37 7482DD36'
call-id                            = 'POwd3XUemF'
Acct-Session-Id                    = 'POwd3XUemF'
Acct-Session-Time                  = '13'
Acct-Delay-Time                    = '0'
PortaOne-Transport-Protocol        = 'SIP'
h323-remote-address                = '192.168.192.116'
h323-ivr-out                       = 'PortaBilling_AccessCode:OUTGOING'
h323-ivr-out                       = 'PortaBilling_Seed:2930590810'
h323-ivr-out                       = 'PortaSIP_Aux_Info:CC=128470/1;cc_id=140470176278248;pid=19688'
PortaOne-Called-Party              = 'x=2509;bill-to=16045558901;net=0;site=2509'
Acct-Terminate-Cause               = 'User-Request'
Event-Timestamp                    = '1485948105'
NAS-Port                           = '5060'

A start accounting record about the incoming call leg is received.

Feb 01 11:21:45 [0]: <Session id="D241210E 814932D0 742B5D37 7482DD36" valid="1" i_service_type="3" i_env="8" created="Feb 01 11:21:26" modified="Feb 01 11:21:45" closing="Feb 01 11:22:15"/>
Feb 01 11:21:45 [3]: Processing accounting: <Accounting::VOICE-originate-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="4"/>

Feb 01 11:21:45 [4]: Copied account: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/> of <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/> from <Authorize::INVITE nas="ak-techwr.portaone.com" at="Feb 01 11:21:26" from="16045558915" cld="16045558901" serial="0"/> into current request

Feb 01 11:21:45 [4]: ::on_accounting_account_billing[voice]: Obtained original subscriber IP '192.168.192.116' from h323-remote-address in <Accounting::VOICE-answer-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="3"/>

Feb 01 11:21:45 [4]: Unlock existent session deposit: <Session::Deposit i_account="2130584" i_customer="2509" session_id="D241210E 814932D0 742B5D37 7482DD36" amount="1043.15945" customer_lock="1" opened="2017 Feb 01 11:21:26" expires="2017 Apr 02 11:21:26"/>

Feb 01 11:21:45 [4]: Successful update of the session deposit: <Session::Deposit i_account="2130584" i_customer="2509" session_id="D241210E 814932D0 742B5D37 7482DD36" amount="1043.15945" customer_lock="1" opened="2017 Feb 01 11:21:26" closing="2017 Feb 01 11:21:50"/>

Feb 01 11:21:45 [4]: No connection to charge this access node answer leg.

The billing re-uses information in the call cache to speed up account info lookup.

Feb 01 11:21:45 [3]: AAA::Accounting response, no attributes.
Feb 01 11:21:45 [4]: This session closes in cache at Feb 01 11:22:15 (in 30s)
Feb 01 11:21:45 [0]: ...Done Accounting::VOICE-answer-VoIP::Stop in 0.106162 seconds, 0.062022 spent in SQL queries. Dispatch+activation: 0.000139+0.001023 seconds.

Feb 01 11:21:45 [0]: Processing request (BE ver:mr60,cluster:25393)...
Feb 01 11:21:45 [3]: Attributes:
NAS-IP-Address                     = '193.28.87.122'
User-Name                          = '16045558915'
Called-Station-Id                  = '16045558901'
Calling-Station-Id                 = '16045558915'
Acct-Status-Type                   = 'Stop'
h323-call-origin                   = 'originate'
h323-call-type                     = 'VoIP'
h323-setup-time                    = '11:21:26.939 GMT Wed Feb 1 2017'
alert-timepoint                    = '11:21:27.055 GMT Wed Feb 1 2017'
h323-connect-time                  = '11:21:33.075 GMT Wed Feb 1 2017'
h323-disconnect-time               = '11:21:45.126 GMT Wed Feb 1 2017'
h323-disconnect-cause              = '0'
h323-voice-quality                 = '0'
h323-conf-id                       = 'D241210E 814932D0 742B5D37 7482DD36'
call-id                            = 'POwd3XUemF'
Acct-Session-Id                    = 'POwd3XUemF'
Acct-Session-Time                  = '13'
Acct-Delay-Time                    = '0'
PortaOne-Transport-Protocol        = 'SIP'
h323-remote-address                = 'SIP-UA'
h323-ivr-out                       = 'PortaSIP_Aux_Info:CC=128470/2;route_seq=(2, 0);route_id=140470106466976;cc_id=140470176278248;pid=19688;forward-on-fail=yes'
h323-ivr-out                       = 'PortaBilling_RatePattern:VOICEONNET\RX|16045558901'
h323-ivr-out                       = 'PortaBilling_AccessCode:OUTGOING'
h323-ivr-out                       = 'PortaBilling_Seed:2930590810'
h323-remote-id                     = 'SIP-UA'
PortaOne-Calling-Party             = 'x=2509;bill-to=16045558915;media-time=12;net=0;ip=192.168.192.116;site=2509'
PortaOne-Called-Party              = 'x=2509;bill-to=16045558901;net=0;site=2509'
Acct-Terminate-Cause               = 'User-Request'
Event-Timestamp                    = '1485948105'
NAS-Port                           = '5060'

The call is terminated, and stop accounting for one of the call legs is received.

Feb 01 11:21:45 [0]: <Session id="D241210E 814932D0 742B5D37 7482DD36" valid="1" i_service_type="3" i_env="8" created="Feb 01 11:21:26" modified="Feb 01 11:21:45" expires="Feb 01 11:21:56"/>

Feb 01 11:21:45 [3]: Processing accounting: <Accounting::VOICE-answer-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="3"/>

Feb 01 11:21:45 [4]: Copied account: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/> of <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/> from <Authorize::INVITE nas="ak-techwr.portaone.com" at="Feb 01 11:21:26" from="16045558915" cld="16045558901" serial="0"/> into current request

Feb 01 11:21:45 [4]: Synchronized: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/>

Feb 01 11:21:45 [4]: Synchronized: <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/>

Feb 01 11:21:45 [4]: Successful update of the session deposit: <Session::Deposit i_account="2130584" i_customer="2509" session_id="D241210E 814932D0 742B5D37 7482DD36" amount="1043.15945" customer_lock="1" opened="2017 Feb 01 11:21:26" closing="2017 Feb 01 11:21:50"/>

Feb 01 11:21:45 [4]: No connection to charge this access node answer leg.

Feb 01 11:21:45 [3]: AAA::Accounting response, no attributes.
Feb 01 11:21:45 [4]: This session closes in cache at Feb 01 11:22:15 (in 30s)
Feb 01 11:21:45 [0]: ...Done Accounting::VOICE-answer-VoIP::Stop in 0.106162 seconds, 0.062022 spent in SQL queries. Dispatch+activation: 0.000139+0.001023 seconds.

 

Feb 01 11:21:45 [0]: Processing request (BE ver:mr60,cluster:25393)...
Feb 01 11:21:45 [3]: Attributes:
NAS-IP-Address                     = '193.28.87.122'
User-Name                          = '16045558915'
Called-Station-Id                  = '16045558901'
Calling-Station-Id                 = '16045558915'
Acct-Status-Type                   = 'Stop'
h323-call-origin                   = 'answer'
h323-call-type                     = 'VoIP'
h323-setup-time                    = '11:21:26.936 GMT Wed Feb 1 2017'
alert-timepoint                    = '11:21:27.055 GMT Wed Feb 1 2017'
h323-connect-time                  = '11:21:33.102 GMT Wed Feb 1 2017'
h323-disconnect-time               = '11:21:45.125 GMT Wed Feb 1 2017'
h323-disconnect-cause              = '0'
h323-voice-quality                 = '0'
h323-conf-id                       = 'D241210E 814932D0 742B5D37 7482DD36'
call-id                            = 'POwd3XUemF'
Acct-Session-Id                    = 'POwd3XUemF'
Acct-Session-Time                  = '13'
Acct-Delay-Time                    = '0'
PortaOne-Transport-Protocol        = 'SIP'
h323-remote-address                = '192.168.192.116'
h323-ivr-out                       = 'PortaBilling_AccessCode:OUTGOING'
h323-ivr-out                       = 'PortaBilling_Seed:2930590810'
h323-ivr-out                       = 'PortaSIP_Aux_Info:CC=128470/1;cc_id=140470176278248;pid=19688'
PortaOne-Called-Party              = 'x=2509;bill-to=16045558901;net=0;site=2509'
Acct-Terminate-Cause               = 'User-Request'
Event-Timestamp                    = '1485948105'
NAS-Port                           = '5060'

Accounting for the second (outgoing) call leg is received.

Feb 01 11:21:45 [0]: <Session id="D241210E 814932D0 742B5D37 7482DD36" valid="1" i_service_type="3" i_env="8" created="Feb 01 11:21:26" modified="Feb 01 11:21:45" closing="Feb 01 11:22:15"/>
Feb 01 11:21:45 [3]: Processing accounting: <Accounting::VOICE-originate-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="4"/>

Feb 01 11:21:45 [4]: Copied account: <Account i="2130584" id="16045558915" model="credit" balance="0.00000" activation="2017 Jan 20 23:00:00"/> of <Customer i="2509" name="John Doe" balance="-43.15945" limit="1000.00000"/> from <Accounting::VOICE-answer-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="3"/> into current request
Feb 01 11:21:45 [4]: Access billing from <Accounting::VOICE-answer-VoIP::Stop nas="ak-techwr.portaone.com" at="Feb 01 11:21:45" from="16045558915" cld="16045558901" serial="3"/> doesn't match on 'access-code'

Feb 01 11:21:45 [4]: End of originate leg on access node
Feb 01 11:21:45 [4]: Keep existent session deposit: <Session::Deposit i_account="2130584" i_customer="2509" session_id="D241210E 814932D0 742B5D37 7482DD36" amount="1043.15945" customer_lock="1" opened="2017 Feb 01 11:21:26" closing="2017 Feb 01 11:21:50"/>

Feb 01 11:21:45 [3]: Found <Connection i="2015" name="SIP-to-SIP (on-net) calls" matchClass="VOICE/originate/VoIP:SIP"/> matched by routingGatewayId('SIP-UA'), remoteIp(empty), routingCld(empty)

Feb 01 11:21:45 [4]: Found vendor: <Vendor i="1699" name="Internal Vendor"/>

Feb 01 11:21:45 [5]: Looking for Porta::Rating::Rate::Standard matching <RateLookup pattern="VOICEONNET\RX|16045558901" seed="2930590810" effectiveFrom="2017 Feb 01 11:21:33" effectiveTo="2017 Feb 01 11:21:45" from="2017 Feb 01 11:21:33" to="2017 Feb 01 11:21:45" bill="2017 Feb 01 11:21:33"/> in <Tariff i="2461" name="SIP Phone Subscribers"/>

Feb 11 07:32:01 [4]: Creating Porta::Rating::XDR::Account for 43 seconds of session-time based on chargeable 43 base units.
Feb 11 07:32:01 [4]: No volume discount applicable for <Rate::Standard i="117068" destination="420" pattern="VOICEONNET\RX|420226491241" seed="0" level="0" has-discount="1"/> in <VolumeDiscount::Plan i="522" name="Prorated Thresholds VDP"/>

PortaBilling calculates how much the account should be charged for this call.

Feb 11 07:32:01 [3]: Charge <Tariff i="1574" name="SIP Internal Vendor"/> of Vendor. Building XDR ...
Feb 01 11:21:45 [4]: Creating Porta::Rating::XDR::Account for used session-time 12 seconds

Feb 01 11:21:45 [5]: Looking for Porta::Rating::Rate::Standard matching <RateLookup pattern="16045558901" seed="0" effectiveFrom="2017 Feb 01 11:21:33" effectiveTo="2017 Feb 01 11:21:45" from="2017 Feb 01 11:21:33" to="2017 Feb 01 11:21:45" bill="2017 Feb 01 11:21:33"/> in <Tariff i="2456" name="Internal SIPonNET"/>

Feb 01 11:21:45 [4]: Creating Porta::Rating::XDR::Vendor for used session-time 12 seconds

Feb 01 11:21:45 [3]: Account charge built:
<XDR::Account pay="0.00020 USD" qty="12 second" history="+12x1@0.00100">
  <Charge pay="0.00020 USD" qty="12 second" history="+12x1@0.00100"/>
  <XDR::Aux xdr_storage_type="Account" media_duration="12" xdr_time="2017 Feb 01 11:21:45"/>
</XDR::Account>
Feb 01 11:21:45 [3]: Vendor charge built:
<XDR::Vendor pay="0.00000 USD" qty="12 second" history="+12x1@0.0">
  <Charge pay="0.00000 USD" qty="12 second" history="+12x1@0.0"/>
  <XDR::Vendor::RevenueCharge pay="0.00020 USD" qty="0 unit" history="+12x1@0.00100"/>

PortaBilling also calculates the termination costs for this call.

CDRs are inserted and balances are modified.

Feb 01 11:21:45 [3]: AAA::Accounting response, no attributes.
Feb 01 11:21:45 [4]: This session closes in cache at Feb 01 11:22:15 (in 30s)
Feb 01 11:21:45 [0]: ...Done Accounting::VOICE-originate-VoIP::Stop in 0.228812 seconds, 0.183026 spent in SQL queries. Dispatch+activation: 0.002478+0.105232 seconds.

 Verify Call History for an Account

To view the xDR of an account:

1.     On the account’s panel, click XDRs.

2.     On the Search xDRs panel, choose the date range for which you want to see the account’s xDRs and click Apply filters.

 

Adobe SystemsYou can also go to the account self-care page (accessible via the Accounts menu item in the Home popup menu). The only difference is that account’s owner does not have the option of seeing incomplete (failed) calls when using the self-care pages.

 

Login with the account’s web access login and password. After that you will be able to see the account’s dashboard interface. On the Billing Information tab, click Transactions.

 

Log in to the account self-care

 

Define search parameters

 

Browse the calls

 

Choose the date range for which you want to see a list of calls, and click Show Records. In the results table you will see call charges and other fees, such as maintenance fees or refunds (if any). The report can be also downloaded by clicking the   Download icon. 

Check Call History

If you want to see a list of all calls going through the system, or perhaps only ones for a particular destination, use the Trace Session function.

1.     On the navigation menu, select Toolbox, then select Trace session.

2.     On the Search session panel, specify the search criteria:

·        CLD – Type the phone number you are looking for or a destination pattern (first digits and a percent sign, for example 44%).

·        Date from, Date to Choose the date range.

 

3.     Click Apply filters.

 

Title: Trace session - Description: Trace session results.

 

The advantage of this method is that you can view all call attempts, including unsuccessful calls, with the disconnect reasons displayed.