Forward forwarded call

Hi
I have a problem with forwarding forwarded call. It looks like this.

I call from cellular 603503622 to inbound route 158465414. Then it goes to ringgroup 66414 which has extension 414 but if no one answer it goes to time condition and then to queue. When it is in queue 200 then it goes to extension 400 (secretary phone- Yealink). Secretary sometimes turns on forwarding after 5 rings to her cell and that doesnt work when call comes from queue when no one from ringgroup answers call.
If i make a queue with secretary cell instead of extension number it works but i need to let her decide to forward or not.

– SIP/400-0000003f is ringing
– Local/400@from-queue-3d78;1 is ringing
– Got SIP response 302 “Moved Temporarily” back from 10.42.48.6:5062
– Now forwarding Local/400@from-queue-3d78;2 to ‘Local/601436221@from-internal’ (thanks to SIP/400-0000003f)
[2013-12-12 14:43:10] NOTICE[8353]: app_dial.c:883 do_forward: Not accepting call completion offers from call-forward recipient Local/601436221@from-internal-69c0;1
– Local/400@from-queue-3d78;1 redirecting info has changed, passing it to SIP/Oxycom-0000003b
– Executing [601436221@from-internal:1] Macro(“Local/601436221@from-internal-69c0;2”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“Local/601436221@from-internal-69c0;2”, “AMPUSER=603503622”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“Local/601436221@from-internal-69c0;2”, “1?Set(REALCALLERIDNUM=603503622)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“Local/601436221@from-internal-69c0;2”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“Local/601436221@from-internal-69c0;2”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing [s@macro-user-callerid:11] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,24)
– Executing [s@macro-user-callerid:24] Set(“Local/601436221@from-internal-69c0;2”, “CALLERID(number)=603503622”) in new stack
– Executing [s@macro-user-callerid:25] Set(“Local/601436221@from-internal-69c0;2”, “CALLERID(name)=M0:603503622”) in new stack
– Executing [s@macro-user-callerid:26] Set(“Local/601436221@from-internal-69c0;2”, “CHANNEL(language)=pl”) in new stack
– Executing [601436221@from-internal:2] Set(“Local/601436221@from-internal-69c0;2”, “MOHCLASS=Sanfarm”) in new stack
– Executing [601436221@from-internal:3] Set(“Local/601436221@from-internal-69c0;2”, “_NODEST=”) in new stack
– Executing [601436221@from-internal:4] Gosub(“Local/601436221@from-internal-69c0;2”, “sub-record-check,s,1(out,601436221,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“Local/601436221@from-internal-69c0;2”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“Local/601436221@from-internal-69c0;2”, “0?record,1(exten,601436221,603503622)”) in new stack
– Executing [out@sub-record-check:3] Return(“Local/601436221@from-internal-69c0;2”, “”) in new stack
– Executing [601436221@from-internal:5] Macro(“Local/601436221@from-internal-69c0;2”, “dialout-trunk,1,601436221,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“Local/601436221@from-internal-69c0;2”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“Local/601436221@from-internal-69c0;2”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“Local/601436221@from-internal-69c0;2”, “DIAL_NUMBER=601436221”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“Local/601436221@from-internal-69c0;2”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“Local/601436221@from-internal-69c0;2”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“Local/601436221@from-internal-69c0;2”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“Local/601436221@from-internal-69c0;2”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“Local/601436221@from-internal-69c0;2”, “1?Set(CALLERPRES()=allowed_not_screened)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(REALCALLERIDNUM=603503622)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?normcid”) in new stack
– Executing [s@macro-outbound-callerid:4] Set(“Local/601436221@from-internal-69c0;2”, “USEROUTCID=603503622”) in new stack
– Executing [s@macro-outbound-callerid:5] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?bypass”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [s@macro-outbound-callerid:7] Set(“Local/601436221@from-internal-69c0;2”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“Local/601436221@from-internal-69c0;2”, “TRUNKOUTCID=+48158101011”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“Local/601436221@from-internal-69c0;2”, “1?Set(CALLERID(all)=+48158101011)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“Local/601436221@from-internal-69c0;2”, “1?Set(CALLERID(all)=603503622)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“Local/601436221@from-internal-69c0;2”, “1?Set(CALLERID(all)=+48158465414)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“Local/601436221@from-internal-69c0;2”, “1?sub-flp-1,s,1()”) in new stack
– Executing [s@sub-flp-1:1] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(TARGET_FLP_1=436221)”) in new stack
– Executing [s@sub-flp-1:2] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?match”) in new stack
– Executing [s@sub-flp-1:3] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(TARGET_FLP_1=0001436221)”) in new stack
– Executing [s@sub-flp-1:4] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?match”) in new stack
– Executing [s@sub-flp-1:5] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(TARGET_FLP_1=01436221)”) in new stack
– Executing [s@sub-flp-1:6] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?match”) in new stack
– Executing [s@sub-flp-1:7] Return(“Local/601436221@from-internal-69c0;2”, “”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“Local/601436221@from-internal-69c0;2”, “OUTNUM=601436221”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“Local/601436221@from-internal-69c0;2”, “custom=SIP/Oxycom”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“Local/601436221@from-internal-69c0;2”, “1?Set(DIAL_TRUNK_OPTIONS=M(setmusic^Sanfarm))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^Sanfarm)M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“Local/601436221@from-internal-69c0;2”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“Local/601436221@from-internal-69c0;2”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(CONNECTEDLINE(num,i)=601436221)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“Local/601436221@from-internal-69c0;2”, “0?Set(CONNECTEDLINE(name,i)=CID:+48158465414)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“Local/601436221@from-internal-69c0;2”, “SIP/Oxycom/601436221,300,M(setmusic^Sanfarm)”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/Oxycom/601436221
srv-asterisk*CLI>
– Remote UNIX connection
– Remote UNIX connection disconnected
– Remote UNIX connection
– Remote UNIX connection disconnected
– Remote UNIX connection
– Remote UNIX connection disconnected

