/local, Maybe callerid problem,

Ok i’ve been bashing my head against a wall trying to figure this one out. Hasn’t been a real problem until now. I have to boxes connected together with iax2 connection. Calling between them is no problem. I have a call coming in one of the boxes and it calls a local ring group and a remote ring group. Using the # trick in the group for a remote extention. If I dial that ring group locally it will call both groups. When a call comes in it only rings the local group and says calls can not be completed. Seems like a callerid problem. Now heres where it starts to be more than just a small problem. When I use the ARI to send a outbound fax it has the same problem saying it can not be completed. It seems like anything that starts with local/ will not foward to the right trunk or inbound route. Not really sure what is going on here. The first chunk of logs is the inbound call fowarding to local and remote ring group. The second chunk is the outbound fax failure.

[2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- Called Local/[email protected]/n [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] res_musiconhold.c: -- Started music on hold, class 'none', on DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/453-00000035 connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/452-00000034 connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/451-00000033 connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/450-00000032 connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/414-00000031 connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,LIMIT,EXTERNAL,") in new stack [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/407-00000030 connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/404-0000002f connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/400-0000002e connected line has changed. Saving it until answer for DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1384281608.78") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?report") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=)") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:5] Set("Local/[email protected];2", "AMPUSER=") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:6] Set("Local/[email protected];2", "AMPUSERCIDNAME=") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?report") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Goto (macro-user-callerid,s,15) [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:15] GotoIf("Local/[email protected];2", "1?continue") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Goto (macro-user-callerid,s,28) [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:28] Set("Local/[email protected];2", "CALLERID(number)=") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:29] Set("Local/[email protected];2", "CALLERID(name)=New Patient:") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:30] Set("Local/[email protected];2", "CDR(cnum)=") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:31] Set("Local/[email protected];2", "CDR(cnam)=New Patient:") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:32] Set("Local/[email protected]0002;2", "CHANNEL(language)=en") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:2] NoCDR("Local/[email protected];2", "") in new stack [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:3] Progress("Local/[email protected];2", "") in new stack [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- Local/[email protected];1 is making progress passing it to DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:4] Wait("Local/[email protected];2", "1") in new stack [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] res_musiconhold.c: -- Stopped music on hold on DAHDI/1-1 [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/451-00000033 is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/450-00000032 is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/452-00000034 is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/453-00000035 is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/400-0000002e is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/404-0000002f is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/407-00000030 is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/414-00000031 is ringing [2013-11-12 13:40:08] VERBOSE[10489][C-00000014] app_dial.c: -- SIP/407-00000030 is ringing [2013-11-12 13:40:09] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:5] Progress("Local/[email protected];2", "") in new stack [2013-11-12 13:40:09] VERBOSE[10489][C-00000014] app_dial.c: -- Local/[email protected];1 is making progress passing it to DAHDI/1-1 [2013-11-12 13:40:09] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:6] Playback("Local/[email protected];2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack [2013-11-12 13:40:09] VERBOSE[10496][C-00000014] file.c: -- Playing 'silence/1.ulaw' (language 'en') [2013-11-12 13:40:10] VERBOSE[10496][C-00000014] file.c: -- Playing 'cannot-complete-as-dialed.ulaw' (language 'en') [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: -- Executing [[email protected]:1] Macro("SIP/680-0000002d", "hangupcall,") in new stack [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/680-0000002d", "1?theend") in new stack [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: -- Goto (macro-hangupcall,s,3) [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/680-0000002d", "0?Set(CDR(recordingfile)=)") in new stack [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: -- Executing [[email protected]:4] Hangup("SIP/680-0000002d", "") in new stack [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/680-0000002d' in macro 'hangupcall' [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/680-0000002d' [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 30) exited non-zero on 'SIP/680-0000002d' in macro 'dialout-trunk' [2013-11-12 13:40:10] VERBOSE[10488][C-00000013] pbx.c: == Spawn extension (from-internal, XXXXXXXXXX, 6) exited non-zero on 'SIP/680-0000002d' [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] app_macro.c: == Spawn extension (macro-dial, s, 7) exited non-zero on 'DAHDI/1-1' in macro 'dial' [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: == Spawn extension (ext-group, 961, 12) exited non-zero on 'DAHDI/1-1' [2013-11-12 13:40:12] VERBOSE[10496][C-00000014] pbx.c: == Spawn extension (from-internal, 180, 6) exited non-zero on 'Local/[email protected];2' [2013-11-12 13:40:12] VERBOSE[10496][C-00000014] pbx.c: -- Executing [[email protected]:1] Hangup("Local/[email protected];2", "") in new stack [2013-11-12 13:40:12] VERBOSE[10496][C-00000014] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/[email protected];2' [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: -- Executing [[email protected]:1] Macro("DAHDI/1-1", "hangupcall,") in new stack [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: -- Executing [[email protected]:1] GotoIf("DAHDI/1-1", "1?theend") in new stack [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: -- Goto (macro-hangupcall,s,3) [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: -- Executing [[email protected]:3] ExecIf("DAHDI/1-1", "0?Set(CDR(recordingfile)=)") in new stack [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: -- Executing [[email protected]:4] Hangup("DAHDI/1-1", "") in new stack [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/1-1' in macro 'hangupcall' [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] pbx.c: == Spawn extension (ext-group, h, 1) exited non-zero on 'DAHDI/1-1' [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] sig_analog.c: -- Hanging up on 'DAHDI/1-1' [2013-11-12 13:40:12] VERBOSE[10489][C-00000014] chan_dahdi.c: -- Hungup 'DAHDI/1-1' 2013-11-12 13:51:43] VERBOSE[5766] pbx_spool.c: -- Attempting call on Local/[email protected] for [email protected]:1 (Retry 1) [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,LIMIT,EXTERNAL,") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:1] Set("Local/[email protected];2", "TOUCH_MONITOR=1384282303.115") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:2] Set("Local/[email protected];2", "AMPUSER=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?report") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=)") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:5] Set("Local/[email protected];2", "AMPUSER=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:6] Set("Local/[email protected];2", "AMPUSERCIDNAME=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?report") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Goto (macro-user-callerid,s,15) [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:15] GotoIf("Local/[email protected];2", "1?continue") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Goto (macro-user-callerid,s,28) [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:28] Set("Local/[email protected];2", "CALLERID(number)=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:29] Set("Local/[email protected];2", "CALLERID(name)=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:30] Set("Local/[email protected];2", "CDR(cnum)=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:31] Set("Local/[email protected];2", "CDR(cnam)=") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:32] Set("Local/XXXXX[email protected];2", "CHANNEL(language)=en") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:2] NoCDR("Local/[email protected];2", "") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:3] Progress("Local/[email protected];2", "") in new stack [2013-11-12 13:51:43] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:4] Wait("Local/[email protected];2", "1") in new stack [2013-11-12 13:51:44] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:5] Progress("Local/[email protected];2", "") in new stack [2013-11-12 13:51:44] VERBOSE[5767][C-00000048] pbx.c: -- Executing [[email protected]:6] Playback("Local/[email protected];2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack [2013-11-12 13:51:44] VERBOSE[5767][C-00000048] file.c: -- Playing 'silence/1.gsm' (language 'en') [2013-11-12 13:51:45] VERBOSE[5767][C-00000048] file.c: -- Playing 'cannot-complete-as-dialed.gsm' (language 'en')

I am working with the pots lines with no callerid enabled by the phone company.

Asterisk 11, Freepbx 2.11 distro, Centos 6.4

Anyone?