Dominik Zalewski
2007-Jul-04 10:32 UTC
[asterisk-users] Dialout Macro and transfer call in progress
Dear All, I can not transfer call in progress. What's wrong with my macro? I think tT flags is enough right? [macro-stdexten] exten => s,1,Set(temp=${DB(CFU/${ARG1})}) ; Get CFU key exten => s,2,Set(DNDStatus=${DB(DND/${ARG1})}) ; Get DND key exten => s,3,GotoIf($["${temp}" = ""]?5) ; If not existing, goto priority 5 exten => s,4,Dial(Local/${temp}@local/n) ; Unconditional Forward exten => s,5,GoToIf($["${DNDStatus}" = ""]?7) ; If not existing ring the interface exten => s,6,Voicemail(u${ARG1}) ; If CFU failed, send to voicemail w/ unavail announce exten => s,7,Dial(${ARG2},20,tTrR) ; Ring the interface exten => s,8,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER) exten => s-NOANSWER,1,Set(temp=${DB(CFNA/${ARG1})}) ; Get CFNA key exten => s-NOANSWER,2,GotoIf($["${temp}" = ""]?4) ; If not existing, goto voicemail exten => s-NOANSWER,3,Dial(Local/${temp}@local/n) ; Forward on No Answer exten => s-NOANSWER,4,Voicemail(u${ARG1}) ; If unavailable, send to voicemail w/ unavail announce exten => s-NOANSWER,5,Goto(s,5) ; If they press #, return to ring the interface exten => s-BUSY,1,Set(temp=${DB(CFB/${ARG1})}) ; Get CFB key exten => s-BUSY,2,GotoIf($["${temp}" = ""]?4) ; If not existing, goto voicemail exten => s-BUSY,3,Dial(Local/${temp}@local/n) ; Forward on Busy exten => s-BUSY,4,Voicemail(b${ARG1}) ; If busy, send to voicemail w/ busy announce exten => s-BUSY,5,Goto(s,5) ; If they press #, return to ring the interface exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer exten => a,1,VoicemailMain(${ARG1}@default) ; If they press *, send the user into VoicemailMai [from-internal] exten => 200,1,Macro(stdexten,200,SIP/user200) ... Thanks in advance, Dominik -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070704/0adb843f/attachment.htm
Rizwan Hisham
2007-Jul-04 12:21 UTC
[asterisk-users] Dialout Macro and transfer call in progress
whats the key sequence you use to transfer. check the key sequence definition in features.conf, you maybe using a wrong keysequence. also check whether your asterisk is recieving the dtmf digits passed from your user agent or not. if the digits are not recieved by asterisk then there is no way you can tell asterisk to transfer the call. check for the following settings in sip.conf file general settings: dtmf=rfc2833 canreinvite=no On 7/4/07, Dominik Zalewski <dzalewski at open-craft.com> wrote:> > Dear All, > > I can not transfer call in progress. What's wrong with my macro? I think > tT flags is enough right? > > [macro-stdexten] > > exten => s,1,Set(temp=${DB(CFU/${ARG1})}) ; Get CFU key > > exten => s,2,Set(DNDStatus=${DB(DND/${ARG1})}) ; Get DND key > > exten => s,3,GotoIf($["${temp}" = ""]?5) ; If not existing, goto priority > 5 > > exten => s,4,Dial(Local/${temp}@local/n) ; Unconditional Forward > > exten => s,5,GoToIf($["${DNDStatus}" = ""]?7) ; If not existing ring the > interface > > exten => s,6,Voicemail(u${ARG1}) ; If CFU failed, send to voicemail w/ > unavail announce > > exten => s,7,Dial(${ARG2},20,tTrR) ; Ring the interface > > exten => s,8,Goto(s-${DIALSTATUS},1) ; Jump based on status > (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER) > > exten => s-NOANSWER,1,Set(temp=${DB(CFNA/${ARG1})}) ; Get CFNA key > > exten => s-NOANSWER,2,GotoIf($["${temp}" = ""]?4) ; If not existing, goto > voicemail > > exten => s-NOANSWER,3,Dial(Local/${temp}@local/n) ; Forward on No Answer > > exten => s-NOANSWER,4,Voicemail(u${ARG1}) ; If unavailable, send to > voicemail w/ unavail announce > > exten => s-NOANSWER,5,Goto(s,5) ; If they press #, return to ring the > interface > > exten => s-BUSY,1,Set(temp=${DB(CFB/${ARG1})}) ; Get CFB key > > exten => s-BUSY,2,GotoIf($["${temp}" = ""]?4) ; If not existing, goto > voicemail > > exten => s-BUSY,3,Dial(Local/${temp}@local/n) ; Forward on Busy > > exten => s-BUSY,4,Voicemail(b${ARG1}) ; If busy, send to voicemail w/ busy > announce > > exten => s-BUSY,5,Goto(s,5) ; If they press #, return to ring the > interface > > exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer > > exten => a,1,VoicemailMain(${ARG1}@default) ; If they press *, send the > user into VoicemailMai > > [from-internal] > > exten => 200,1,Macro(stdexten,200,SIP/user200) > > ... > > Thanks in advance, > > Dominik > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Regards Rizwan Hisham Software Engineer AXVOICE Inc. www.axvoice.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070704/7d29c696/attachment.htm