Outgoing Calls from Analog device fail

Incoming calls to the analog device work, but outgoing do not. I could not seem to isolate where the issue is, doesn’t matter if I am dialing an internal extension or external number.

freepbxCLI>
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2014-03-30 14:39:37’},‘FAX’,‘63’,’’,’’,’’,‘s’,‘from-internal’,‘DAHDI/1-1’,’’,’’,3,’’,‘1396183177.144’,‘1396183177.144’,’’,’’,’’)]
– Starting simple switch on ‘DAHDI/1-1’
– Redirecting DAHDI/1-1 to fax extension
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2014-03-30 14:39:44’},’’,’’,’’,’’,’’,‘s’,‘from-internal’,‘AsyncGoto/DAHDI/1-1’,’’,’’,3,’’,‘1396183184.145’,‘1396183177.144’,’’,’’,’’)]
– Executing [[email protected]:1] Macro(“DAHDI/1-1”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2014-03-30 14:39:44’},’’,’’,’’,’’,’’,‘s’,‘from-internal’,‘AsyncGoto/DAHDI/1-1’,’’,’’,3,’’,‘1396183177.144’,‘1396183177.144’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2014-03-30 14:39:44’},’’,’’,’’,’’,’’,‘s’,‘from-internal’,‘AsyncGoto/DAHDI/1-1’,’’,’’,3,’’,‘1396183177.144’,‘1396183177.144’,’’,’’,’’)]
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “TOUCH_MONITOR=1396183184.145”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “AMPUSER=63”) in new stack
– Executing [[email protected]:3] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“DAHDI/1-1”, “1?Set(REALCALLERIDNUM=63)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/1-1”, “AMPUSER=63”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/1-1”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/1-1”, “AMPUSERCIDNAME=FAX”) in new stack
– Executing [[email protected]:8] GotoIf(“DAHDI/1-1”, “0?report”) in new stack
– Executing [[email protected]:9] Set(“DAHDI/1-1”, “AMPUSERCID=63”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/1-1”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/1-1”, “CALLERID(all)=“FAX” <63>”) in new stack
– Executing [[email protected]:12] GotoIf(“DAHDI/1-1”, “0?limit”) in new stack
– Executing [[email protected]:13] ExecIf(“DAHDI/1-1”, “1?Set(GROUP(concurrency_limit)=63)”) in new stack
– Executing [[email protected]:14] ExecIf(“DAHDI/1-1”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:15] GosubIf(“DAHDI/1-1”, “7?sub-ccss,s,1(from-internal,)”) in new stack
– Executing [[email protected]:1] ExecIf(“DAHDI/1-1”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/1-1”, “CCSS_SETUP=TRUE”) in new stack
– Executing [[email protected]:3] GosubIf(“DAHDI/1-1”, “0?monitor_config,1(from-internal,):monitor_default,1(from-internal,)”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/1-1”, “0?is_exten”) in new stack
– Executing [[email protected]:2] StackPop(“DAHDI/1-1”, “”) in new stack
– Executing [[email protected]:3] Return(“DAHDI/1-1”, “FALSE”) in new stack
– Executing [[email protected]:16] GotoIf(“DAHDI/1-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [[email protected]:29] Set(“DAHDI/1-1”, “CALLERID(number)=63”) in new stack
– Executing [[email protected]:30] Set(“DAHDI/1-1”, “CALLERID(name)=FAX”) in new stack
– Executing [[email protected]:31] Set(“DAHDI/1-1”, “CDR(cnum)=63”) in new stack
– Executing [[email protected]:32] Set(“DAHDI/1-1”, “CDR(cnam)=FAX”) in new stack
– Executing [[email protected]:33] Set(“DAHDI/1-1”, “CHANNEL(language)=de”) in new stack
– Auto fallthrough, channel ‘DAHDI/1-1’ status is ‘UNKNOWN’
– Executing [[email protected]:1] Hangup(“DAHDI/1-1”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘DAHDI/1-1’
– Hanging up on ‘DAHDI/1-1’
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2014-03-30 14:39:44’},‘FAX’,‘63’,‘63’,’’,’’,‘h’,‘from-internal’,‘DAHDI/1-1’,’’,’’,3,’’,‘1396183184.145’,‘1396183177.144’,’’,’’,’’)]
– Hungup ‘DAHDI/1-1’
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2014-03-30 14:39:44’},‘FAX’,‘63’,‘63’,’’,’’,‘h’,‘from-internal’,‘DAHDI/1-1’,’’,’’,3,’’,‘1396183184.145’,‘1396183177.144’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘LINKEDID_END’,{ts ‘2014-03-30 14:39:44’},‘FAX’,‘63’,‘63’,’’,’’,‘h’,‘from-internal’,‘DAHDI/1-1’,’’,’’,3,’’,‘1396183184.145’,‘1396183177.144’,’’,’’,’’)]
freepbx
CLI>

Perhaps this failure is caused by detecting the CNG tone and taking an action on this?

If I replace the fax machine with a phone, I can make incoming/outgoing calls but when I use the fax it doesn’t work. Hooking the fax up to a POTS line works no issue.

The log from the phone:
– Starting simple switch on ‘DAHDI/1-1’
– Executing [[email protected]:1] Set(“DAHDI/1-1”, “__RINGTIMER=15”) in new stack

The log from the FAX:

-- Starting simple switch on 'DAHDI/1-1'
-- Redirecting DAHDI/1-1 to fax extension
-- Executing [[email protected]:1] Macro("DAHDI/1-1", "user-callerid,LIMIT,EXTERNAL,") in new stack

You can see as soon as the line is off-hooked it is being redirected to “fax” and I am assuming this is because the FAX machine plays a CNG tone right away as soon as its done dialing.

Any idea where I can have this redirection disabled?

Found the solution…

GUI
DAHDI Config -> Global Settings -> FAX Detection = No