Flowroute trunk with with FREEPBX-12.0.76.2 and asterisk 13.6.0 sound issues

Hello,

I’ve followed this instruction to the letter (several times):

http://wiki.freepbx.org/display/FOP/Installing+FreePBX+12+on+CentOS+6.5

I am however using CentOS 6.7 and not 6.5. Also for the purpose of this fresh install I’ve enabled all tcp/udp ports on my router from 1-65535 range. Also iptables are disabled and selinux was disabled before I even begun the install.

Im gonna try to explain in details what I’ve done after I’ve installed the server and setuped the admin login details.

  • Added a trunk

Connectivity -> Trunks -> Add SIP (chan_sip) Trunk

Added trunk name(flowdock-1), edited PEER Details section and Register string, I got these details from flowroute com account. I deleted all text from users details texarea.

  • Added extension

Edited user extension, display name, secret, Link to a Default User (set to none) and clicked submit. Saved config and extension 501 was created.

  • Added inbound route

Connectivity -> Inbound routes

Only edited description field along with DID number(8108274221 not a real number for privacy purposes), and added a destination(all-inbound) to my previously created extension 105.

This is the asterisk log when I call the DID from my cell (changed the number for privacy) :

voip-server*CLI> rtcp set debug on RTCP Debugging Enabled voip-server*CLI> rtp set debug on RTP Debugging Enabled == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [[email protected]:1] Set("SIP/flowdock-1-00000001", "__FROM_DID=18108274221") in new stack -- Executing [[email protected]:2] Gosub("SIP/flowdock-1-00000001", "sub-record-check,s,1(in,18108274221,dontcare)") in new stack -- Executing [[email protected]:1] GotoIf("SIP/flowdock-1-00000001", "0?initialized") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "__REC_STATUS=INITIALIZED") in new stack -- Executing [[email protected]:3] Set("SIP/flowdock-1-00000001", "NOW=1452467083") in new stack -- Executing [[email protected]:4] Set("SIP/flowdock-1-00000001", "__DAY=10") in new stack -- Executing [[email protected]:5] Set("SIP/flowdock-1-00000001", "__MONTH=01") in new stack -- Executing [[email protected]:6] Set("SIP/flowdock-1-00000001", "__YEAR=2016") in new stack -- Executing [[email protected]:7] Set("SIP/flowdock-1-00000001", "__TIMESTR=20160110-230443") in new stack -- Executing [[email protected]:8] Set("SIP/flowdock-1-00000001", "__FROMEXTEN=unknown") in new stack -- Executing [[email protected]:9] Set("SIP/flowdock-1-00000001", "__MON_FMT=wav") in new stack -- Executing [[email protected]:10] NoOp("SIP/flowdock-1-00000001", "Recordings initialized") in new stack -- Executing [[email protected]:11] ExecIf("SIP/flowdock-1-00000001", "0?Set(ARG3=dontcare)") in new stack -- Executing [[email protected]:12] Set("SIP/flowdock-1-00000001", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [[email protected]:13] ExecIf("SIP/flowdock-1-00000001", "0?Set(REC_STATUS=NO)") in new stack -- Executing [[email protected]:14] GotoIf("SIP/flowdock-1-00000001", "2?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [[email protected]:17] GotoIf("SIP/flowdock-1-00000001", "1?sub-record-check,in,1") in new stack -- Goto (sub-record-check,in,1) -- Executing [[email protected]:1] NoOp("SIP/flowdock-1-00000001", "Inbound Recording Check to 18108274221") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "FROMEXTEN=unknown") in new stack -- Executing [[email protected]:3] ExecIf("SIP/flowdock-1-00000001", "12?Set(FROMEXTEN=+8108574822)") in new stack -- Executing [[email protected]:4] Gosub("SIP/flowdock-1-00000001", "recordcheck,1(dontcare,in,18108274221)") in new stack -- Executing [[email protected]:1] NoOp("SIP/flowdock-1-00000001", "Starting recording check against dontcare") in new stack -- Executing [[email protected]:2] Goto("SIP/flowdock-1-00000001", "dontcare") in new stack -- Goto (sub-record-check,recordcheck,3) -- Executing [[email protected]:3] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:5] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:3] Gosub("SIP/flowdock-1-00000001", "app-blacklist-check,s,1()") in new stack -- Executing [[email protected]:1] GotoIf("SIP/flowdock-1-00000001", "0?blacklisted") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "CALLED_BLACKLIST=1") in new stack -- Executing [[email protected]:3] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:4] Set("SIP/flowdock-1-00000001", "CDR(did)=18108274221") in new stack -- Executing [[email protected]:5] ExecIf("SIP/flowdock-1-00000001", "1 ?Set(CALLERID(name)=+8108574822)") in new stack -- Executing [[email protected]:6] Set("SIP/flowdock-1-00000001", "CHANNEL(musicclass)=default") in new stack -- Executing [[email protected]:7] Set("SIP/flowdock-1-00000001", "__MOHCLASS=default") in new stack [2016-01-10 23:04:43] WARNING[20462][C-00000001]: func_channel.c:596 func_channel_read: Unknown or unavailable item requested: 'reversecharge' -- Executing [[email protected]:8] GotoIf("SIP/flowdock-1-00000001", "0?macro-hangupcall") in new stack -- Executing [[email protected]:9] Set("SIP/flowdock-1-00000001", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [[email protected]:10] Set("SIP/flowdock-1-00000001", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [[email protected]:11] Goto("SIP/flowdock-1-00000001", "from-did-direct,501,1") in new stack -- Goto (from-did-direct,501,1) -- Executing [[email protected]:1] Set("SIP/flowdock-1-00000001", "__RINGTIMER=15") in new stack -- Executing [[email protected]:2] Macro("SIP/flowdock-1-00000001", "exten-vm,novm,501,0,0,0") in new stack -- Executing [[email protected]:1] Macro("SIP/flowdock-1-00000001", "user-callerid,") in new stack -- Executing [[email protected]:1] Set("SIP/flowdock-1-00000001", "TOUCH_MONITOR=1452467083.16") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "AMPUSER=+8108574822") in new stack -- Executing [[email protected]:3] GotoIf("SIP/flowdock-1-00000001", "0?report") in new stack -- Executing [[email protected]:4] ExecIf("SIP/flowdock-1-00000001", "1?Set(REALCALLERIDNUM=+8108574822)") in new stack -- Executing [[email protected]:5] Set("SIP/flowdock-1-00000001", "AMPUSER=") in new stack -- Executing [[email protected]:6] GotoIf("SIP/flowdock-1-00000001", "0?limit") in new stack -- Executing [[email protected]:7] Set("SIP/flowdock-1-00000001", "AMPUSERCIDNAME=") in new stack -- Executing [[email protected]:8] GotoIf("SIP/flowdock-1-00000001", "1?report") in new stack -- Goto (macro-user-callerid,s,15) -- Executing [[email protected]:15] GotoIf("SIP/flowdock-1-00000001", "0?continue") in new stack -- Executing [[email protected]:16] Set("SIP/flowdock-1-00000001", "__TTL=64") in new stack -- Executing [[email protected]:17] GotoIf("SIP/flowdock-1-00000001", "1?continue") in new stack -- Goto (macro-user-callerid,s,28) -- Executing [[email protected]:28] Set("SIP/flowdock-1-00000001", "CALLERID(number)=+8108574822") in new stack -- Executing [[email protected]:29] Set("SIP/flowdock-1-00000001", "CALLERID(name)=+8108574822") in new stack -- Executing [[email protected]:30] Set("SIP/flowdock-1-00000001", "CDR(cnum)=+8108574822") in new stack -- Executing [[email protected]:31] Set("SIP/flowdock-1-00000001", "CDR(cnam)=+8108574822") in new stack -- Executing [[email protected]:32] Set("SIP/flowdock-1-00000001", "CHANNEL(language)=en") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "RingGroupMethod=none") in new stack -- Executing [[email protected]:3] Set("SIP/flowdock-1-00000001", "__EXTTOCALL=501") in new stack -- Executing [[email protected]:4] Set("SIP/flowdock-1-00000001", "__PICKUPMARK=501") in new stack -- Executing [[email protected]:5] Set("SIP/flowdock-1-00000001", "RT=") in new stack -- Executing [[email protected]:6] ExecIf("SIP/flowdock-1-00000001", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack -- Executing [[email protected]:7] ExecIf("SIP/flowdock-1-00000001", "0?MacroExit()") in new stack -- Executing [[email protected]:8] Gosub("SIP/flowdock-1-00000001", "sub-record-check,s,1(exten,501,dontcare)") in new stack -- Executing [[email protected]:1] GotoIf("SIP/flowdock-1-00000001", "12?initialized") in new stack -- Goto (sub-record-check,s,10) -- Executing [[email protected]:10] NoOp("SIP/flowdock-1-00000001", "Recordings initialized") in new stack -- Executing [[email protected]:11] ExecIf("SIP/flowdock-1-00000001", "0?Set(ARG3=dontcare)") in new stack -- Executing [[email protected]:12] Set("SIP/flowdock-1-00000001", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [[email protected]:13] ExecIf("SIP/flowdock-1-00000001", "0?Set(REC_STATUS=NO)") in new stack -- Executing [[email protected]:14] GotoIf("SIP/flowdock-1-00000001", "5?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [[email protected]:17] GotoIf("SIP/flowdock-1-00000001", "1?sub-record-check,exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [[email protected]:1] NoOp("SIP/flowdock-1-00000001", "Exten Recording Check between +8108574822 and 501") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "CALLTYPE=external") in new stack -- Executing [[email protected]:3] ExecIf("SIP/flowdock-1-00000001", "0?Set(CALLTYPE=)") in new stack -- Executing [[email protected]:4] Set("SIP/flowdock-1-00000001", "CALLEE=dontcare") in new stack -- Executing [[email protected]:5] ExecIf("SIP/flowdock-1-00000001", "0?Set(CALLEE=dontcare)") in new stack -- Executing [[email protected]:6] GotoIf("SIP/flowdock-1-00000001", "1?callee") in new stack -- Goto (sub-record-check,exten,11) -- Executing [[email protected]:11] Gosub("SIP/flowdock-1-00000001", "recordcheck,1(dontcare,external,501)") in new stack -- Executing [[email protected]:1] NoOp("SIP/flowdock-1-00000001", "Starting recording check against dontcare") in new stack -- Executing [[email protected]:2] Goto("SIP/flowdock-1-00000001", "dontcare") in new stack -- Goto (sub-record-check,recordcheck,3) -- Executing [[email protected]:3] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:12] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:9] GotoIf("SIP/flowdock-1-00000001", "1?macrodial") in new stack -- Goto (macro-exten-vm,s,15) -- Executing [[email protected]:15] GosubIf("SIP/flowdock-1-00000001", "0?clrheader,1()") in new stack -- Executing [[email protected]:16] Macro("SIP/flowdock-1-00000001", "dial-one,,Ttr,501") in new stack -- Executing [[email protected]:1] Set("SIP/flowdock-1-00000001", "DEXTEN=501") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "DIALSTATUS_CW=") in new stack -- Executing [[email protected]:3] GosubIf("SIP/flowdock-1-00000001", "0?screen,1()") in new stack -- Executing [[email protected]:4] GosubIf("SIP/flowdock-1-00000001", "0?cf,1()") in new stack -- Executing [[email protected]:5] GotoIf("SIP/flowdock-1-00000001", "1?skip1") in new stack -- Goto (macro-dial-one,s,8) -- Executing [[email protected]:8] GotoIf("SIP/flowdock-1-00000001", "0?nodial") in new stack -- Executing [[email protected]:9] GotoIf("SIP/flowdock-1-00000001", "0?continue") in new stack -- Executing [[email protected]:10] Set("SIP/flowdock-1-00000001", "EXTHASCW=ENABLED") in new stack -- Executing [[email protected]:11] GotoIf("SIP/flowdock-1-00000001", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,23) -- Executing [[email protected]:23] GotoIf("SIP/flowdock-1-00000001", "1?next3:continue") in new stack -- Goto (macro-dial-one,s,24) -- Executing [[email protected]:24] ExecIf("SIP/flowdock-1-00000001", "0?Set(DIALSTATUS_CW=BUSY)") in new stack -- Executing [[email protected]:25] GotoIf("SIP/flowdock-1-00000001", "0?nodial") in new stack -- Executing [[email protected]:26] GosubIf("SIP/flowdock-1-00000001", "1?dstring,1():dlocal,1()") in new stack -- Executing [[email protected]:1] Set("SIP/flowdock-1-00000001", "DSTRING=") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "DEVICES=501") in new stack -- Executing [[email protected]:3] ExecIf("SIP/flowdock-1-00000001", "0?Return()") in new stack -- Executing [[email protected]:4] ExecIf("SIP/flowdock-1-00000001", "0?Set(DEVICES=01)") in new stack -- Executing [[email protected]:5] Set("SIP/flowdock-1-00000001", "LOOPCNT=1") in new stack -- Executing [[email protected]:6] Set("SIP/flowdock-1-00000001", "ITER=1") in new stack -- Executing [[email protected]:7] Set("SIP/flowdock-1-00000001", "THISDIAL=PJSIP/501") in new stack -- Executing [[email protected]:8] GosubIf("SIP/flowdock-1-00000001", "1?zap2dahdi,1()") in new stack -- Executing [[email protected]:1] ExecIf("SIP/flowdock-1-00000001", "0?Return()") in new stack -- Executing [[email protected]:2] Set("SIP/flowdock-1-00000001", "NEWDIAL=") in new stack -- Executing [[email protected]:3] Set("SIP/flowdock-1-00000001", "LOOPCNT2=1") in new stack -- Executing [[email protected]:4] Set("SIP/flowdock-1-00000001", "ITER2=1") in new stack -- Executing [[email protected]:5] Set("SIP/flowdock-1-00000001", "THISPART2=PJSIP/501") in new stack -- Executing [[email protected]:6] ExecIf("SIP/flowdock-1-00000001", "0?Set(THISPART2=DAHDIIP/501)") in new stack -- Executing [[email protected]:7] Set("SIP/flowdock-1-00000001", "NEWDIAL=PJSIP/501&") in new stack -- Executing [[email protected]:8] Set("SIP/flowdock-1-00000001", "ITER2=2") in new stack -- Executing [[email protected]:9] GotoIf("SIP/flowdock-1-00000001", "0?begin2") in new stack -- Executing [[email protected]:10] Set("SIP/flowdock-1-00000001", "THISDIAL=PJSIP/501") in new stack -- Executing [[email protected]:11] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:9] GotoIf("SIP/flowdock-1-00000001", "0?doset") in new stack -- Executing [[email protected]:10] NoOp("SIP/flowdock-1-00000001", "Debug: Found PJSIP Destination PJSIP/501, updating with PJSIP_DIAL_CONTACTS") in new stack -- Executing [[email protected]:11] Set("SIP/flowdock-1-00000001", "THISDIAL=PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9") in new stack -- Executing [[email protected]:12] GotoIf("SIP/flowdock-1-00000001", "0?skipset") in new stack -- Executing [[email protected]:13] Set("SIP/flowdock-1-00000001", "DSTRING=PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9&") in new stack -- Executing [[email protected]:14] Set("SIP/flowdock-1-00000001", "ITER=2") in new stack -- Executing [[email protected]:15] GotoIf("SIP/flowdock-1-00000001", "0?begin") in new stack -- Executing [[email protected]:16] ExecIf("SIP/flowdock-1-00000001", "0?Return()") in new stack -- Executing [[email protected]:17] Set("SIP/flowdock-1-00000001", "DSTRING=PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9") in new stack -- Executing [[email protected]:18] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:27] GotoIf("SIP/flowdock-1-00000001", "0?nodial") in new stack -- Executing [[email protected]:28] GotoIf("SIP/flowdock-1-00000001", "0?skiptrace") in new stack -- Executing [[email protected]:29] GosubIf("SIP/flowdock-1-00000001", "1?ctset,1():ctclear,1()") in new stack -- Executing [[email protected]:1] Set("SIP/flowdock-1-00000001", "DB(CALLTRACE/501)=+8108574822") in new stack -- Executing [[email protected]:2] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:30] Set("SIP/flowdock-1-00000001", "D_OPTIONS=Ttr") in new stack -- Executing [[email protected]-one:31] ExecIf("SIP/flowdock-1-00000001", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [[email protected]:32] ExecIf("SIP/flowdock-1-00000001", "0?SIPAddHeader()") in new stack -- Executing [[email protected]:33] ExecIf("SIP/flowdock-1-00000001", "1?Set(CHANNEL(musicclass)=default)") in new stack -- Executing [[email protected]:34] GosubIf("SIP/flowdock-1-00000001", "0?qwait,1()") in new stack -- Executing [[email protected]:35] Set("SIP/flowdock-1-00000001", "__CWIGNORE=") in new stack -- Executing [[email protected]:36] Set("SIP/flowdock-1-00000001", "__KEEPCID=TRUE") in new stack -- Executing [[email protected]:37] GotoIf("SIP/flowdock-1-00000001", "0?usegoto,1") in new stack -- Executing [[email protected]:38] GotoIf("SIP/flowdock-1-00000001", "1?godial") in new stack -- Goto (macro-dial-one,s,43) -- Executing [[email protected]:43] Macro("SIP/flowdock-1-00000001", "dialout-one-predial-hook,") in new stack -- Executing [[email protected]:1] MacroExit("SIP/flowdock-1-00000001", "") in new stack -- Executing [[email protected]:44] Dial("SIP/flowdock-1-00000001", "PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9,,Ttr") in new stack -- Called PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9 -- PJSIP/501-00000001 is ringing -- PJSIP/501-00000001 answered SIP/flowdock-1-00000001 -- Channel PJSIP/501-00000001 joined 'simple_bridge' basic-bridge <be2054e4-d93d-43dd-a741-705c219dd21c> -- Channel SIP/flowdock-1-00000001 joined 'simple_bridge' basic-bridge <be2054e4-d93d-43dd-a741-705c219dd21c> [2016-01-10 23:05:17] NOTICE[19332]: chan_sip.c:28805 check_rtp_timeout: Disconnecting call 'SIP/flowdock-1-00000001' for lack of RTP activity in 31 seconds -- Channel SIP/flowdock-1-00000001 left 'simple_bridge' basic-bridge <be2054e4-d93d-43dd-a741-705c219dd21c> == Spawn extension (macro-dial-one, s, 44) exited non-zero on 'SIP/flowdock-1-00000001' in macro 'dial-one' == Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/flowdock-1-00000001' in macro 'exten-vm' == Spawn extension (from-did-direct, 501, 2) exited non-zero on 'SIP/flowdock-1-00000001' -- Executing [[email protected]:1] Macro("SIP/flowdock-1-00000001", "hangupcall,") in new stack -- Executing [[email protected]:1] GotoIf("SIP/flowdock-1-00000001", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [[email protected]:3] Hangup("SIP/flowdock-1-00000001", "") in new stack == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/flowdock-1-00000001' in macro 'hangupcall' == Spawn extension (from-did-direct, h, 1) exited non-zero on 'SIP/flowdock-1-00000001' -- Channel PJSIP/501-00000001 left 'simple_bridge' basic-bridge <be2054e4-d93d-43dd-a741-705c219dd21c>

It disconnects due to lack of RTP activity after 31 seconds, which is ok I guess given that I enabled RTP logging and that I haven’t seen log entries like this Got RTP packet from and Got RTP packet from.

I’ve gone trough several wiki entries for troubleshooting sound issues, none of which helped so far, I’ve been to figure this out since 9am this morning along with couple of re-installs using different OS, not it’s 6:34 PM and I still am not able to find any trace of errors or where to look next.

I did read on one forum post to check this file contents /etc/asterisk/rtp.conf and so I did and the recommendation was to uncomment the include rtp_additional.conf line was commented out, so I did that. Restarted asterisk, done core reload, and tried to call from my cell, again there was no sound.

After I did this my UI started showing 1 tempered file security warning on the UI, so I did, amportal a ma refreshsignatures and the warning is gone now, and the /etc/asterisk/rtp.conf is back to the old commented state for include rtp_additional.conf line.

What can I do next? I really thought I would be able to think this one trough today, but can’t so far, any suggestions are appreciated and welcome. Thanks!

Even though sometimes you think you’ve tried everything, the solution is right in front of your eyes. I was missing NAT settings as the wiki points out :smile:

I didn’t have local network settings populated, I thought that was irrelevant and that only external IP mattered, EVERYTHING MATTERS!

Sorry for spamming here is what I mean, next person having the same issue :

sorry for spamming, wish this helps someone