Inbound and out bound routes?

Hello Avayax so use 7[0-4]X for the analog cards outbound and 7[5-9]X for the FXO gateway am i getting this right?

Yes, like this:

Thank you Avayax i can add it at home but i will test when i go in. Will post updates.

Hello Avayax i tried it i put 7[0-4]X on the analog card outbound call and 7[5-9]X on the FXO gateway and when i called out. Something strange happen it calls the same extension as a inbound call. says the inbound call is ext 759 and the ext i call out is ext759.

So you call out on your phone 759 and the call rings your extension 759?
What number are you dialing?

I’m dialing my local phone numner 609-xxx-xxxx

And all that happens is that you see an incoming call on your phone from 759, the same phone you dialed out on?
Strange.
Then paste a debug from the asterisk CLI.
SSH into you server and enter command: asterisk -vvvvr
Then make that call and paste output.

I dialed out 609-xxx-xxxx and it calls back in on the same phone with the same extension

let me pull up the log because a lot of calls coming in from the analog lines

Paste a screenshot of your outbound route too please

i can’t show the log file because of my boss said no its the phone numbers. But this is what i found out. In the analog card outbound i added the 7[0-4]X and the FXO gateway outbound route i added 7[5-9]X and then when i call out it calls right back in But if i remove the 7[0-4]X from the analog calls it calls out normally But i get the analog card phone number when i call my cellphone it is not even try to call out from the fxo gateway. here is a screenshot from both analog card outbound and gateway

analog card

grand stream Gateway

Ok, looks like the CallerID field can’t deal with dash.
Try the following:
7[56789]X for gateway
and
7[01234]X for analog card

This should work.

For some strange reason which i do not know why. I’m not able to call out through the FXO gateway.

What does the entry in Call Detail Record Reports display for this call?

I tried to capture the log as I’m calling in and out looking at putty and this is what i got

-- Executing [6099541532@from-internal:1] Macro("SIP/752-0000b048", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/752-0000b048", "TOUCH_MONITOR=1472246447.49497") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/752-0000b048", "AMPUSER=752") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/752-0000b048", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/752-0000b048", "1?Set(REALCALLERIDNUM=752)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/752-0000b048", "AMPUSER=752") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/752-0000b048", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/752-0000b048", "AMPUSERCIDNAME=521 MHP NJ") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/752-0000b048", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/752-0000b048", "AMPUSERCID=752") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/752-0000b048", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/752-0000b048", "CALLERID(all)="521 MHP NJ" <752>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/752-0000b048", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/752-0000b048", "1?Set(GROUP(concurrency_limit)=752)") in new stack
-- Executing [s@macro-user-callerid:14] GosubIf("SIP/752-0000b048", "7?sub-ccss,s,1(from-internal,6099541532)") in new stack
-- Executing [s@sub-ccss:1] ExecIf("SIP/752-0000b048", "0?Return()") in new stack
-- Executing [s@sub-ccss:2] Set("SIP/752-0000b048", "CCSS_SETUP=TRUE") in new stack
-- Executing [s@sub-ccss:3] GosubIf("SIP/752-0000b048", "0?monitor_config,1(from-internal,6099541532):monitor_default,1(from-internal,6099541532)") in new stack
-- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/752-0000b048", "0?is_exten") in new stack
-- Executing [monitor_default@sub-ccss:2] StackPop("SIP/752-0000b048", "") in new stack
-- Executing [monitor_default@sub-ccss:3] Return("SIP/752-0000b048", "FALSE") in new stack
-- Executing [s@macro-user-callerid:15] ExecIf("SIP/752-0000b048", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/752-0000b048", "1?continue") in new stack
-- Goto (macro-user-callerid,s,30)
-- Executing [s@macro-user-callerid:30] Set("SIP/752-0000b048", "CALLERID(number)=752") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/752-0000b048", "CALLERID(name)=521 MHP NJ") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/752-0000b048", "CDR(cnum)=752") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/752-0000b048", "CDR(cnam)=521 MHP NJ") in new stack
-- Executing [s@macro-user-callerid:34] Set("SIP/752-0000b048", "CHANNEL(language)=en") in new stack
-- Executing [6099541532@from-internal:2] Gosub("SIP/752-0000b048", "sub-record-check,s,1(out,6099541532,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/752-0000b048", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/752-0000b048", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/752-0000b048", "NOW=1472246447") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/752-0000b048", "__DAY=26") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/752-0000b048", "__MONTH=08") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/752-0000b048", "__YEAR=2016") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/752-0000b048", "__TIMESTR=20160826-172047") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/752-0000b048", "__FROMEXTEN=752") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/752-0000b048", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/752-0000b048", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/752-0000b048", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/752-0000b048", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/752-0000b048", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/752-0000b048", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/752-0000b048", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("SIP/752-0000b048", "Outbound Recording Check from 752 to 6099541532") in new stack
-- Executing [out@sub-record-check:2] Set("SIP/752-0000b048", "RECMODE=dontcare") in new stack
-- Executing [out@sub-record-check:3] ExecIf("SIP/752-0000b048", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("SIP/752-0000b048", "recordcheck,1(dontcare,out,6099541532)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/752-0000b048", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/752-0000b048", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/752-0000b048", "") in new stack
-- Executing [out@sub-record-check:8] Return("SIP/752-0000b048", "") in new stack
-- Executing [6099541532@from-internal:3] ExecIf("SIP/752-0000b048", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [6099541532@from-internal:4] Set("SIP/752-0000b048", "MOHCLASS=default") in new stack
-- Executing [6099541532@from-internal:5] Set("SIP/752-0000b048", "_NODEST=") in new stack
-- Executing [6099541532@from-internal:6] Macro("SIP/752-0000b048", "dialout-trunk,2,6099541532,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/752-0000b048", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/752-0000b048", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/752-0000b048", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/752-0000b048", "DIAL_NUMBER=6099541532") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/752-0000b048", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/752-0000b048", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/752-0000b048", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/752-0000b048", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/752-0000b048", "DIAL_TRUNK_OPTIONS=Tt") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/752-0000b048", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/752-0000b048", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/752-0000b048", "0?Set(REALCALLERIDNUM=752)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/752-0000b048", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/752-0000b048", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/752-0000b048", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/752-0000b048", "TRUNKOUTCID=6099891400") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/752-0000b048", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/752-0000b048", "1?Set(CALLERID(all)=6099891400)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/752-0000b048", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/752-0000b048", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/752-0000b048", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/752-0000b048", "CDR(outbound_cnum)=6099891400") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/752-0000b048", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/752-0000b048", "0?sub-flp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/752-0000b048", "OUTNUM=6099541532") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/752-0000b048", "custom=DAHDI/G0") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/752-0000b048", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/752-0000b048", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/752-0000b048", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/752-0000b048", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/752-0000b048", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/752-0000b048", "1?Set(CONNECTEDLINE(num,i)=6099541532)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/752-0000b048", "1?Set(CONNECTEDLINE(name,i)=CID:6099891400)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/752-0000b048", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/752-0000b048", "DAHDI/G0/6099541532,300,Tt") in new stack
-- Called DAHDI/G0/6099541532
-- DAHDI/4-1 answered SIP/752-0000b048
   > 0x7fc5ac64ad20 -- Probation passed - setting RTP source address to 10.1.10.204:10356

