Hi All,
Badly need some help about our current ChanSpy bad audio problem.
Currently when we are doing a ChanSpy on a specific channel/ext or random chanspy using 555 a default FreePBX feature code we are getting high drop by jitters and choppy calls, actual calls from an agent and customers doesn’t have any audio issues and the bad audio is only experienced from the chanspy. And only chanspy to a call with customers through sip trunks and agents. Chanspy to a extension to extension calls doesn’t recreate the problem.
Any help is highly appreciated. Thank you in advance.
Below are some details.
Wireshark RTP Player Screenshot
cpu utilization during testing and when bad audio is experienced.
Some details about the server cpu specs
Asterisk version: 1.8.26.1
FreePBX Version: 2.11.0.38
Codec used: uLaw G711
I can’t remember the distro version we used.
Dialplan used for chanspy
[from-internal-custom]
exten => _*555X.,1,Macro(user-callerid,)
exten => _*555X.,2,Authenticate(1111)
exten => _*555X.,n,Answer
exten => _*555X.,n,Wait(1)
exten => _*555X.,n,ChanSpy(SIP/${EXTEN:4})
exten => _*555X.,n,Hangup
Asterisk Logs during testing
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [*[email protected]:1] Macro("SIP/4000-00000304", "user-callerid,") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:1] Set("SIP/4000-00000304", "TOUCH_MONITOR=1407267335.2188") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:2] Set("SIP/4000-00000304", "AMPUSER=4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:3] GotoIf("SIP/4000-00000304", "0?report") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:4] ExecIf("SIP/4000-00000304", "1?Set(REALCALLERIDNUM=4000)") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:5] Set("SIP/4000-00000304", "AMPUSER=4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:6] GotoIf("SIP/4000-00000304", "0?limit") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:7] Set("SIP/4000-00000304", "AMPUSERCIDNAME=ClientAstig 4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:8] GotoIf("SIP/4000-00000304", "0?report") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:9] Set("SIP/4000-00000304", "AMPUSERCID=4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:10] Set("SIP/4000-00000304", "__DIAL_OPTIONS=Ttr") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:11] Set("SIP/4000-00000304", "CALLERID(all)="ClientAstig 4000" <4000>") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:12] GotoIf("SIP/4000-00000304", "0?limit") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:13] ExecIf("SIP/4000-00000304", "0?Set(GROUP(concurrency_limit)=4000)") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:14] GosubIf("SIP/4000-00000304", "7?sub-ccss,s,1(from-internal,*555653)") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:1] ExecIf("SIP/4000-00000304", "0?Return()") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:2] Set("SIP/4000-00000304", "CCSS_SETUP=TRUE") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:3] GosubIf("SIP/4000-00000304", "0?monitor_config,1(from-internal,*555653):monitor_default,1(from-internal,*555653)") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/4000-00000304", "0?is_exten") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:2] StackPop("SIP/4000-00000304", "") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:3] Return("SIP/4000-00000304", "FALSE") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/4000-00000304", "0?Set(CHANNEL(language)=)") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:16] GotoIf("SIP/4000-00000304", "0?continue") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:17] Set("SIP/4000-00000304", "__TTL=64") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:18] GotoIf("SIP/4000-00000304", "1?continue") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Goto (macro-user-callerid,s,29)
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:29] Set("SIP/4000-00000304", "CALLERID(number)=4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:30] Set("SIP/4000-00000304", "CALLERID(name)=ClientAstig 4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:31] Set("SIP/4000-00000304", "CDR(cnum)=4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:32] Set("SIP/4000-00000304", "CDR(cnam)=ClientAstig 4000") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [[email protected]:33] Set("SIP/4000-00000304", "CHANNEL(language)=en") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] pbx.c: -- Executing [*[email protected]:2] Authenticate("SIP/4000-00000304", "1234") in new stack
[2014-08-05 12:35:35] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'agent-pass.ulaw' (language 'en')
[2014-08-05 12:35:38] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'auth-thankyou.ulaw' (language 'en')
[2014-08-05 12:35:39] VERBOSE[16659] pbx.c: -- Executing [*[email protected]:3] Answer("SIP/4000-00000304", "") in new stack
[2014-08-05 12:35:39] VERBOSE[16659] pbx.c: -- Executing [*[email protected]:4] Wait("SIP/4000-00000304", "1") in new stack
[2014-08-05 12:35:40] VERBOSE[16659] pbx.c: -- Executing [*[email protected]:5] ChanSpy("SIP/4000-00000304", "SIP/653") in new stack
[2014-08-05 12:35:40] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'beep.ulaw' (language 'en')
[2014-08-05 12:35:41] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'spy-sip.ulaw' (language 'en')
[2014-08-05 12:35:41] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'digits/6.ulaw' (language 'en')
[2014-08-05 12:35:42] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'digits/5.ulaw' (language 'en')
[2014-08-05 12:35:43] VERBOSE[16659] file.c: -- <SIP/4000-00000304> Playing 'digits/3.ulaw' (language 'en')
[2014-08-05 12:35:43] VERBOSE[16659] app_chanspy.c: == Spying on channel SIP/653-00000301
[2014-08-05 12:35:43] NOTICE[16659] app_chanspy.c: Attaching SIP/4000-00000304 to SIP/653-00000301
[2014-08-05 12:35:51] VERBOSE[16659] app_chanspy.c: == Done Spying on channel SIP/653-00000301
[2014-08-05 12:35:51] VERBOSE[16659] pbx.c: == Spawn extension (from-internal, *555653, 5) exited non-zero on 'SIP/4000-00000304'
[2014-08-05 12:35:51] VERBOSE[16659] pbx.c: -- Executing [[email protected]:1] Hangup("SIP/4000-00000304", "") in new stack
[2014-08-05 12:35:51] VERBOSE[16659] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/4000-00000304'
[2014-08-05 12:35:52] VERBOSE[6929] netsock2.c: == Using SIP RTP TOS bits 184
[2014-08-05 12:35:52] VERBOSE[6929] netsock2.c: == Using SIP RTP CoS mark 5
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/4000-00000305", "0?is_exten") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:2] StackPop("SIP/4000-00000305", "") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:3] Return("SIP/4000-00000305", "FALSE") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:15] ExecIf("SIP/4000-00000305", "0?Set(CHANNEL(language)=)") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:16] GotoIf("SIP/4000-00000305", "0?continue") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:17] Set("SIP/4000-00000305", "__TTL=64") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:18] GotoIf("SIP/4000-00000305", "1?continue") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Goto (macro-user-callerid,s,29)
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:29] Set("SIP/4000-00000305", "CALLERID(number)=4000") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:30] Set("SIP/4000-00000305", "CALLERID(name)=ClientAstig 4000") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:31] Set("SIP/4000-00000305", "CDR(cnum)=4000") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:32] Set("SIP/4000-00000305", "CDR(cnam)=ClientAstig 4000") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [[email protected]:33] Set("SIP/4000-00000305", "CHANNEL(language)=en") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] pbx.c: -- Executing [*[email protected]:2] Authenticate("SIP/4000-00000305", "1234") in new stack
[2014-08-05 12:35:52] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'agent-pass.ulaw' (language 'en')
[2014-08-05 12:35:55] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'auth-incorrect.ulaw' (language 'en')
[2014-08-05 12:36:01] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'auth-thankyou.ulaw' (language 'en')
[2014-08-05 12:36:02] VERBOSE[16679] pbx.c: -- Executing [*[email protected]:3] Answer("SIP/4000-00000305", "") in new stack
[2014-08-05 12:36:02] VERBOSE[16679] pbx.c: -- Executing [*[email protected]:4] Wait("SIP/4000-00000305", "1") in new stack
[2014-08-05 12:36:03] VERBOSE[16679] pbx.c: -- Executing [*[email protected]:5] ChanSpy("SIP/4000-00000305", "SIP/653") in new stack
[2014-08-05 12:36:03] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'beep.ulaw' (language 'en')
[2014-08-05 12:36:03] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'spy-sip.ulaw' (language 'en')
[2014-08-05 12:36:04] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'digits/6.ulaw' (language 'en')
[2014-08-05 12:36:05] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'digits/5.ulaw' (language 'en')
[2014-08-05 12:36:05] VERBOSE[16679] file.c: -- <SIP/4000-00000305> Playing 'digits/3.ulaw' (language 'en')
[2014-08-05 12:36:06] VERBOSE[16679] app_chanspy.c: == Spying on channel SIP/653-00000301
[2014-08-05 12:36:06] NOTICE[16679] app_chanspy.c: Attaching SIP/4000-00000305 to SIP/653-00000301
[2014-08-05 12:36:27] VERBOSE[16679] app_chanspy.c: == Done Spying on channel SIP/653-00000301
[2014-08-05 12:36:27] VERBOSE[16679] pbx.c: == Spawn extension (from-internal, *555653, 5) exited non-zero on 'SIP/4000-00000305'
[2014-08-05 12:36:27] VERBOSE[16679] pbx.c: -- Executing [[email protected]:1] Hangup("SIP/4000-00000305", "") in new stack
[2014-08-05 12:36:27] VERBOSE[16679] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/4000-00000305'