WELCOME [ Log In · Register ]        SITE [ Search · Page Index · Recent Changes ]    RSS

NBE Debugging

Note: This page is marked for deletion.

 

  1. How to restart NBE Gateway
  2. How to Enable Development Mode
  3. How to Enable Call Recording
  4. How to record RTP traffic using Wireshark when NBE and PBXnSIP are on the same system
  5. PRI Span Debugging

 


How to Restart NBE Gateway

Using NBE Gateway Manager:

  • Open your favourite web browser on the system running NBE Gateway
  • Go to "http://localhost:7783/"
  • Click on the "Stop Gateway" button...wait for NBE Gateway to stop
  • Clcik on the "Start Gateway" button....wait for the NBE Gateway to start successfully

 

Manually Restarting the NBE Gateway Service

  • Click on "Start -> Control Panel -> Administrative Tools -> Services"
  • Scroll through the list of sevices and look for the one named "Netborder Express Gateway"
  • Right click this server and select "restart" or "start" from the pop-up menu.

 


How to Enable Development Mode

  • Click on "Start -> All Programs -> Netborder Express Gateway -> Configuration -> Edit Global Configuraiton File"
  • In the file that is opened search (ctrl+f) for "netborder.run.mode"...you should be sent to the end of the file 
  • Remove the "#" from "#netborder.run.mode=development"
  • Add a "#" to "netborder.run.mode=production"
  • Save the file
  • Restart the NBE Gateway...see "How to restart NBE Gateway"

 


How to Enable Call Recording

This feature can come in handy when you want to record a few calls for troubleshooting purposes. However, it is very CPU intensive and should not be used as a permanent solution for call recording.

  • Click on "Start -> All Programs -> Netborder Express Gateway -> Configuration -> Edit Global Configuraiton File"
  • In the file that is opened search (ctrl+f) for "netborder.gw.recordCalls.enabled=false"...
  • Set the value to true and save the file
  • The location of the recordings is defined by the "netborder.gw.recordCalls.directory" property. The default value is logs/recording/
  • Restart the NBE Gateway...see "How to restart NBE Gateway"

 

 


 

How to record RTP traffic using Wireshark when NBE and PBXnSIP are on the same system

On Linux based systems this is not a problem, simply set Wireshark to listen on the "lo" interface.

On Windows based systems this is a little tricky as Wireshark cannot listen to the 127.0.0.1.  Use the following instructions to "bounce the traffic to your default gateway and back so that Wireshark can record the traffic.

NOTE:  THIS IS ONLY FOR DEBUGGING DO NOT RUN THIS IN A PRODUCTION ENVIRONMENT

  1. Setup NBE to send all traffic to your LAN IP address
    1. Open the NBE Gateway Manager, go to the "Routing Rules" tab under the "Configuration" Tab.
    2. Find the default routing rules block, this block will contain the following line:
       <param name="sip.out.requestUri" expr="sip:%0@127.0.0.1:5060"/>
    3. Change the line so that the traffic is sent to the LAN IP address (in my case it was 192.168.1.90):
       <param name="sip.out.requestUri" expr="sip:%0@192.168.1.91:5060"/>
    4. Click the "submit changes" button to update the routing rules.
    5. Next open the "gw.properites" configuration file under the "config" folder on the "File Browser" tab of the NBE Gateway Manager
    6. In this file we need to tell NBE to send all RTP traffic to the LAN IP address.  Search the file for "netborder.media.rtp.IPAddress"
    7. Uncomment this option and it to your LAN IP adress.
       netborder.media.rtp.IPAddress=192.168.1.91
    8. Restart NBE to apply all the changes
      -
  2. Setup PBXnSIP to send traffic to the LAN IP address rather then 127.0.0.1
    1. The only part of PBXnSIP that needs to be changed is the "Outbound Proxy" field of the the trunk configuration
    2. Login into the PBXnSIP Domain, go to the "Trunks" tab, and then click on the "edit" icon of your NBE trunk.
    3. Change the "Outbound Proxy" field to your LAN IP address...leave the port the same
    4. Restart PBXnSIP to apply the change
      -
  3. Setup the Windows Routing table to forward all messages destined for your LAN address to the default gateway
    1. Start the Windows command prompt by clicking "Start", "Run" and running "cmd"
    2. Now we need to tell the Windows Routing table that all packets destined for your LAN IP address is sent to their destination by way of the default gateway.  Run the command:
      route add 192.168.1.91 mask 255.255.255.255 192.168.1.1 metric 1
    3. Run "exit" to get out of the command prompt
      -
  4. Setup Wireshark to limit the capture to only the traffic between NBE and PBXnSIP
    1. Start a new capture in Wireshark with the following capture rule
      src 192.168.1.91 && dst 192.168.1.91
    2. Reproduce the "failure"
    3. Save the capture as a .pcap file so that it can be opened by other applications (tcpdump, ethereal, etc)
      -