– Remote UNIX connection disconnected
[2013-12-12 14:43:42] WARNING[7091]: chan_sip.c:20635 handle_response_invite: Re-invite to non-existing call leg on other UA. SIP dialog '6a9279b7312663c61e152b1122f1a07c@tele.oxytel.pl’. Giving up.
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:23] NoOp(“Local/601436221@from-internal-69c0;2”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34”) in new stack
– Executing [s@macro-dialout-trunk:24] Goto(“Local/601436221@from-internal-69c0;2”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“Local/601436221@from-internal-69c0;2”, “RC=34”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“Local/601436221@from-internal-69c0;2”, “34,1”) in new stack
– Goto (macro-dialout-trunk,34,1)
– Executing [34@macro-dialout-trunk:1] Goto(“Local/601436221@from-internal-69c0;2”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“Local/601436221@from-internal-69c0;2”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“Local/601436221@from-internal-69c0;2”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“Local/601436221@from-internal-69c0;2”, “CALLERID(number)=”) in new stack
– Executing [601436221@from-internal:6] Macro(“Local/601436221@from-internal-69c0;2”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“Local/601436221@from-internal-69c0;2”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“Local/601436221@from-internal-69c0;2”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy:4] PlayTones(“Local/601436221@from-internal-69c0;2”, “congestion”) in new stack
– Local/601436221@from-internal-69c0;1 is making progress passing it to Local/400@from-queue-3d78;2
– Executing [s@macro-outisbusy:5] Congestion(“Local/601436221@from-internal-69c0;2”, “20”) in new stack
– Local/601436221@from-internal-69c0;1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dial-one:46] ExecIf(“Local/400@from-queue-3d78;2”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [s@macro-dial-one:47] GosubIf(“Local/400@from-queue-3d78;2”, “0?s-CONGESTION,1()”) in new stack
– Executing [s@macro-dial-one:48] MacroExit(“Local/400@from-queue-3d78;2”, “”) in new stack
– Executing [s@macro-exten-vm:8] Set(“Local/400@from-queue-3d78;2”, “SV_DIALSTATUS=CONGESTION”) in new stack
– Executing [s@macro-exten-vm:9] GosubIf(“Local/400@from-queue-3d78;2”, “0?docfu,1()”) in new stack
– Executing [s@macro-exten-vm:10] GosubIf(“Local/400@from-queue-3d78;2”, “0?docfb,1()”) in new stack
– Executing [s@macro-exten-vm:11] Set(“Local/400@from-queue-3d78;2”, “DIALSTATUS=CONGESTION”) in new stack
– Executing [s@macro-exten-vm:12] ExecIf(“Local/400@from-queue-3d78;2”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:13] GotoIf(“Local/400@from-queue-3d78;2”, “1?s-CONGESTION,1”) in new stack
– Goto (macro-exten-vm,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-exten-vm:1] GotoIf(“Local/400@from-queue-3d78;2”, “0?exit,1”) in new stack
– Executing [s-CONGESTION@macro-exten-vm:2] PlayTones(“Local/400@from-queue-3d78;2”, “congestion”) in new stack
– Executing [s-CONGESTION@macro-exten-vm:3] Congestion(“Local/400@from-queue-3d78;2”, “10”) in new stack
– Local/400@from-queue-3d78;1 is circuit-busy
– Nobody picked up in 38000 ms
== Spawn extension (macro-exten-vm, s-CONGESTION, 3) exited non-zero on ‘Local/400@from-queue-3d78;2’ in macro ‘exten-vm’
== Spawn extension (from-internal, 400, 2) exited non-zero on ‘Local/400@from-queue-3d78;2’
– Executing [h@from-internal:1] Hangup(“Local/400@from-queue-3d78;2”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘Local/400@from-queue-3d78;2’
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘Local/601436221@from-internal-69c0;2’ in macro ‘outisbusy’
== Spawn extension (from-internal, 601436221, 6) exited non-zero on ‘Local/601436221@from-internal-69c0;2’
– Executing [h@from-internal:1] Hangup(“Local/601436221@from-internal-69c0;2”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/601436221@from-internal-69c0;2’
srv-asterisk*CLI>

Regular call forwarding works good. We only have one trunk. Please help…

maybe that will be usefull for someone

*core show channels
Channel Location State Application(Data)
SIP/Oxycom-00000007 205@ext-queues:8 Up Queue(205,t,)
SIP/Oxycom-0000000c 601436221@from-trunk Down AppDial((Outgoing Line))
Local/601436221@from s@macro-dialout-trun Ring Dial(SIP/Oxycom/601436221,300,
Local/601436221@from 601436221@from-inter Down AppDial((Outgoing Line))
Local/400@from-queue 205@from-queue:1 Ringing AppQueue((Outgoing Line))
Local/400@from-queue s@macro-dial-one:45 Ring Dial(SIP/400,trM(auto-blkvm))

Try in the FreePBX forums, you are using a GUI based on freepbx.

oh cmon, it is asterisk afterall, isnt it??

There is a vast amount of dialplan supplied by FreePBX which can be very difficult to debug from first principles.

Also Asterisk doesn’t have ring groups and uses the term “extension” differently.

The error message suggests a bug in the transfer handling in the remote peer.

Dude, did you check the Asterisk CLI output? I could do the same thing in 5 lines or less in Asterisk DialPlan. And that is eazy to debug :wink:

When you use WebGUI’s, you sacrifice flexibility and eazy debugging for ease of use. So don’t blame us if we don’t want to analyze bloated diaplans that WebGUI’s create. :smiley: