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

[[email protected] /]# 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

[[email protected] /]# 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 [[email protected]:1] Macro(“SIP/220-00000009”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [[email protected]:1] Set(“SIP/220-00000009”, “TOUCH_MONITOR=1522501786.13”) in new stack
– Executing [[email protected]:2] Set(“SIP/220-00000009”, “AMPUSER=220”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/220-00000009”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/220-00000009”, “1?Set(REALCALLERIDNUM=220)”) in new stack
– Executing [[email protected]:5] Set(“SIP/220-00000009”, “AMPUSER=220”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/220-00000009”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/220-00000009”, “AMPUSERCIDNAME=220”) in new stack
– Executing [[email protected]:8] ExecIf(“SIP/220-00000009”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/220-00000009”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“SIP/220-00000009”, “AMPUSERCID=220”) in new stack
– Executing [[email protected]:11] Set(“SIP/220-00000009”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:12] Set(“SIP/220-00000009”, “CALLERID(all)=“220” <220>”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/220-00000009”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/220-00000009”, “1?Set(GROUP(concurrency_limit)=220)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/220-00000009”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“SIP/220-00000009”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/220-00000009”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] GotoIf(“SIP/220-00000009”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“SIP/220-00000009”, “CALLERID(number)=220”) in new stack
– Executing [[email protected]:38] Set(“SIP/220-00000009”, “CALLERID(name)=220”) in new stack
– Executing [[email protected]:39] GotoIf(“SIP/220-00000009”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“SIP/220-00000009”, “CDR(cnam)=220”) in new stack
– Executing [[email protected]:41] Set(“SIP/220-00000009”, “CDR(cnum)=220”) in new stack
– Executing [[email protected]:42] Set(“SIP/220-00000009”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Gosub(“SIP/220-00000009”, “sub-record-check,s,1(out,03104878585,force)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/220-00000009”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/220-00000009”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/220-00000009”, “NOW=1522501786”) in new stack
– Executing [[email protected]:4] Set(“SIP/220-00000009”, “__DAY=31”) in new stack
– Executing [[email protected]:5] Set(“SIP/220-00000009”, “__MONTH=03”) in new stack
– Executing [[email protected]:6] Set(“SIP/220-00000009”, “__YEAR=2018”) in new stack
– Executing [[email protected]:7] Set(“SIP/220-00000009”, “__TIMESTR=20180331-130946”) in new stack
– Executing [[email protected]:8] Set(“SIP/220-00000009”, “__FROMEXTEN=220”) in new stack
– Executing [[email protected]:9] Set(“SIP/220-00000009”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/220-00000009”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/220-00000009”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/220-00000009”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/220-00000009”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/220-00000009”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/220-00000009”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“SIP/220-00000009”, “Outbound Recording Check from 220 to 03104878585”) in new stack
– Executing [[email protected]:2] Set(“SIP/220-00000009”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/220-00000009”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“SIP/220-00000009”, “recordcheck,1(force,out,03104878585)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/220-00000009”, “Starting recording check against force”) in new stack
– Executing [[email protected]:2] Goto(“SIP/220-00000009”, “force”) in new stack
– Goto (sub-record-check,recordcheck,5)
– Executing [[email protected]:5] Set(“SIP/220-00000009”, “__REC_POLICY_MODE=FORCE”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/220-00000009”, “1?startrec”) in new stack
– Goto (sub-record-check,recordcheck,16)
– Executing [[email protected]:16] NoOp(“SIP/220-00000009”, “Starting recording: out, 03104878585”) in new stack
– Executing [[email protected]:17] Set(“SIP/220-00000009”, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
– Executing [[email protected]:18] Set(“SIP/220-00000009”, “__CALLFILENAME=out-03104878585-220-20180331-130946-1522501786.13”) in new stack
– Executing [[email protected]:19] MixMonitor(“SIP/220-00000009”, “2018/03/31/out-03104878585-220-20180331-130946-1522501786.13.wav,abi(LOCAL_MIXMON_ID),”) in new stack
– Executing [[email protected]:20] Set(“SIP/220-00000009”, “__MIXMON_ID=0x7ff9dc070280”) in new stack
– Executing [[email protected]:21] Set(“SIP/220-00000009”, “__RECORD_ID=SIP/220-00000009”) in new stack
– Executing [[email protected]:22] Set(“SIP/220-00000009”, “__REC_STATUS=RECORDING”) in new stack
– Executing [[email protected]:23] Set(“SIP/220-00000009”, “CDR(recordingfile)=out-03104878585-220-20180331-130946-1522501786.13.wav”) in new stack
– Executing [[email protected]:24] Return(“SIP/220-00000009”, “”) in new stack
– Executing [[email protected]:8] Return(“SIP/220-00000009”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/220-00000009”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/220-00000009”, “MOHCLASS=default”) in new stack
– Executing [[email protected]ternal:5] ExecIf(“SIP/220-00000009”, “1?Set(TRUNKCIDOVERRIDE=emergency route)”) in new stack
– Executing [[email protected]:6] Set(“SIP/220-00000009”, “_NODEST=”) in new stack
– Executing [[email protected]:7] Macro(“SIP/220-00000009”, “dialout-trunk,1,03104878585,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/220-00000009”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/220-00000009”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/220-00000009”, “0?Set(CALLERID(num)=220)”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/220-00000009”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:5] Set(“SIP/220-00000009”, “DIAL_NUMBER=03104878585”) in new stack
– Executing [[email protected]:6] Set(“SIP/220-00000009”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:7] Set(“SIP/220-00000009”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:8] Set(“SIP/220-00000009”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/220-00000009”, “0?nomax”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/220-00000009”, “0?chanfull”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/220-00000009”, “0?skipoutcid”) in new stack
– Executing [[email protected]:12] Macro(“SIP/220-00000009”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/220-00000009”, “220”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/220-00000009”, “”) in new stack
– Executing [[email protected]:3] NoOp(“SIP/220-00000009”, “off”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/220-00000009”, “0?Set(REALCALLERIDNUM=220)”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/220-00000009”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing [[email protected]:11] Set(“SIP/220-00000009”, “USEROUTCID=220”) in new stack
– Executing [[email protected]:12] Set(“SIP/220-00000009”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:13] Set(“SIP/220-00000009”, “TRUNKOUTCID=12345”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/220-00000009”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,19)
– Executing [[email protected]:19] ExecIf(“SIP/220-00000009”, “1?Set(CALLERID(all)=12345)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/220-00000009”, “1?Set(CALLERID(all)=220)”) in new stack
– Executing [[email protected]:21] ExecIf(“SIP/220-00000009”, “1?Set(CALLERID(all)=emergency route)”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:23] ExecIf(“SIP/220-00000009”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:24] Set(“SIP/220-00000009”, “CDR(outbound_cnum)=”) in new stack
– Executing [[email protected]:25] Set(“SIP/220-00000009”, “CDR(outbound_cnam)=emergency route”) in new stack
– Executing [[email protected]:13] GosubIf(“SIP/220-00000009”, “0?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]ut-trunk:14] Set(“SIP/220-00000009”, “OUTNUM=03104878585”) in new stack
– Executing [[email protected]:15] Set(“SIP/220-00000009”, “custom=DAHDI/g0”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/220-00000009”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/220-00000009”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:18] Macro(“SIP/220-00000009”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/220-00000009”, “”) in new stack
– Executing [[email protected]:19] GotoIf(“SIP/220-00000009”, “0?skipcrm”) in new stack
– Executing [[email protected]:20] Set(“SIP/220-00000009”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:21] Set(“SIP/220-00000009”, “__CRM_DESTINATION=03104878585”) in new stack
– Executing [[email protected]:22] Set(“SIP/220-00000009”, “__CRM_SOURCE=220”) in new stack
– Executing [[email protected]: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 [[email protected]:24] Set(“SIP/220-00000009”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:25] NoOp(“SIP/220-00000009”, “CRM Finished”) in new stack
– Executing [[email protected]:26] GotoIf(“SIP/220-00000009”, “0?bypass,1”) in new stack
– Executing [[email protected]:27] ExecIf(“SIP/220-00000009”, “1?Set(CONNECTEDLINE(num,i)=03104878585)”) in new stack
– Executing [[email protected]:28] ExecIf(“SIP/220-00000009”, “1?Set(CONNECTEDLINE(name,i)=CID:)”) in new stack
– Executing [[email protected]:29] ExecIf(“SIP/220-00000009”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden))”) in new stack
– Executing [[email protected]:30] GotoIf(“SIP/220-00000009”, “0?customtrunk”) in new stack
– Executing [[email protected]: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 [[email protected]:1] ExecIf(“DAHDI/1-1”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“DAHDI/1-1”, “Applying SIP Headers to channel”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/1-1”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:4] While(“DAHDI/1-1”, “0”) in new stack
– Jumping to priority 7
– Executing [[email protected]: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 [[email protected]:1] Macro(“SIP/220-00000009”, “hangupcall”) in new stack
– Executing [[email protected]: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 [[email protected]:3] ExecIf(“SIP/220-00000009”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:1] NoOp(“SIP/220-00000009”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/220-00000009”, “HANGUP CAUSE: 16”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/220-00000009”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“SIP/220-00000009”, “MASTER CHANNEL: 1522501786.13 = 1522501786.13”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/220-00000009”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“SIP/220-00000009”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]: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 [[email protected]: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.