call forward problem , ext -> internal -> ext

cupid1305

Joined
Feb 16, 2011
Messages
41
Likes
0
Points
0
#1
Hi all ,

I have a problem with call forward from external phone to external phone .

When i call from an internal phone to the external number and want to forward to a gsm , there are no problem but if i call from one gsm , or one external number , i'm not forward , it's say that the number is busy .
when i call from an external phone , to my internal number with call forward to another extension (internal) , it's ok too .


Do you have any idea ? Thx :lol:
 

jgutierrez

Joined
Feb 28, 2008
Messages
5,737
Likes
0
Points
0
#2
Paste the CLI output (asterisk -r) during your test call
 

cupid1305

Joined
Feb 16, 2011
Messages
41
Likes
0
Points
0
#3
- Executing [s@macro-record-enable:20] ExecIf("DAHDI/8-1", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("DAHDI/8-1", "dial,15,tTrW,2222") in new stack
-- Executing [s@macro-dial:1] GotoIf("DAHDI/8-1", "0?dial") in new stack
-- Executing [s@macro-dial:2] SetMusicOnHold("DAHDI/8-1", "capitaineFlamme") in new stack
-- Executing [s@macro-dial:3] AGI("DAHDI/8-1", "dialparties.agi") in new sta ck
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '0498200489' number is '0498200489'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 2222 to extension map
> dialparties.agi: Extension 2222 has call screening off
-- dialparties.agi: Extension 2222 cf is disabled
-- dialparties.agi: Extension 2222 do not disturb is disabled
> dialparties.agi: extnum 2222 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
dialparties.agi: Extension 2222 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 2222
-- dialparties.agi: dbset CALLTRACE/2222 to 0498200489
-- dialparties.agi: Filtered ARG3: 2222
-- <DAHDI/8-1>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("DAHDI/8-1", "SIP/2222,15,tTrW") in new s tack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called 2222
-- Got SIP response 302 "Moved Temporarily" back from 192.168.1.22
-- Now forwarding DAHDI/8-1 to 'Local/00495314026@from-internal' (thanks to SIP/2222-00000041)
-- Executing [00495314026@from-internal:1] Macro("Local/00495314026@from-int ernal-d377;2", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/00495314026@from-internal- d377;2", "AMPUSER=0498200489") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/00495314026@from-intern al-d377;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/00495314026@from-inter nal-d377;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("Local/00495314026@from-interna l-d377;2", "Using CallerID "0498200489" <0498200489>") in new stack
-- Executing [00495314026@from-internal:2] Set("Local/00495314026@from-inter nal-d377;2", "_NODEST=") in new stack
-- Executing [00495314026@from-internal:3] Macro("Local/00495314026@from-int ernal-d377;2", "record-enable,0498200489,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/00495314026@from-intern al-d377;2", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("Local/00495314026@from-intern al-d377;2", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("Local/00495314026@from-intern al-d377;2", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("Local/00495314026@from-inter nal-d377;2", "0?IN") in new stack
-- Executing [s@macro-record-enable:16] ExecIf("Local/00495314026@from-inter nal-d377;2", "1?MacroExit()") in new stack
-- Executing [00495314026@from-internal:4] Macro("Local/00495314026@from-int ernal-d377;2", "dialout-trunk,2,0495314026,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("Local/00495314026@from-internal- d377;2", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("Local/00495314026@from-inter nal-d377;2", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("Local/00495314026@from-intern al-d377;2", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("Local/00495314026@from-internal- d377;2", "DIAL_NUMBER=0495314026") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("Local/00495314026@from-internal- d377;2", "DIAL_TRUNK_OPTIONS=tTrW") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("Local/00495314026@from-internal- d377;2", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("Local/00495314026@from-intern al-d377;2", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("Local/00495314026@from-intern al-d377;2", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("Local/00495314026@from-intern al-d377;2", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("Local/00495314026@from-internal -d377;2", "DIAL_TRUNK_OPTIONS=TW") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("Local/00495314026@from-intern al-d377;2", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("Local/00495314026@from-in ternal-d377;2", "1?Set(CALLERPRES()=allowed_not_screened)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("Local/00495314026@from-in ternal-d377;2", "1?Set(REALCALLERIDNUM=0498200489)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("Local/00495314026@from-in ternal-d377;2", "0?normcid") in new stack
-- Executing [s@macro-outbound-callerid:4] Set("Local/00495314026@from-inter nal-d377;2", "USEROUTCID=0498200489") in new stack
-- Executing [s@macro-outbound-callerid:5] GotoIf("Local/00495314026@from-in ternal-d377;2", "1?bypass") in new stack
-- Goto (macro-outbound-callerid,s,7)
-- Executing [s@macro-outbound-callerid:7] Set("Local/00495314026@from-inter nal-d377;2", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("Local/00495314026@from-inter nal-d377;2", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("Local/00495314026@from-in ternal-d377;2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("Local/00495314026@from-i nternal-d377;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("Local/00495314026@from-i nternal-d377;2", "1?Set(CALLERID(all)=0498200489)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("Local/00495314026@from-i nternal-d377;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("Local/00495314026@from-i nternal-d377;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("Local/00495314026@from-inter nal-d377;2", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- <Local/00495314026@from-internal-d377;2>AGI Script fixlocalprefix complet ed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("Local/00495314026@from-internal -d377;2", "OUTNUM=0495314026") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("Local/00495314026@from-internal -d377;2", "custom=DAHDI/8") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("Local/00495314026@from-inter nal-d377;2", "1?Set(DIAL_TRUNK_OPTIONS=M(setmusic^capitaineFlamme)TW)") in new s tack
-- Executing [s@macro-dialout-trunk:16] Macro("Local/00495314026@from-intern al-d377;2", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/0049531 4026@from-internal-d377;2", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("Local/00495314026@from-inter nal-d377;2", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("Local/00495314026@from-inter nal-d377;2", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("Local/00495314026@from-interna l-d377;2", "DAHDI/8/0495314026,300,M(setmusic^capitaineFlamme)TW") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] NoOp("Local/00495314026@from-interna l-d377;2", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUP CAUSE = 0") in new stack
-- Executing [s@macro-dialout-trunk:21] Goto("Local/00495314026@from-interna l-d377;2", "s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("Local/00495314026@fr om-internal-d377;2", "RC=0") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("Local/00495314026@f rom-internal-d377;2", "0,1") in new stack
-- Goto (macro-dialout-trunk,0,1)
-- Executing [0@macro-dialout-trunk:1] Goto("Local/00495314026@from-internal -d377;2", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] GotoIf("Local/00495314026@from -internal-d377;2", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,continue,3)
-- Executing [continue@macro-dialout-trunk:3] NoOp("Local/00495314026@from-i nternal-d377;2", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:4] Set("Local/00495314026@from-in ternal-d377;2", "CALLERID(number)=0498200489") in new stack
-- Executing [00495314026@from-internal:5] Macro("Local/00495314026@from-int ernal-d377;2", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Progress("Local/00495314026@from-internal -d377;2", "") in new stack
-- Local/00495314026@from-internal-d377;1 is making progress passing it to D AHDI/8-1
-- Executing [s@macro-outisbusy:2] GotoIf("Local/00495314026@from-internal-d 377;2", "0?emergency,1") in new stack
-- Executing [s@macro-outisbusy:3] GotoIf("Local/00495314026@from-internal-d 377;2", "0?intracompany,1") in new stack
-- Executing [s@macro-outisbusy:4] Playback("Local/00495314026@from-internal -d377;2", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
-- <Local/00495314026@from-internal-d377;2> Playing 'all-circuits-busy-now.g sm' (language 'en')
-- <Local/00495314026@from-internal-d377;2> Playing 'pls-try-call-later.gsm' (language 'en')
-- Executing [s@macro-outisbusy:5] Congestion("Local/00495314026@from-internal-d377;2", "20") in new stack
-- Local/00495314026@from-internal-d377;1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dial:8] Set("DAHDI/8-1", "DIALSTATUS=CONGESTION") in new stack
-- Executing [s@macro-dial:9] GosubIf("DAHDI/8-1", "0?CONGESTION,1") in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'Local/00495314026@from-internal-d377;2' in macro 'outisbusy'
== Spawn extension (from-internal, 00495314026, 5) exited non-zero on 'Local/00495314026@from-internal-d377;2'
-- Executing [h@from-internal:1] Macro("Local/00495314026@from-internal-d377;2", "hangupcall") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("DAHDI/8-1", "0?exit,return") in new stack
-- Executing [s@macro-exten-vm:11] Set("DAHDI/8-1", "SV_DIALSTATUS=CONGESTION") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("DAHDI/8-1", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("DAHDI/8-1", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("DAHDI/8-1", "DIALSTATUS=CONGESTION") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("DAHDI/8-1", "Voicemail is '2222'") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/00495314026@from-internal-d377;2", "1?noautomon") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("DAHDI/8-1", "0?s-CONGESTION,1") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("Local/00495314026@from-internal-d377;2", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("Local/00495314026@from-internal-d377;2", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("Local/00495314026@from-internal-d377;2", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("Local/00495314026@from-internal-d377;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("Local/00495314026@from-internal-d377;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'Local/00495314026@from-internal-d377;2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/00495314026@from-internal-d377;2'
-- Executing [s@macro-exten-vm:17] NoOp("DAHDI/8-1", "Sending to Voicemail box 2222") in new stack
-- Executing [s@macro-exten-vm:18] Macro("DAHDI/8-1", "vm,2222,CONGESTION,") in new stack
-- Executing [s@macro-vm:1] Macro("DAHDI/8-1", "user-callerid,SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/8-1", "AMPUSER=0498200489") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/8-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/8-1", "0?Set(REALCALLERIDNUM=0498200489)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/8-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/8-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/8-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/8-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/8-1", "Using CallerID "0498200489" <0498200489>") in new stack
-- Executing [s@macro-vm:2] Set("DAHDI/8-1", "VMGAIN=""") in new stack
-- Executing [s@macro-vm:3] GotoIf("DAHDI/8-1", "1?vmx,1") in new stack
-- Goto (macro-vm,vmx,1)
-- Executing [vmx@macro-vm:1] Set("DAHDI/8-1", "MEXTEN=2222") in new stack
-- Executing [vmx@macro-vm:2] Set("DAHDI/8-1", "MMODE=CONGESTION") in new stack
-- Executing [vmx@macro-vm:3] Set("DAHDI/8-1", "RETVM=") in new stack
-- Executing [vmx@macro-vm:4] Set("DAHDI/8-1", "MODE=unavail") in new stack
-- Executing [vmx@macro-vm:5] GotoIf("DAHDI/8-1", "0?chknomsg") in new stack
-- Executing [vmx@macro-vm:6] Set("DAHDI/8-1", "VM_OPTS=") in new stack
-- Executing [vmx@macro-vm:7] GotoIf("DAHDI/8-1", "0?s-CONGESTION,1") in new stack
-- Executing [vmx@macro-vm:8] GotoIf("DAHDI/8-1", "1?notdirect") in new stack
-- Goto (macro-vm,vmx,10)
-- Executing [vmx@macro-vm:10] NoOp("DAHDI/8-1", "Checking if ext 2222 is enabled: enabled") in new stack
-- Executing [vmx@macro-vm:11] GotoIf("DAHDI/8-1", "0?s-CONGESTION,1") in new stack
-- Executing [vmx@macro-vm:12] Macro("DAHDI/8-1", "get-vmcontext,2222") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("DAHDI/8-1", "VMCONTEXT=default") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("DAHDI/8-1", "0?200:300") in new stack
-- Goto (macro-get-vmcontext,s,300)
-- Executing [s@macro-get-vmcontext:300] NoOp("DAHDI/8-1", "") in new stack
-- Executing [vmx@macro-vm:13] GotoIf("DAHDI/8-1", "0?tmpgreet") in new stack
-- Executing [vmx@macro-vm:14] GotoIf("DAHDI/8-1", "1?nofile") in new stack
-- Goto (macro-vm,vmx,66)
-- Executing [vmx@macro-vm:66] NoOp("DAHDI/8-1", "File for mode: unavail does not exist, SYSTEMSTATUS: , going to normal voicemail") in new stack
-- Executing [vmx@macro-vm:67] Goto("DAHDI/8-1", "s-CONGESTION,1") in new stack
-- Goto (macro-vm,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-vm:1] Macro("DAHDI/8-1", "get-vmcontext,2222") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("DAHDI/8-1", "VMCONTEXT=default") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("DAHDI/8-1", "0?200:300") in new stack
-- Goto (macro-get-vmcontext,s,300)
-- Executing [s@macro-get-vmcontext:300] NoOp("DAHDI/8-1", "") in new stack
-- Executing [s-CONGESTION@macro-vm:2] VoiceMail("DAHDI/8-1", "2222@default,u") in new stack




Thanks :blink: , perhaps it's because the line is busy ( i see CONGESTION )
 

cupid1305

Joined
Feb 16, 2011
Messages
41
Likes
0
Points
0
#4
It's ok i have resolved the problem , it was because i'm used 1 pstn line and not 2 .

It's ridiculous . :blush:
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,566
Latest member
Fpino
Top