Debugging BLF Problems: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Dcunningham (talk | contribs) No edit summary |
Dcunningham (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
They are for the time period where the monitored phone (phone A) receives a call from another phone (phone B), but the subscribing phone (phone C)'s BLF light is not set correctly: |
They are for the time period where the monitored phone (phone A) receives a call from another phone (phone B), but the subscribing phone (phone C)'s BLF light is not set correctly: |
||
# A ngrep trace on the Kamailio/OpenSIPS server showing all traffic to and from phones A and C. It might be easiest to take a PCAP of all network traffic passing through the server using: <code>ngrep -d any -O /tmp/ticket-XXXX.pcap > /dev/null</code> |
# A ngrep trace on the Kamailio/OpenSIPS server showing all traffic to and from phones A and C. It might be easiest to take a PCAP of all network traffic passing through the server using: <code>ngrep -d any -O /tmp/ticket-XXXX.pcap > /dev/null</code> If you get an error about privileges, add -R to the command like this: <code>ngrep -d any -R -O /tmp/ticket-XXXX.pcap > /dev/null</code> |
||
# An Asterisk SIP and AGI trace of the call from phone B to phone A. |
# An Asterisk SIP and AGI trace of the call from phone B to phone A. You can take this using the Reports -> Traces menu at the system level in Enswitch. |
||
# A Mysql general log showing all SQL queries. |
# A Mysql general log showing all SQL queries. See: https://dev.mysql.com/doc/refman/5.7/en/query-log.html |
||
Please also let us know: |
Please also let us know: |
||
| Line 13: | Line 13: | ||
# The number of phone C (subscribing phone). |
# The number of phone C (subscribing phone). |
||
# The exact start time of the call which triggered the BLF activity. |
# The exact start time of the call which triggered the BLF activity. |
||
# A description of what exactly was not correct. For example |
# A description of what exactly was not correct. For example: "When phone A started to ring, the BLF light on phone C did not light up, and still did not light when phone A picked up the call". |
||
It helps a lot fix the issue if the call uses the simplest possible scenario, so for example: |
It helps a lot fix the issue if the call uses the simplest possible scenario, so for example: |
||
# Have just one phone (C) with a BLF subscription for the monitored phone A, and have no BLF subscriptions on phone A or B. This way a NOTIFY for phone C from phone A can't be confused with a NOTIFY for phone A from phone C. |
# Have just one phone (C) with a BLF subscription for the monitored phone A, and have no BLF subscriptions on phone A or B. This way a NOTIFY for phone C from phone A can't be confused with a NOTIFY for phone A from phone C. |
||
# |
# Use a direct phone-to-phone call, not hunt groups or queues (unless the problem only happens using hunt groups or queues). |
||
# Take the traces when the system is as quiet as possible, for example late in the evening. |
# Take the traces when the system is as quiet as possible, for example late in the evening. |
||
# Include just one call which reproduces the problem in the traces. Usually only one example is necessary, but if taking multiple calls put them in separate trace files. |
# Include just one call which reproduces the problem in the traces. Usually only one example is necessary, but if taking multiple calls put them in separate trace files. |
||
Latest revision as of 08:31, 6 March 2018
To debug BLF we need the following traces.
They are for the time period where the monitored phone (phone A) receives a call from another phone (phone B), but the subscribing phone (phone C)'s BLF light is not set correctly:
- A ngrep trace on the Kamailio/OpenSIPS server showing all traffic to and from phones A and C. It might be easiest to take a PCAP of all network traffic passing through the server using:
ngrep -d any -O /tmp/ticket-XXXX.pcap > /dev/nullIf you get an error about privileges, add -R to the command like this:ngrep -d any -R -O /tmp/ticket-XXXX.pcap > /dev/null - An Asterisk SIP and AGI trace of the call from phone B to phone A. You can take this using the Reports -> Traces menu at the system level in Enswitch.
- A Mysql general log showing all SQL queries. See: https://dev.mysql.com/doc/refman/5.7/en/query-log.html
Please also let us know:
- The number of phone A (monitored phone).
- The number of phone B (calling phone).
- The number of phone C (subscribing phone).
- The exact start time of the call which triggered the BLF activity.
- A description of what exactly was not correct. For example: "When phone A started to ring, the BLF light on phone C did not light up, and still did not light when phone A picked up the call".
It helps a lot fix the issue if the call uses the simplest possible scenario, so for example:
- Have just one phone (C) with a BLF subscription for the monitored phone A, and have no BLF subscriptions on phone A or B. This way a NOTIFY for phone C from phone A can't be confused with a NOTIFY for phone A from phone C.
- Use a direct phone-to-phone call, not hunt groups or queues (unless the problem only happens using hunt groups or queues).
- Take the traces when the system is as quiet as possible, for example late in the evening.
- Include just one call which reproduces the problem in the traces. Usually only one example is necessary, but if taking multiple calls put them in separate trace files.