Was this page helpful?

DP: 有用的範例

    內容表格
    1. 1. CUT/FILTER

    CUT/FILTER

    [MemberConnector]
    exten => _[A-Za-z0-9].,1,Verbose(2,Connecting ${CALLERID(all)} to Agent at ${EXTEN})
    
       ; filter out any bad characters, allowing alphanumeric characters and the hyphen
       same => n,Set(QueueMember=${FILTER(A-Za-z0-9\-,${EXTEN})
    
       ; assign the first field of QueueMember to Technology using the hyphen separator
       same => n,Set(Technology=${CUT(QueueMember,-,1)})
    
       ; assign the second field of QueueMember to Device using the hyphen separator
       same => n,Set(Device=${CUT(QueueMember,-,2)})
    
       ; dial the agent
       same => n,Dial(${Technology}/${Device})
       same => n,Hangup()
    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core