NEW User - Sipstation trunking - no outbound calls (can receive inbound) Cisco 7940/7960

I initially reviewed this thread (http://www.freepbx.org/forum/freepbx/general-help/new-to-free-pbx-cannot-make-outgoing-calls-via-trunk#comment-40447) and I’m having the same issue, cannot make outbound calls. I can receive incoming calls from the outside just fine and I can place and receive internal calls to all my extensions.

I’m currently running FreePBX 4.211.64-9, Asterisk 11.6, and Centos 6.4

I have enabled EndPoint Manager and I have a SIPSTATION trunk with one DID. I do have the UDP ports (5060, 10000-20000) forwarded to the pbx server. In SIPSTATION, “Run Firewall Test” I have all green lights and status PASS, so I don’t believe there is a firewall issue?

My network connection is as follows:
Server & Cisco 7940/7960 phones Cisco Switch (SFE2000p)  D-link DIR-655. I do have a static IP from my ISP and my Switch has “fast port” enabled on the ports the phones connect to. My Cisco phones are running Sip 8.12 and endpoint manager configured them perfectly (side note: I would agree with SkykingOH on taking CCM outback and shooting it, I have read too many posts).

Below is a copy of the Asterisk CLI output. Please let me know your thoughts and ideas as to what the issue may be or if you need any additional info. I appreciate all the posts by many of the “regulars” as you have helped me in my setup process.

[[email protected] ~]# asterisk -RvvvT
[Dec 10 19:00:44] Asterisk 11.6.0, Copyright © 1999 - 2013 Digium, Inc. and ot hers.
[Dec 10 19:00:44] Created by Mark Spencer [email protected]
[Dec 10 19:00:44] Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
[Dec 10 19:00:44] This is free software, with components licensed under the GNU General Public
[Dec 10 19:00:44] License version 2 and other licenses; you are welcome to redistribute it under
[Dec 10 19:00:44] certain conditions. Type ‘core show license’ for details.
[Dec 10 19:00:44] ============================================================== ===========
[Dec 10 19:00:44] Connected to Asterisk 11.6.0 currently running on localhost (pid = 2040)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/511-00000143”, “user-callerid,LIMIT”) in new stack
– Executing [[email protected]:1] Set(“SIP/511-00000143”, “TOUCH_MONITOR=1386727268.323”) in new stack
– Executing [[email protected]:2] Set(“SIP/511-00000143”, “AMPUSER=511”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/511-00000143”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/511-00000143”, “1?Set(REALCALLERIDNUM=511)”) in new stack
– Executing [[email protected]:5] Set(“SIP/511-00000143”, “AMPUSER=511”) in new stack
– Executing [[email protected]:6] Set(“SIP/511-00000143”, “AMPUSERCIDNAME=Office”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/511-00000143”, “0?report”) in new stack
– Executing [[email protected]:8] Set(“SIP/511-00000143”, “AMPUSERCID=511”) in new stack
– Executing [[email protected]:9] Set(“SIP/511-00000143”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:10] Set(“SIP/511-00000143”, “CALLERID(all)=“Office” <511>”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/511-00000143”, “0?limit”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/511-00000143”, “1?Set(GROUP(concurrency_limit)=511)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/511-00000143”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:14] GosubIf(“SIP/511-00000143”, “7?sub-ccss,s,1(from-internal,8013905200)”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/511-00000143”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/511-00000143”, “CCSS_SETUP=TRUE”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/511-00000143”, “0?monitor_config,1(from-internal,8013905200):monitor_default,1(from-internal,8013905200)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/511-00000143”, “0?is_exten”) in new stack
– Executing [[email protected]:2] StackPop(“SIP/511-00000143”, “”) in new stack
– Executing [[email protected]:3] Return(“SIP/511-00000143”, “FALSE”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/511-00000143”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [[email protected]:28] Set(“SIP/511-00000143”, “CALLERID(number)=511”) in new stack
– Executing [[email protected]:29] Set(“SIP/511-00000143”, “CALLERID(name)=Office”) in new stack
– Executing [[email protected]:30] Set(“SIP/511-00000143”, “CDR(cnum)=511”) in new stack
– Executing [[email protected]:31] Set(“SIP/511-00000143”, “CDR(cnam)=Office”) in new stack
– Executing [[email protected]:32] Set(“SIP/511-00000143”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/511-00000143”, “ROUTEUSER=511”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/511-00000143”, “1?outbound-4-5-6,8013905200,2:outbound-allroutes,8013905200,2”) in new stack
– Goto (outbound-4-5-6,8013905200,2)
– Executing [[email protected]:2] Set(“SIP/511-00000143”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:3] Set(“SIP/511-00000143”, “_NODEST=”) in new stack
– Executing [[email protected]:4] Gosub(“SIP/511-00000143”, “sub-record-check,s,1(out,8013905200,)”) in new stack
– Executing [[email protected]:1] Set(“SIP/511-00000143”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/511-00000143”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [[email protected]:7] Set(“SIP/511-00000143”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/511-00000143”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [[email protected]:11] ExecIf(“SIP/511-00000143”, “0?Return()”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/511-00000143”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/511-00000143”, “0?out,1”) in new stack
– Executing [[email protected]:14] Set(“SIP/511-00000143”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:15] Set(“SIP/511-00000143”, “NOW=1386727268”) in new stack
– Executing [[email protected]:16] Set(“SIP/511-00000143”, “__DAY=10”) in new stack
– Executing [[email protected]:17] Set(“SIP/511-00000143”, “__MONTH=12”) in new stack
– Executing [[email protected]:18] Set(“SIP/511-00000143”, “__YEAR=2013”) in new stack
– Executing [[email protected]:19] Set(“SIP/511-00000143”, “__TIMESTR=2013 1210-190108”) in new stack
– Executing [[email protected]:20] Set(“SIP/511-00000143”, “__FROMEXTEN=511”) in new stack
– Executing [[email protected]:21] Set(“SIP/511-00000143”, “__CALLFILENAME=out-8013905200-511-20131210-190108-1386727268.323”) in new stack
– Executing [[email protected]:22] Goto(“SIP/511-00000143”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]k:1] ExecIf(“SIP/511-00000143”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/511-00000143”, “0?record,1(exten,8013905200,511)”) in new stack
– Executing [[email protected]:3] Return(“SIP/511-00000143”, “”) in new stack
– Executing [[email protected]:5] Macro(“SIP/511-00000143”, “dialout-trunk,1,8013905200,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/511-00000143”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/511-00000143”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/511-00000143”, “0?disable trunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/511-00000143”, “DIAL_NUMBER=8013905200”) in new stack
– Executing [[email protected]:5] Set(“SIP/511-00000143”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:6] Set(“SIP/511-00000143”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/511-00000143”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/511-00000143”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/511-00000143”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [[email protected]:11] Macro(“SIP/511-00000143”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/511-00000143”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/511-00000143”, “0?Set(REALCALLERIDNUM=511)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/511-00000143”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/511-00000143”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/511-00000143”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/511-00000143”, “TRUNKOUTCID=8018953650”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/511-00000143”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [[email protected]:14] ExecIf(“SIP/511-00000143”, “1?Set(CALLERID(all)=8018953650)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/511-00000143”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/511-00000143”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/511-00000143”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:18] Set(“SIP/511-00000143”, “CDR(outbound_cnum)=8018953650”) in new stack
– Executing [[email protected]:19] Set(“SIP/511-00000143”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/511-00000143”, “0?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:13] Set(“SIP/511-00000143”, “OUTNUM=8013905200”) in new stack
– Executing [[email protected]:14] Set(“SIP/511-00000143”, “custom=SIP/fpbx-1-IX6Xupk5Ar6X”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/511-00000143”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/511-00000143”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/511-00000143”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/511-00000143”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/511-00000143”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/511-00000143”, “1?Set(CONNECTEDLINE(num,i)=8013905200)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/511-00000143”, “1?Set(CONNECTEDLINE(name,i)=CID:8018953650)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/511-00000143”, “0?customtrunk”) in new stack
– Executing [[email protected]:22] Dial(“SIP/511-00000143”, “SIP/fpbx-1-IX6Xupk5Ar6X/8013905200,300,Tt”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/fpbx-1-IX6Xupk5Ar6X/8013905200
[2013-12-10 19:01:08] WARNING[27477][C-000000d2]: channel.c:6164 ast_channel_make_compatible_helper: No path to translate from SIP/fpbx-1-IX6Xupk5Ar6X-00000144>to SIP/511-00000143
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/511-00000143’ in macro ‘dialout-trunk’
== Spawn extension (outbound-4-5-6, 8013905200, 5) exited non-zero on ‘SIP/511-00000143’

I fixed my own issue. G.729 codec was set as the highest priority in “Asterisk SIP Settings”. Once I disabled it and set ulaw, alaw, ilbc, and G723 I can now make outgoing calls and still receive incoming. Note that SIPSTATION auto configured the trunks outgoing settings as “allow=ulaw”. Cross comparing the settings back to the Asterisk SIP Settings is where I found the non-match.

Looks like you don’t have g.729 licenses.