localhostCLI> eit
No such command ‘eit’ (type ‘core show help eit’ for other possible commands)
localhost
CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@localhost ~]# clear
[root@localhost ~]# asterisk -vvvvvvr
Asterisk 11.21.2, Copyright © 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 11.21.2 currently running on localhost (pid = 2504)
== 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 [6099541532@from-internal:1] Macro(“SIP/752-0000b049”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/752-0000b049”, “TOUCH_MONITOR=1472246533.49499”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/752-0000b049”, “AMPUSER=752”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/752-0000b049”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/752-0000b049”, “1?Set(REALCALLERIDNUM=752)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/752-0000b049”, “AMPUSER=752”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/752-0000b049”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/752-0000b049”, “AMPUSERCIDNAME=521 MHP NJ”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/752-0000b049”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/752-0000b049”, “AMPUSERCID=752”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/752-0000b049”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/752-0000b049”, “CALLERID(all)=“521 MHP NJ” <752>”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“SIP/752-0000b049”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/752-0000b049”, “1?Set(GROUP(concurrency_limit)=752)”) in new stack
– Executing [s@macro-user-callerid:14] GosubIf(“SIP/752-0000b049”, “7?sub-ccss,s,1(from-internal,6099541532)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/752-0000b049”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/752-0000b049”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/752-0000b049”, “0?monitor_config,1(from-internal,6099541532):monitor_default,1(from-internal,6099541532)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/752-0000b049”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/752-0000b049”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/752-0000b049”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:15] ExecIf(“SIP/752-0000b049”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/752-0000b049”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [s@macro-user-callerid:30] Set(“SIP/752-0000b049”, “CALLERID(number)=752”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/752-0000b049”, “CALLERID(name)=521 MHP NJ”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/752-0000b049”, “CDR(cnum)=752”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/752-0000b049”, “CDR(cnam)=521 MHP NJ”) in new stack
– Executing [s@macro-user-callerid:34] Set(“SIP/752-0000b049”, “CHANNEL(language)=en”) in new stack
– Executing [6099541532@from-internal:2] Gosub(“SIP/752-0000b049”, “sub-record-check,s,1(out,6099541532,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/752-0000b049”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/752-0000b049”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/752-0000b049”, “NOW=1472246533”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/752-0000b049”, “__DAY=26”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/752-0000b049”, “__MONTH=08”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/752-0000b049”, “__YEAR=2016”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/752-0000b049”, “__TIMESTR=20160826-172213”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/752-0000b049”, “__FROMEXTEN=752”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/752-0000b049”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/752-0000b049”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/752-0000b049”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/752-0000b049”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/752-0000b049”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/752-0000b049”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/752-0000b049”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“SIP/752-0000b049”, “Outbound Recording Check from 752 to 6099541532”) in new stack
– Executing [out@sub-record-check:2] Set(“SIP/752-0000b049”, “RECMODE=dontcare”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“SIP/752-0000b049”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“SIP/752-0000b049”, “recordcheck,1(dontcare,out,6099541532)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/752-0000b049”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/752-0000b049”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [6099541532@from-internal:3] ExecIf(“SIP/752-0000b049”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [6099541532@from-internal:4] Set(“SIP/752-0000b049”, “ROUTE_CIDSAVE=“521 MHP NJ” <752>”) in new stack
– Executing [6099541532@from-internal:5] Set(“SIP/752-0000b049”, “MOHCLASS=default”) in new stack
– Executing [6099541532@from-internal:6] ExecIf(“SIP/752-0000b049”, “1?Set(TRUNKCIDOVERRIDE=6097779207)”) in new stack
– Executing [6099541532@from-internal:7] Set(“SIP/752-0000b049”, “_NODEST=”) in new stack
– Executing [6099541532@from-internal:8] Macro(“SIP/752-0000b049”, “dialout-trunk,3,6099541532,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/752-0000b049”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/752-0000b049”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/752-0000b049”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/752-0000b049”, “DIAL_NUMBER=6099541532”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/752-0000b049”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/752-0000b049”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/752-0000b049”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/752-0000b049”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/752-0000b049”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/752-0000b049”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/752-0000b049”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/752-0000b049”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/752-0000b049”, “0?Set(REALCALLERIDNUM=752)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/752-0000b049”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/752-0000b049”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/752-0000b049”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/752-0000b049”, “TRUNKOUTCID=6097779207”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/752-0000b049”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/752-0000b049”, “1?Set(CALLERID(all)=6097779207)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/752-0000b049”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/752-0000b049”, “1?Set(CALLERID(all)=6097779207)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/752-0000b049”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:18] Set(“SIP/752-0000b049”, “CDR(outbound_cnum)=6097779207”) in new stack
– Executing [s@macro-outbound-callerid:19] Set(“SIP/752-0000b049”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/752-0000b049”, “0?sub-flp-3,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/752-0000b049”, “OUTNUM=6099541532”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/752-0000b049”, “custom=SIP/GXW4108”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/752-0000b049”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/752-0000b049”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/752-0000b049”, “dialout-trunk-predial-hook,”) in

and

new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/752-0000b049”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/752-0000b049”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/752-0000b049”, “1?Set(CONNECTEDLINE(num,i)=6099541532)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/752-0000b049”, “1?Set(CONNECTEDLINE(name,i)=CID:6097779207)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/752-0000b049”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/752-0000b049”, “SIP/GXW4108/6099541532,300,Tt”) in new stack
[2016-08-26 17:22:13] WARNING[24747][C-00004386]: app_dial.c:2437 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/752-0000b049”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/752-0000b049”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/752-0000b049”, “RC=20”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/752-0000b049”, “20,1”) in new stack
– Goto (macro-dialout-trunk,20,1)
– Executing [20@macro-dialout-trunk:1] Goto(“SIP/752-0000b049”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/752-0000b049”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] Set(“SIP/752-0000b049”, “CALLERID(number)=752”) in new stack
– Executing [6099541532@from-internal:9] Set(“SIP/752-0000b049”, “CALLERID(all)=“521 MHP NJ” <752>”) in new stack
– Executing [6099541532@from-internal:10] Set(“SIP/752-0000b049”, “_KEEPCID=TRUE”) in new stack
– Executing [6099541532@from-internal:11] Goto(“SIP/752-0000b049”, “from-did-direct,759,1”) in new stack
– Goto (from-did-direct,759,1)
– Executing [759@from-did-direct:1] GotoIf(“SIP/752-0000b049”, “1?ext-local,759,1”) in new stack
– Goto (ext-local,759,1)
– Executing [759@ext-local:1] Set(“SIP/752-0000b049”, “__RINGTIMER=15”) in new stack
– Executing [759@ext-local:2] Macro(“SIP/752-0000b049”, “exten-vm,759,759,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“SIP/752-0000b049”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/752-0000b049”, “TOUCH_MONITOR=1472246533.49499”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/752-0000b049”, “AMPUSER=752”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/752-0000b049”, “10?report”) in new stack
– Goto (macro-user-callerid,s,16)
– Executing [s@macro-user-callerid:16] GotoIf(“SIP/752-0000b049”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:17] ExecIf(“SIP/752-0000b049”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:18] Set(“SIP/752-0000b049”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:19] GotoIf(“SIP/752-0000b049”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [s@macro-user-callerid:30] Set(“SIP/752-0000b049”, “CALLERID(number)=752”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/752-0000b049”, “CALLERID(name)=521 MHP NJ”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/752-0000b049”, “CDR(cnum)=752”) in new stack
– Executing [s@macro-user-callerid:33] Set(“SIP/752-0000b049”, “CDR(cnam)=521 MHP NJ”) in new stack
– Executing [s@macro-user-callerid:34] Set(“SIP/752-0000b049”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“SIP/752-0000b049”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“SIP/752-0000b049”, “__EXTTOCALL=759”) in new stack
– Executing [s@macro-exten-vm:4] Set(“SIP/752-0000b049”, “__PICKUPMARK=759”) in new stack
– Executing [s@macro-exten-vm:5] Set(“SIP/752-0000b049”, “RT=15”) in new stack
– Executing [s@macro-exten-vm:6] ExecIf(“SIP/752-0000b049”, “0?Macro(vm,759,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:7] ExecIf(“SIP/752-0000b049”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:8] Gosub(“SIP/752-0000b049”, “sub-record-check,s,1(exten,759,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/752-0000b049”, “3?initialized”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] NoOp(“SIP/752-0000b049”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/752-0000b049”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/752-0000b049”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/752-0000b049”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/752-0000b049”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/752-0000b049”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] NoOp(“SIP/752-0000b049”, “Exten Recording Check between 752 and 759”) in new stack
– Executing [exten@sub-record-check:2] Set(“SIP/752-0000b049”, “CALLTYPE=internal”) in new stack
– Executing [exten@sub-record-check:3] ExecIf(“SIP/752-0000b049”, “0?Set(CALLTYPE=)”) in new stack
– Executing [exten@sub-record-check:4] Set(“SIP/752-0000b049”, “CALLEE=dontcare”) in new stack
– Executing [exten@sub-record-check:5] ExecIf(“SIP/752-0000b049”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [exten@sub-record-check:6] GotoIf(“SIP/752-0000b049”, “0?callee”) in new stack
– Executing [exten@sub-record-check:7] GotoIf(“SIP/752-0000b049”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [exten@sub-record-check:13] Set(“SIP/752-0000b049”, “RECMODE=dontcare”) in new stack
– Executing [exten@sub-record-check:14] ExecIf(“SIP/752-0000b049”, “0?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:15] ExecIf(“SIP/752-0000b049”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“SIP/752-0000b049”, “recordcheck,1(dontcare,internal,759)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/752-0000b049”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/752-0000b049”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [exten@sub-record-check:17] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [s@macro-exten-vm:9] GotoIf(“SIP/752-0000b049”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,15)
– Executing [s@macro-exten-vm:15] GosubIf(“SIP/752-0000b049”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:16] Macro(“SIP/752-0000b049”, “dial-one,15,Ttr,759”) in new stack
– Executing [s@macro-dial-one:1] Set(“SIP/752-0000b049”, “DEXTEN=759”) in new stack
– Executing [s@macro-dial-one:2] Set(“SIP/752-0000b049”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“SIP/752-0000b049”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“SIP/752-0000b049”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“SIP/752-0000b049”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“SIP/752-0000b049”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“SIP/752-0000b049”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“SIP/752-0000b049”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“SIP/752-0000b049”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“SIP/752-0000b049”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“SIP/752-0000b049”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“SIP/752-0000b049”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“SIP/752-0000b049”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“SIP/752-0000b049”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“SIP/752-0000b049”, “DEVICES=759”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“SIP/752-0000b049”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“SIP/752-0000b049”, “0?Set(DEVICES=59)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“SIP/752-0000b049”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“SIP/752-0000b049”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“SIP/752-0000b049”, “THISDIAL=SIP/759”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“SIP/752-0000b049”, “1?zap2dahdi,1()”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/752-0000b049”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/752-0000b049”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/752-0000b049”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/752-0000b049”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/752-0000b049”, “THISPART2=SIP/759”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/752-0000b049”, “0?Set(THISPART2=DAHDI/759)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/752-0000b049”, “NEWDIAL=SIP/759&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/752-0000b049”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/752-0000b049”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/752-0000b049”, “THISDIAL=SIP/759”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [dstring@macro-dial-one:9] GotoIf(“SIP/752-0000b049”, “1?doset”) in new stack
– Goto (macro-dial-one,dstring,13)
– Executing [dstring@macro-dial-one:13] Set(“SIP/752-0000b049”, “DSTRING=SIP/759&”) in new stack
– Executing [dstring@macro-dial-one:14] Set(“SIP/752-0000b049”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:15] GotoIf(“SIP/752-0000b049”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:16] ExecIf(“SIP/752-0000b049”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:17] Set(“SIP/752-0000b049”, “DSTRING=SIP/759”) in new stack
– Executing [dstring@macro-dial-one:18] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“SIP/752-0000b049”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“SIP/752-0000b049”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:29] GosubIf(“SIP/752-0000b049”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“SIP/752-0000b049”, “DB(CALLTRACE/759)=752”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [s@macro-dial-one:30] Set(“SIP/752-0000b049”, “D_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“SIP/752-0000b049”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“SIP/752-0000b049”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“SIP/752-0000b049”, “1?Set(CHANNEL(musicclass)=default)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“SIP/752-0000b049”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:35] Set(“SIP/752-0000b049”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“SIP/752-0000b049”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] GotoIf(“SIP/752-0000b049”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:38] GotoIf(“SIP/752-0000b049”, “0?godial”) in new stack
– Executing [s@macro-dial-one:39] Gosub(“SIP/752-0000b049”, “sub-presencestate-display,s,1(759)”) in new stack
– Executing [s@sub-presencestate-display:1] Goto(“SIP/752-0000b049”, “state-not_set,1”) in new stack
– Goto (sub-presencestate-display,state-not_set,1)
– Executing [state-not_set@sub-presencestate-display:1] Set(“SIP/752-0000b049”, “PRESENCESTATE_DISPLAY=”) in new stack
– Executing [state-not_set@sub-presencestate-display:2] Return(“SIP/752-0000b049”, “”) in new stack
– Executing [s@macro-dial-one:40] Set(“SIP/752-0000b049”, “CONNECTEDLINE(name,i)=521 MHP NJ”) in new stack
– Executing [s@macro-dial-one:41] Set(“SIP/752-0000b049”, “CONNECTEDLINE(num)=759”) in new stack
– Executing [s@macro-dial-one:42] Set(“SIP/752-0000b049”, “D_OPTIONS=TtrI”) in new stack
– Executing [s@macro-dial-one:43] Macro(“SIP/752-0000b049”, “dialout-one-predial-hook,”) in new stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“SIP/752-0000b049”, “”) in new stack
– Executing [s@macro-dial-one:44] ExecIf(“SIP/752-0000b049”, “0?Set(D_OPTIONS=trII)”) in new stack
– Executing [s@macro-dial-one:45] Dial(“SIP/752-0000b049”, “SIP/759,15,TtrI”) in new stack
== Using SIP VIDEO TOS bits 136
== Using SIP VIDEO CoS mark 6
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/759
– Connected line update to SIP/752-0000b049 prevented.
– SIP/759-0000b04a is ringing
== Spawn extension (macro-dial-one, s, 45) exited non-zero on ‘SIP/752-0000b049’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on ‘SIP/752-0000b049’ in macro ‘exten-vm’
== Spawn extension (ext-local, 759, 2) exited non-zero on ‘SIP/752-0000b049’
– Executing [h@ext-local:1] Macro(“SIP/752-0000b049”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] ExecIf(“SIP/752-0000b049”, “0?Set(CDR(recordingfile)=.wav)”) in new stack
– Executing [s@macro-hangupcall:2] GotoIf(“SIP/752-0000b049”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] Hangup(“SIP/752-0000b049”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/752-0000b049’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/752-0000b049’

My extension on my phone is 752 and I;m calling my cellphone and its getting rerouted back to my laptop x lite of extension 900 That is with your 7[01234]X in the analog lines and 7[56789]X in the fxo gateway outbound.

Asterisk is attempting to send the call out on GXW4108. I assume this is your gateway trunk.
It’s however failing with a “Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)” error. I don’t know why.

Does your Telco accept long distance calls without prefix “1”? Cause you are not sending it.
What if you dial 160977…

We can dial 1609 and 609 without the 1 in it. both ways work. also the 777 number is the line that is connected into the grandstream FXO gateway box

Now I’m getting a new message when i try to call out it said All circuits are busy now.

Logs?