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 [18108274221@from-trunk:1] Set("SIP/flowdock-1-00000001", "__FROM_DID=18108274221") in new stack -- Executing [18108274221@from-trunk:2] Gosub("SIP/flowdock-1-00000001", "sub-record-check,s,1(in,18108274221,dontcare)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/flowdock-1-00000001", "0?initialized") in new stack -- Executing [s@sub-record-check:2] Set("SIP/flowdock-1-00000001", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:3] Set("SIP/flowdock-1-00000001", "NOW=1452467083") in new stack -- Executing [s@sub-record-check:4] Set("SIP/flowdock-1-00000001", "__DAY=10") in new stack -- Executing [s@sub-record-check:5] Set("SIP/flowdock-1-00000001", "__MONTH=01") in new stack -- Executing [s@sub-record-check:6] Set("SIP/flowdock-1-00000001", "__YEAR=2016") in new stack -- Executing [s@sub-record-check:7] Set("SIP/flowdock-1-00000001", "__TIMESTR=20160110-230443") in new stack -- Executing [s@sub-record-check:8] Set("SIP/flowdock-1-00000001", "__FROMEXTEN=unknown") in new stack -- Executing [s@sub-record-check:9] Set("SIP/flowdock-1-00000001", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:10] NoOp("SIP/flowdock-1-00000001", "Recordings initialized") in new stack -- Executing [s@sub-record-check:11] ExecIf("SIP/flowdock-1-00000001", "0?Set(ARG3=dontcare)") in new stack -- Executing [s@sub-record-check:12] Set("SIP/flowdock-1-00000001", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/flowdock-1-00000001", "0?Set(REC_STATUS=NO)") in new stack -- Executing [s@sub-record-check:14] GotoIf("SIP/flowdock-1-00000001", "2?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [s@sub-record-check:17] GotoIf("SIP/flowdock-1-00000001", "1?sub-record-check,in,1") in new stack -- Goto (sub-record-check,in,1) -- Executing [in@sub-record-check:1] NoOp("SIP/flowdock-1-00000001", "Inbound Recording Check to 18108274221") in new stack -- Executing [in@sub-record-check:2] Set("SIP/flowdock-1-00000001", "FROMEXTEN=unknown") in new stack -- Executing [in@sub-record-check:3] ExecIf("SIP/flowdock-1-00000001", "12?Set(FROMEXTEN=+8108574822)") in new stack -- Executing [in@sub-record-check:4] Gosub("SIP/flowdock-1-00000001", "recordcheck,1(dontcare,in,18108274221)") in new stack -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/flowdock-1-00000001", "Starting recording check against dontcare") in new stack -- Executing [recordcheck@sub-record-check:2] Goto("SIP/flowdock-1-00000001", "dontcare") in new stack -- Goto (sub-record-check,recordcheck,3) -- Executing [recordcheck@sub-record-check:3] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [in@sub-record-check:5] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [18108274221@from-trunk:3] Gosub("SIP/flowdock-1-00000001", "app-blacklist-check,s,1()") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("SIP/flowdock-1-00000001", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("SIP/flowdock-1-00000001", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [18108274221@from-trunk:4] Set("SIP/flowdock-1-00000001", "CDR(did)=18108274221") in new stack -- Executing [18108274221@from-trunk:5] ExecIf("SIP/flowdock-1-00000001", "1 ?Set(CALLERID(name)=+8108574822)") in new stack -- Executing [18108274221@from-trunk:6] Set("SIP/flowdock-1-00000001", "CHANNEL(musicclass)=default") in new stack -- Executing [18108274221@from-trunk: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 [18108274221@from-trunk:8] GotoIf("SIP/flowdock-1-00000001", "0?macro-hangupcall") in new stack -- Executing [18108274221@from-trunk:9] Set("SIP/flowdock-1-00000001", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [18108274221@from-trunk:10] Set("SIP/flowdock-1-00000001", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [18108274221@from-trunk:11] Goto("SIP/flowdock-1-00000001", "from-did-direct,501,1") in new stack -- Goto (from-did-direct,501,1) -- Executing [501@from-did-direct:1] Set("SIP/flowdock-1-00000001", "__RINGTIMER=15") in new stack -- Executing [501@from-did-direct:2] Macro("SIP/flowdock-1-00000001", "exten-vm,novm,501,0,0,0") in new stack -- Executing [s@macro-exten-vm:1] Macro("SIP/flowdock-1-00000001", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/flowdock-1-00000001", "TOUCH_MONITOR=1452467083.16") in new stack -- Executing [s@macro-user-callerid:2] Set("SIP/flowdock-1-00000001", "AMPUSER=+8108574822") in new stack -- Executing [s@macro-user-callerid:3] GotoIf("SIP/flowdock-1-00000001", "0?report") in new stack -- Executing [s@macro-user-callerid:4] ExecIf("SIP/flowdock-1-00000001", "1?Set(REALCALLERIDNUM=+8108574822)") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/flowdock-1-00000001", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/flowdock-1-00000001", "0?limit") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/flowdock-1-00000001", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("SIP/flowdock-1-00000001", "1?report") in new stack -- Goto (macro-user-callerid,s,15) -- Executing [s@macro-user-callerid:15] GotoIf("SIP/flowdock-1-00000001", "0?continue") in new stack -- Executing [s@macro-user-callerid:16] Set("SIP/flowdock-1-00000001", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:17] GotoIf("SIP/flowdock-1-00000001", "1?continue") in new stack -- Goto (macro-user-callerid,s,28) -- Executing [s@macro-user-callerid:28] Set("SIP/flowdock-1-00000001", "CALLERID(number)=+8108574822") in new stack -- Executing [s@macro-user-callerid:29] Set("SIP/flowdock-1-00000001", "CALLERID(name)=+8108574822") in new stack -- Executing [s@macro-user-callerid:30] Set("SIP/flowdock-1-00000001", "CDR(cnum)=+8108574822") in new stack -- Executing [s@macro-user-callerid:31] Set("SIP/flowdock-1-00000001", "CDR(cnam)=+8108574822") in new stack -- Executing [s@macro-user-callerid:32] Set("SIP/flowdock-1-00000001", "CHANNEL(language)=en") in new stack -- Executing [s@macro-exten-vm:2] Set("SIP/flowdock-1-00000001", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("SIP/flowdock-1-00000001", "__EXTTOCALL=501") in new stack -- Executing [s@macro-exten-vm:4] Set("SIP/flowdock-1-00000001", "__PICKUPMARK=501") in new stack -- Executing [s@macro-exten-vm:5] Set("SIP/flowdock-1-00000001", "RT=") in new stack -- Executing [s@macro-exten-vm:6] ExecIf("SIP/flowdock-1-00000001", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack -- Executing [s@macro-exten-vm:7] ExecIf("SIP/flowdock-1-00000001", "0?MacroExit()") in new stack -- Executing [s@macro-exten-vm:8] Gosub("SIP/flowdock-1-00000001", "sub-record-check,s,1(exten,501,dontcare)") in new stack -- Executing [s@sub-record-check:1] GotoIf("SIP/flowdock-1-00000001", "12?initialized") in new stack -- Goto (sub-record-check,s,10) -- Executing [s@sub-record-check:10] NoOp("SIP/flowdock-1-00000001", "Recordings initialized") in new stack -- Executing [s@sub-record-check:11] ExecIf("SIP/flowdock-1-00000001", "0?Set(ARG3=dontcare)") in new stack -- Executing [s@sub-record-check:12] Set("SIP/flowdock-1-00000001", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:13] ExecIf("SIP/flowdock-1-00000001", "0?Set(REC_STATUS=NO)") in new stack -- Executing [s@sub-record-check:14] GotoIf("SIP/flowdock-1-00000001", "5?checkaction") in new stack -- Goto (sub-record-check,s,17) -- Executing [s@sub-record-check:17] GotoIf("SIP/flowdock-1-00000001", "1?sub-record-check,exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [exten@sub-record-check:1] NoOp("SIP/flowdock-1-00000001", "Exten Recording Check between +8108574822 and 501") in new stack -- Executing [exten@sub-record-check:2] Set("SIP/flowdock-1-00000001", "CALLTYPE=external") in new stack -- Executing [exten@sub-record-check:3] ExecIf("SIP/flowdock-1-00000001", "0?Set(CALLTYPE=)") in new stack -- Executing [exten@sub-record-check:4] Set("SIP/flowdock-1-00000001", "CALLEE=dontcare") in new stack -- Executing [exten@sub-record-check:5] ExecIf("SIP/flowdock-1-00000001", "0?Set(CALLEE=dontcare)") in new stack -- Executing [exten@sub-record-check:6] GotoIf("SIP/flowdock-1-00000001", "1?callee") in new stack -- Goto (sub-record-check,exten,11) -- Executing [exten@sub-record-check:11] Gosub("SIP/flowdock-1-00000001", "recordcheck,1(dontcare,external,501)") in new stack -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/flowdock-1-00000001", "Starting recording check against dontcare") in new stack -- Executing [recordcheck@sub-record-check:2] Goto("SIP/flowdock-1-00000001", "dontcare") in new stack -- Goto (sub-record-check,recordcheck,3) -- Executing [recordcheck@sub-record-check:3] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [exten@sub-record-check:12] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [s@macro-exten-vm:9] GotoIf("SIP/flowdock-1-00000001", "1?macrodial") in new stack -- Goto (macro-exten-vm,s,15) -- Executing [s@macro-exten-vm:15] GosubIf("SIP/flowdock-1-00000001", "0?clrheader,1()") in new stack -- Executing [s@macro-exten-vm:16] Macro("SIP/flowdock-1-00000001", "dial-one,,Ttr,501") in new stack -- Executing [s@macro-dial-one:1] Set("SIP/flowdock-1-00000001", "DEXTEN=501") in new stack -- Executing [s@macro-dial-one:2] Set("SIP/flowdock-1-00000001", "DIALSTATUS_CW=") in new stack -- Executing [s@macro-dial-one:3] GosubIf("SIP/flowdock-1-00000001", "0?screen,1()") in new stack -- Executing [s@macro-dial-one:4] GosubIf("SIP/flowdock-1-00000001", "0?cf,1()") in new stack -- Executing [s@macro-dial-one:5] GotoIf("SIP/flowdock-1-00000001", "1?skip1") in new stack -- Goto (macro-dial-one,s,8) -- Executing [s@macro-dial-one:8] GotoIf("SIP/flowdock-1-00000001", "0?nodial") in new stack -- Executing [s@macro-dial-one:9] GotoIf("SIP/flowdock-1-00000001", "0?continue") in new stack -- Executing [s@macro-dial-one:10] Set("SIP/flowdock-1-00000001", "EXTHASCW=ENABLED") in new stack -- Executing [s@macro-dial-one:11] GotoIf("SIP/flowdock-1-00000001", "0?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,23) -- Executing [s@macro-dial-one:23] GotoIf("SIP/flowdock-1-00000001", "1?next3:continue") in new stack -- Goto (macro-dial-one,s,24) -- Executing [s@macro-dial-one:24] ExecIf("SIP/flowdock-1-00000001", "0?Set(DIALSTATUS_CW=BUSY)") in new stack -- Executing [s@macro-dial-one:25] GotoIf("SIP/flowdock-1-00000001", "0?nodial") in new stack -- Executing [s@macro-dial-one:26] GosubIf("SIP/flowdock-1-00000001", "1?dstring,1():dlocal,1()") in new stack -- Executing [dstring@macro-dial-one:1] Set("SIP/flowdock-1-00000001", "DSTRING=") in new stack -- Executing [dstring@macro-dial-one:2] Set("SIP/flowdock-1-00000001", "DEVICES=501") in new stack -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/flowdock-1-00000001", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/flowdock-1-00000001", "0?Set(DEVICES=01)") in new stack -- Executing [dstring@macro-dial-one:5] Set("SIP/flowdock-1-00000001", "LOOPCNT=1") in new stack -- Executing [dstring@macro-dial-one:6] Set("SIP/flowdock-1-00000001", "ITER=1") in new stack -- Executing [dstring@macro-dial-one:7] Set("SIP/flowdock-1-00000001", "THISDIAL=PJSIP/501") in new stack -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/flowdock-1-00000001", "1?zap2dahdi,1()") in new stack -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/flowdock-1-00000001", "0?Return()") in new stack -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/flowdock-1-00000001", "NEWDIAL=") in new stack -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/flowdock-1-00000001", "LOOPCNT2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/flowdock-1-00000001", "ITER2=1") in new stack -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/flowdock-1-00000001", "THISPART2=PJSIP/501") in new stack -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/flowdock-1-00000001", "0?Set(THISPART2=DAHDIIP/501)") in new stack -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/flowdock-1-00000001", "NEWDIAL=PJSIP/501&") in new stack -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/flowdock-1-00000001", "ITER2=2") in new stack -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/flowdock-1-00000001", "0?begin2") in new stack -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/flowdock-1-00000001", "THISDIAL=PJSIP/501") in new stack -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [dstring@macro-dial-one:9] GotoIf("SIP/flowdock-1-00000001", "0?doset") in new stack -- Executing [dstring@macro-dial-one:10] NoOp("SIP/flowdock-1-00000001", "Debug: Found PJSIP Destination PJSIP/501, updating with PJSIP_DIAL_CONTACTS") in new stack -- Executing [dstring@macro-dial-one:11] Set("SIP/flowdock-1-00000001", "THISDIAL=PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9") in new stack -- Executing [dstring@macro-dial-one:12] GotoIf("SIP/flowdock-1-00000001", "0?skipset") in new stack -- Executing [dstring@macro-dial-one:13] Set("SIP/flowdock-1-00000001", "DSTRING=PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9&") in new stack -- Executing [dstring@macro-dial-one:14] Set("SIP/flowdock-1-00000001", "ITER=2") in new stack -- Executing [dstring@macro-dial-one:15] GotoIf("SIP/flowdock-1-00000001", "0?begin") in new stack -- Executing [dstring@macro-dial-one:16] ExecIf("SIP/flowdock-1-00000001", "0?Return()") in new stack -- Executing [dstring@macro-dial-one:17] Set("SIP/flowdock-1-00000001", "DSTRING=PJSIP/501/sip:[email protected]:58401;rinstance=d06433ae9b3ab6b9") in new stack -- Executing [dstring@macro-dial-one:18] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [s@macro-dial-one:27] GotoIf("SIP/flowdock-1-00000001", "0?nodial") in new stack -- Executing [s@macro-dial-one:28] GotoIf("SIP/flowdock-1-00000001", "0?skiptrace") in new stack -- Executing [s@macro-dial-one:29] GosubIf("SIP/flowdock-1-00000001", "1?ctset,1():ctclear,1()") in new stack -- Executing [ctset@macro-dial-one:1] Set("SIP/flowdock-1-00000001", "DB(CALLTRACE/501)=+8108574822") in new stack -- Executing [ctset@macro-dial-one:2] Return("SIP/flowdock-1-00000001", "") in new stack -- Executing [s@macro-dial-one:30] Set("SIP/flowdock-1-00000001", "D_OPTIONS=Ttr") in new stack -- Executing [s@macro-dial-one:31] ExecIf("SIP/flowdock-1-00000001", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [s@macro-dial-one:32] ExecIf("SIP/flowdock-1-00000001", "0?SIPAddHeader()") in new stack -- Executing [s@macro-dial-one:33] ExecIf("SIP/flowdock-1-00000001", "1?Set(CHANNEL(musicclass)=default)") in new stack -- Executing [s@macro-dial-one:34] GosubIf("SIP/flowdock-1-00000001", "0?qwait,1()") in new stack -- Executing [s@macro-dial-one:35] Set("SIP/flowdock-1-00000001", "__CWIGNORE=") in new stack -- Executing [s@macro-dial-one:36] Set("SIP/flowdock-1-00000001", "__KEEPCID=TRUE") in new stack -- Executing [s@macro-dial-one:37] GotoIf("SIP/flowdock-1-00000001", "0?usegoto,1") in new stack -- Executing [s@macro-dial-one:38] GotoIf("SIP/flowdock-1-00000001", "1?godial") in new stack -- Goto (macro-dial-one,s,43) -- Executing [s@macro-dial-one:43] Macro("SIP/flowdock-1-00000001", "dialout-one-predial-hook,") in new stack -- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("SIP/flowdock-1-00000001", "") in new stack -- Executing [s@macro-dial-one: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 [h@from-did-direct:1] Macro("SIP/flowdock-1-00000001", "hangupcall,") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/flowdock-1-00000001", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [s@macro-hangupcall: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!