Quantcast
Channel: Follow Me not working
Viewing all articles
Browse latest Browse all 6

Follow Me not working

$
0
0

@gurvinder2050 wrote:

skipov is a label where system should execute. Right now it is not able to recognize label throwing error I am sure why. Following is the dial plan on follow me is set

exten => 9002,1,GotoIf($[ "${DB(AMPUSER/9002/followme/ddial)}" = "EXTENSION" ]?ext-local,9002,1)
exten => 9002,n(FM9002),Macro(user-callerid,)
exten => 9002,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}I)
exten => 9002,n,Set(CONNECTEDLINE(num)=9002)
exten => 9002,n,Set(CONNECTEDLINE(name,i)=${DB(AMPUSER/9002/cidname)})
exten => 9002,n,Set(FM_DIALSTATUS=${EXTENSION_STATE(9002@ext-local)})
exten => 9002,n,Set(__EXTTOCALL=${EXTEN})
exten => 9002,n,Set(__PICKUPMARK=${EXTEN})
exten => 9002,n,Macro(blkvm-setifempty,)
exten => 9002,n,GotoIf($["${GOSUB_RETVAL}" = "TRUE"]?skipov)
exten => 9002,n,Macro(blkvm-set,reset)
exten => 9002,n,Set(__NODEST=)
exten => 9002,n(skipov),Set(RRNODEST=${NODEST})
exten => 9002,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 9002,n,GosubIf($[${DB_EXISTS(AMPUSER/9002/followme/changecid)} = 1 & "${DB(AMPUSER/9002/followme/changecid)}" != "default" & "${DB(AMPUSER/9002/followme/changecid)}" != ""]?sub-fmsetcid,s,1())
exten => 9002,n,Set(RecordMethod=Group)
exten => 9002,n(checkrecord),Gosub(sub-record-check,s,1(exten,9002,))
exten => 9002,n(skipsimple),Set(RingGroupMethod=ringallv2)
exten => 9002,n,Set(_FMGRP=9002)
exten => 9002,n(DIALGRP),GotoIf($[("${DB(AMPUSER/9002/followme/grpconf)}"="ENABLED") | ("${FORCE_CONFIRM}"!="") ]?doconfirm)
exten => 9002,n,Macro(dial,$[ ${DB(AMPUSER/9002/followme/grptime)} + ${DB(AMPUSER/9002/followme/prering)} ],${DIAL_OPTIONS},${DB(AMPUSER/9002/followme/grplist)})
exten => 9002,n,Goto(nextstep)
exten => 9002,n(doconfirm),Macro(dial-confirm,$[ ${DB(AMPUSER/9002/followme/grptime)} + ${DB(AMPUSER/9002/followme/prering)} ],${DIAL_OPTIONS},${DB(AMPUSER/9002/followme/grplist)},9002)
exten => 9002,n(nextstep),Set(RingGroupMethod=)
exten => 9002,n,GotoIf($["foo${RRNODEST}" != "foo"]?nodest)
exten => 9002,n,Set(__NODEST=)
exten => 9002,n,Set(__PICKUPMARK=)
exten => 9002,n,Macro(blkvm-clr,)
exten => 9002,n,Set(DIALSTATUS=${IF($["${FM_DIALSTATUS}"="NOT_INUSE"&"${DIALSTATUS}"!="CHANUNAVAIL"]?NOANSWER:${IF($["${DIALSTATUS}"="CHANUNAVAIL"|"${FM_DIALSTATUS}"="UNAVAILABLE"|"${FM_DIALSTATUS}"="UNKNOWN"|"${FM_DIALSTATUS}"="INVALID"]?CHANUNAVAIL:BUSY)})})
exten => 9002,n,Goto(ext-local,9002,dest)
exten => 9002,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})

;--== end of [ext-findmefollow] ==--;

If i add noop just noop before this line for example
exten => 9002,n,noop(value of skipov is ${skipov} ${GOSUB_RETVAL})

I am getting following in console
-- Executing [9002@from-internal:10] NoOp("SIP/1020-00000f89", "value of skipov is TRUE") in new stack

I am not able to understand why it is not recognizing label. Is it something to do with Asterisk or FreePBX is causing something.

Read full topic


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>