confirm callback number while callback dialplan

VitalPBX Community Support Wish List confirm callback number while callback dialplan

  • Post
    norman
    Participant
    Hi,

    now callback dialplan has just input digits without confirm what is right ? or not ?

    [as-is]

    exten => s,1,Set(CALLBACK_NUMBER=${CALLERID(num)})
    same => n,Set(ASK_NUMBER=yes)
    same => n,Set(TRIES=0)
    same => n,Set(MAX_TRIES=3)
    same => n(loop),Set(TRIES=$[${TRIES} + 1])
    same => n,GotoIf($[${TRIES}>${MAX_TRIES}]?max-retries,1)
    same => n,Read(CALLBACK_NUMBER,please-enter-your&telephone-number&followed_pound,,,,)
    same => n,GotoIf($[“X${CALLBACK_NUMBER}X”=”XX”]?:check-cn)
    same => n,Goto(loop)
    same => n(check-cn),NoOp(Checking CallBack Number)
    same => n,Goto(${CALLBACK_NUMBER},1)
    same => n,Hangup()

     

    [to-be] ;;; some like this,  need confirm callback number

    exten => s,1,Set(CALLBACK_NUMBER=${CALLERID(num)})
    same => n,Set(ASK_NUMBER=yes)
    same => n,Set(TRIES=0)
    same => n,Set(MAX_TRIES=3)
    same => n(loop),Set(TRIES=$[${TRIES} + 1])
    same => n,GotoIf($[${TRIES}>${MAX_TRIES}]?max-retries,1)
    same => n(inputagain),Read(CALLBACK_NUMBER,please-enter-your&telephone-number&followed_pound,,,,)
    same => n,GotoIf($[“X${CALLBACK_NUMBER}X”=”XX”]?:check-cn)

    same => n,Read(CONFIRM_CALLBACK_NUMBER,isright&isnot,,,,)

    same => n,GotoIf($[“X${CONFIRM_CALLBACK_NUMBER}X”=”X1X”]?check-cn:inputagain)

    same => n,Goto(loop)
    same => n(check-cn),NoOp(Checking CallBack Number)
    same => n,Goto(${CALLBACK_NUMBER},1)
    same => n,Hangup()

     

    it is not correct dialplan. i just want show add some for confirm numbers in dialplan.

    Thanks

     

     

    0
  • You must be logged in to reply to this topic.