Hi,
The problem I could not understand is whenever the SIP device hangs up, the call does not end. Sometime the call stays active(stays on hold) for long time costing user.
Following is one of the setting and call information. Most of the time what happens is when the SIP user (like linksys pap-2na) hangups up the phone, I see “Music class default requested but no musiconhold loaded.” and the call does not end for some time. In the following call, without conversation, the CDR recorded ~8 mins long call. I have tried disabling music on hold but I could not fix the problem. I have even tried recording the conversation (audio) and I hear the dialing of phone number, I can hear phone ringing, I can hear the user hanging up the phone and still I can hear phone ringing, then no audio after few moments of call being hanged up by user; in the remaining length of call, there is no audible noise/tone/audio.
What could be the problem? How do I troubleshoot more? What could be the possible fix/solution?
My setting information:
Asterisk 1.6.2.7 on dedicated server
SIP Phone: Linksys PAP-2NA
sip.conf
[1111]
type=friend
username=1111
accountcode=1111
regexten=1111
callerid=1234567890
amaflags=billing
secret=secret
nat=yes
dtmfmode=RFC2833
qualify=yes
canreinvite=yes
disallow=all
allow=g729
allow=g723
allow=gsm
allow=ulaw
allow=alaw
host=dynamic
context=a2billing
rtptimeout=10
rtpholdtimeout=10
regseconds=0
cancallforward=yes
[Oct 2 23:00:33] VERBOSE[21373] pbx.c: – Executing [93793226471@a2billing17-sip-iax:1] AGI(“SIP/4569160095-0000079b”, “a2billing17.php,1”) in new stack
[Oct 2 23:00:33] VERBOSE[21373] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/a2billing17.php
[Oct 2 23:00:33] NOTICE[21373] channel.c: Dropping incompatible voice frame on SIP/4569160095-0000079b of format g729 since our native format has changed to 0x1 (g723)
[Oct 2 23:00:33] VERBOSE[21373] res_agi.c: – AGI Script Executing Application: (MixMonitor) Options: (1286074833.2036.wav,b)
[Oct 2 23:00:33] VERBOSE[21373] res_agi.c: – AGI Script Executing Application: (DIAL) Options: (SIP/sip_trunk/0000193793226471,60,RgL(3000000:61000:30000))
[Oct 2 23:00:33] VERBOSE[21373] app_dial.c: – Limit Data for this call:
[Oct 2 23:00:33] VERBOSE[21373] netsock.c: == Using SIP RTP CoS mark 5
[Oct 2 23:00:33] VERBOSE[21373] app_dial.c: – Called sip_trunk/0000193793226471
[Oct 2 23:00:34] VERBOSE[21373] app_dial.c: – SIP/sip_trunk-0000079c is making progress passing it to SIP/4569160095-0000079b
[Oct 2 23:01:07] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 16, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:07] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:01:07] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 20, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:08] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 17, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:08] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 20, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:08] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 16, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:08] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:01:08] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 20, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:26] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 17, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:26] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 20, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:26] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 16, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:26] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:01:26] VERBOSE[21373] app_dial.c: – SIP/4569160095-0000079b requested special control 20, passing it to SIP/sip_trunk-0000079c
[Oct 2 23:01:27] VERBOSE[21373] app_dial.c: – SIP/sip_trunk-0000079c answered SIP/4569160095-0000079b
[Oct 2 23:01:45] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:02:06] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:02:22] VERBOSE[21473] app_mixmonitor.c: == Begin MixMonitor Recording SIP/8856228088-000007ad
[Oct 2 23:02:25] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:02:46] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:03:06] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:03:25] VERBOSE[21373] channel.c: – Music class default requested but no musiconhold loaded.
[Oct 2 23:08:33] VERBOSE[21373] res_agi.c: – AGI Script Executing Application: (StopMixMonitor) Options: ()
[Oct 2 23:08:33] VERBOSE[21373] app_mixmonitor.c: == MixMonitor close filestream
[Oct 2 23:08:33] VERBOSE[21373] res_agi.c: – <SIP/4569160095-0000079b>AGI Script a2billing17.php completed, returning -1