Outgoing calls dial but dont really go through

Hello friends,
I’ve run into a strange problem. i can dial perfectly between extensions.I have defined incoming and outgoing routes. When i dial in to my system. the system keeps ringing and call never gets received.
And when i dial out the call is shown as connected but the dialed phone never gets any ring.
Please help me out.

Asterisk Version: 14.7.4
Freepbx version 14

freepbx*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked In Service Description
1 from-analog en default Yes
2 from-analog en default Yes
3 from-analog en default Yes
4 from-analog en default Yes
5 from-analog en default Yes
6 from-analog en default Yes
7 from-analog en default Yes
8 from-analog en default Yes

[root@freepbx /]# dahdi_scan
[1]
active=yes
alarms=OK
description=Wildcard TDM800P
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM800P
location=PCI Bus 07 Slot 12
basechan=1
totchans=8
irq=0
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
port=5,FXO
port=6,FXO
port=7,FXO
port=8,FXO

[root@freepbx /]# dahdi_hardware
pci:0000:07:0b.0 wctdm24xxp+ d161:0800 Wildcard TDM800P

== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [03104878585@from-internal:1] Macro(“SIP/220-00000009”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/220-00000009”, “TOUCH_MONITOR=1522501786.13”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/220-00000009”, “AMPUSER=220”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/220-00000009”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/220-00000009”, “1?Set(REALCALLERIDNUM=220)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/220-00000009”, “AMPUSER=220”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/220-00000009”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/220-00000009”, “AMPUSERCIDNAME=220”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“SIP/220-00000009”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/220-00000009”, “0?report”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/220-00000009”, “AMPUSERCID=220”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/220-00000009”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/220-00000009”, “CALLERID(all)=“220” <220>”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/220-00000009”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/220-00000009”, “1?Set(GROUP(concurrency_limit)=220)”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“SIP/220-00000009”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] NoOp(“SIP/220-00000009”, “Macro Depth is 1”) in new stack
– Executing [s@macro-user-callerid:17] GotoIf(“SIP/220-00000009”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] GotoIf(“SIP/220-00000009”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [s@macro-user-callerid:37] Set(“SIP/220-00000009”, “CALLERID(number)=220”) in new stack
– Executing [s@macro-user-callerid:38] Set(“SIP/220-00000009”, “CALLERID(name)=220”) in new stack
– Executing [s@macro-user-callerid:39] GotoIf(“SIP/220-00000009”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:40] Set(“SIP/220-00000009”, “CDR(cnam)=220”) in new stack
– Executing [s@macro-user-callerid:41] Set(“SIP/220-00000009”, “CDR(cnum)=220”) in new stack
– Executing [s@macro-user-callerid:42] Set(“SIP/220-00000009”, “CHANNEL(language)=en”) in new stack
– Executing [03104878585@from-internal:2] Gosub(“SIP/220-00000009”, “sub-record-check,s,1(out,03104878585,force)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/220-00000009”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/220-00000009”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/220-00000009”, “NOW=1522501786”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/220-00000009”, “__DAY=31”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/220-00000009”, “__MONTH=03”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/220-00000009”, “__YEAR=2018”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/220-00000009”, “__TIMESTR=20180331-130946”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/220-00000009”, “__FROMEXTEN=220”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/220-00000009”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/220-00000009”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/220-00000009”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/220-00000009”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/220-00000009”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/220-00000009”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/220-00000009”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/220-00000009”, “Outbound Recording Check from 220 to 03104878585”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/220-00000009”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/220-00000009”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/220-00000009”, “recordcheck,1(force,out,03104878585)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/220-00000009”, “Starting recording check against force”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/220-00000009”, “force”) in new stack
– Goto (sub-record-check,recordcheck,5)
– Executing [recordcheck@sub-record-check:5] Set(“SIP/220-00000009”, “__REC_POLICY_MODE=FORCE”) in new stack
– Executing [recordcheck@sub-record-check:6] GotoIf(“SIP/220-00000009”, “1?startrec”) in new stack
– Goto (sub-record-check,recordcheck,16)
– Executing [recordcheck@sub-record-check:16] NoOp(“SIP/220-00000009”, “Starting recording: out, 03104878585”) in new stack
– Executing [recordcheck@sub-record-check:17] Set(“SIP/220-00000009”, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
– Executing [recordcheck@sub-record-check:18] Set(“SIP/220-00000009”, “__CALLFILENAME=out-03104878585-220-20180331-130946-1522501786.13”) in new stack
– Executing [recordcheck@sub-record-check:19] MixMonitor(“SIP/220-00000009”, “2018/03/31/out-03104878585-220-20180331-130946-1522501786.13.wav,abi(LOCAL_MIXMON_ID),”) in new stack
– Executing [recordcheck@sub-record-check:20] Set(“SIP/220-00000009”, “__MIXMON_ID=0x7ff9dc070280”) in new stack
– Executing [recordcheck@sub-record-check:21] Set(“SIP/220-00000009”, “__RECORD_ID=SIP/220-00000009”) in new stack
– Executing [recordcheck@sub-record-check:22] Set(“SIP/220-00000009”, “__REC_STATUS=RECORDING”) in new stack
– Executing [recordcheck@sub-record-check:23] Set(“SIP/220-00000009”, “CDR(recordingfile)=out-03104878585-220-20180331-130946-1522501786.13.wav”) in new stack
– Executing [recordcheck@sub-record-check:24] Return(“SIP/220-00000009”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/220-00000009”, “”) in new stack
– Executing [03104878585@from-internal:3] ExecIf(“SIP/220-00000009”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [03104878585@from-internal:4] Set(“SIP/220-00000009”, “MOHCLASS=default”) in new stack
– Executing [03104878585@from-internal:5] ExecIf(“SIP/220-00000009”, “1?Set(TRUNKCIDOVERRIDE=emergency route)”) in new stack
– Executing [03104878585@from-internal:6] Set(“SIP/220-00000009”, “_NODEST=”) in new stack
– Executing [03104878585@from-internal:7] Macro(“SIP/220-00000009”, “dialout-trunk,1,03104878585,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/220-00000009”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/220-00000009”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] ExecIf(“SIP/220-00000009”, “0?Set(CALLERID(num)=220)”) in new stack
– Executing [s@macro-dialout-trunk:4] GotoIf(“SIP/220-00000009”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/220-00000009”, “DIAL_NUMBER=03104878585”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/220-00000009”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dialout-trunk:7] Set(“SIP/220-00000009”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:8] Set(“SIP/220-00000009”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/220-00000009”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:10] GotoIf(“SIP/220-00000009”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“SIP/220-00000009”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:12] Macro(“SIP/220-00000009”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] NoOp(“SIP/220-00000009”, “220”) in new stack
– Executing [s@macro-outbound-callerid:2] NoOp(“SIP/220-00000009”, “”) in new stack
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/220-00000009”, “off”) in new stack
– Executing [s@macro-outbound-callerid:4] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:5] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:6] ExecIf(“SIP/220-00000009”, “0?Set(REALCALLERIDNUM=220)”) in new stack
– Executing [s@macro-outbound-callerid:7] GotoIf(“SIP/220-00000009”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing [s@macro-outbound-callerid:11] Set(“SIP/220-00000009”, “USEROUTCID=220”) in new stack
– Executing [s@macro-outbound-callerid:12] Set(“SIP/220-00000009”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:13] Set(“SIP/220-00000009”, “TRUNKOUTCID=12345”) in new stack
– Executing [s@macro-outbound-callerid:14] GotoIf(“SIP/220-00000009”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,19)
– Executing [s@macro-outbound-callerid:19] ExecIf(“SIP/220-00000009”, “1?Set(CALLERID(all)=12345)”) in new stack
– Executing [s@macro-outbound-callerid:20] ExecIf(“SIP/220-00000009”, “1?Set(CALLERID(all)=220)”) in new stack
– Executing [s@macro-outbound-callerid:21] ExecIf(“SIP/220-00000009”, “1?Set(CALLERID(all)=emergency route)”) in new stack
– Executing [s@macro-outbound-callerid:22] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:23] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:24] Set(“SIP/220-00000009”, “CDR(outbound_cnum)=”) in new stack
– Executing [s@macro-outbound-callerid:25] Set(“SIP/220-00000009”, “CDR(outbound_cnam)=emergency route”) in new stack
– Executing [s@macro-dialout-trunk:13] GosubIf(“SIP/220-00000009”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/220-00000009”, “OUTNUM=03104878585”) in new stack
– Executing [s@macro-dialout-trunk:15] Set(“SIP/220-00000009”, “custom=DAHDI/g0”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/220-00000009”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [s@macro-dialout-trunk:17] ExecIf(“SIP/220-00000009”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:18] Macro(“SIP/220-00000009”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/220-00000009”, “”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“SIP/220-00000009”, “0?skipcrm”) in new stack
– Executing [s@macro-dialout-trunk:20] Set(“SIP/220-00000009”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [s@macro-dialout-trunk:21] Set(“SIP/220-00000009”, “__CRM_DESTINATION=03104878585”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“SIP/220-00000009”, “__CRM_SOURCE=220”) in new stack
– Executing [s@macro-dialout-trunk:23] AGI(“SIP/220-00000009”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
== Begin MixMonitor Recording SIP/220-00000009
– <SIP/220-00000009>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@macro-dialout-trunk:24] Set(“SIP/220-00000009”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [s@macro-dialout-trunk:25] NoOp(“SIP/220-00000009”, “CRM Finished”) in new stack
– Executing [s@macro-dialout-trunk:26] GotoIf(“SIP/220-00000009”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:27] ExecIf(“SIP/220-00000009”, “1?Set(CONNECTEDLINE(num,i)=03104878585)”) in new stack
– Executing [s@macro-dialout-trunk:28] ExecIf(“SIP/220-00000009”, “1?Set(CONNECTEDLINE(name,i)=CID:)”) in new stack
– Executing [s@macro-dialout-trunk:29] ExecIf(“SIP/220-00000009”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden))”) in new stack
– Executing [s@macro-dialout-trunk:30] GotoIf(“SIP/220-00000009”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:31] Dial(“SIP/220-00000009”, “DAHDI/g0/03104878585,300,Tb(func-apply-sipheaders^s^1)”) in new stack
– DAHDI/1-1 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“DAHDI/1-1”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“DAHDI/1-1”, “Applying SIP Headers to channel”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“DAHDI/1-1”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:4] While(“DAHDI/1-1”, “0”) in new stack
– Jumping to priority 7
– Executing [s@func-apply-sipheaders:8] Return(“DAHDI/1-1”, “”) in new stack
== Spawn extension (from-analog, 03104878585, 1) exited non-zero on ‘DAHDI/1-1’
– DAHDI/1-1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called DAHDI/g0/03104878585
– DAHDI/1-1 answered SIP/220-00000009
– Channel DAHDI/1-1 joined ‘simple_bridge’ basic-bridge
– Channel SIP/220-00000009 joined ‘simple_bridge’ basic-bridge
– Channel SIP/220-00000009 left ‘simple_bridge’ basic-bridge
== Spawn extension (macro-dialout-trunk, s, 31) exited non-zero on ‘SIP/220-00000009’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 03104878585, 7) exited non-zero on ‘SIP/220-00000009’
– Executing [h@from-internal:1] Macro(“SIP/220-00000009”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/220-00000009”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Channel DAHDI/1-1 left ‘simple_bridge’ basic-bridge
– Hanging up on ‘DAHDI/1-1’
– Hungup ‘DAHDI/1-1’
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/220-00000009”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] NoOp(“SIP/220-00000009”, “DAHDI/1-1 monior file= /var/spool/asterisk/monitor/2018/03/31/out-03104878585-220-20180331-130946-1522501786.13.wav”) in new stack
– Executing [s@macro-hangupcall:5] AGI(“SIP/220-00000009”, “attendedtransfer-rec-restart.php,DAHDI/1-1,/var/spool/asterisk/monitor/2018/03/31/out-03104878585-220-20180331-130946-1522501786.13.wav”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
– <SIP/220-00000009>AGI Script attendedtransfer-rec-restart.php completed, returning 0
– Executing [s@macro-hangupcall:6] Hangup(“SIP/220-00000009”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 6) exited non-zero on ‘SIP/220-00000009’ in macro ‘hangupcall’
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/220-00000009’
– SIP/220-00000009 Internal Gosub(crm-hangup,s,1) start
– Executing [s@crm-hangup:1] NoOp(“SIP/220-00000009”, “Sending Hangup to CRM”) in new stack
– Executing [s@crm-hangup:2] NoOp(“SIP/220-00000009”, “HANGUP CAUSE: 16”) in new stack
– Executing [s@crm-hangup:3] ExecIf(“SIP/220-00000009”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [s@crm-hangup:4] NoOp(“SIP/220-00000009”, “MASTER CHANNEL: 1522501786.13 = 1522501786.13”) in new stack
– Executing [s@crm-hangup:5] GotoIf(“SIP/220-00000009”, “0?return”) in new stack
– Executing [s@crm-hangup:6] Set(“SIP/220-00000009”, “__CRM_HANGUP=1”) in new stack
– Executing [s@crm-hangup:7] AGI(“SIP/220-00000009”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/220-00000009>AGI Script sangomacrm.agi completed, returning 0
– Executing [s@crm-hangup:8] Return(“SIP/220-00000009”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/220-00000009’
– SIP/220-00000009 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/220-00000009

Can you connect a phone to the wall and place a call on each of the 8-phone lines you have coming into your house?

Here’s where the problem is. Without more information about your configuration, it’s hard to say exactly what is happening, but a couple of things that will help you troubleshoot:

  • FXS and FXO ports are not interchangeable. The port type on your card is the opposite of what DAHDI identifies them as (from the book “Did you forget that FXS interfaces are configured with FXO signaling and that FXO interfaces use FXS signaling?”), so the assumption is that you are using an 8-port FXS card as your outbound connection. The outbound call was trying to go through port 1 of your FXS card. Is that what you were expecting? Asterisk Book Reference.
  • When you call a number through Asterisk, you aren’t calling anything directly. You dial the number and the PBX places the call. The ringing you are hearing is the ringing of the PBX working on your call.
1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.