Asterisk 通道變量

  1.   * ${ACCOUNTCODE}: 用戶計費帳號 sip.conf 裏的 account=XXXX 
  2.     * ${ANSWEREDTIME}: 通話時長(秒) 
  3.     * ${BLINDTRANSFER}: 通道是否爲轉接類型 
  4.     * ${CALLERID(all)}: 主叫用戶名(主叫ID) 格式 name(123454) 
  5.     * ${CALLERID(name)}: 主叫用戶名 sip.conf 裏的 username=XXXX 
  6.     * ${CALLERID(num)}: 主叫號碼sip.conf 裏的 callerid=XXXX 
  7.     * ${CALLINGPRES}: PRI Call ID Presentation variable for incoming calls (See callingpres ) 
  8.     * ${CHANNEL}: 當前通道標識 
  9.     * ${CONTEXT}: 當前context 
  10.     * ${DATETIME}: 當前日期時間 
  11.     * ${DIALEDPEERNAME}: Name of the called party. Broken for now, see DIALEDPEERNAME 
  12.     * ${DIALEDPEERNUMBER}: Number of the called party. Broken for now, see DIALEDPEERNUMBER 
  13.     * ${DIALEDTIME}: Time since the number was dialed (only works when dialed party answers the line?!) 
  14.     * ${DIALSTATUS}: 當前通道狀態 
  15.     * ${DNID}: 用戶所撥打的號碼 
  16.     * ${EPOCH}: The current UNIX-style epoch (number of seconds since 1 Jan 1970) 
  17.     * ${EXTEN}: 當前所撥打分機號碼 
  18.     * ${HANGUPCAUSE}: The last hangup return code on a Zap channel connected to a PRI interface 
  19.     * ${INVALID_EXTEN}: The extension asked for when redirected to the i (invalid) extension 
  20.     * ${LANGUAGE}: 提示語言 
  21.     * ${MEETMESECS}: Number of seconds a user participated in a MeetMe conference 
  22.     * ${PRIORITY}: The current priority 
  23.     * ${RDNIS}: The current redirecting DNIS, Caller ID that redirected the call. Limitations apply, see RDNIS 
  24.     * ${SIPDOMAIN}: SIP destination domain of an inbound call (if appropriate) 
  25.     * ${SIP_CODEC}: Used to set the SIP codec for a call (apparently broken in Ver 1.0.1, ok in Ver. 1.0.3 & 1.0.4, not sure about 1.0.2) 
  26.     * ${SIPCALLID}: The SIP dialog Call-ID: header 
  27.     * ${SIPUSERAGENT}: The SIP user agent header 
  28.     * ${TIMESTAMP}: Current date time in the format: YYYYMMDD-HHMMSS This is deprecated as of Asterisk 1.4, instead use :${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}) 
  29.     * ${TRANSFERCAPABILITY}: 通道類型。是否可以轉接 
  30.     * ${TXTCIDNAME}: Result of application TXTCIDName (see below) 
  31.     * ${UNIQUEID}: 當前唯一標識 
  32.     * ${TOUCH_MONITOR}: used for "one touch record" (see features.conf, and wW dial flags). If is set 
  33.  
  34.   
  35. 1.4版本已經沒有${TIMESTAMP}這個變量了 

原文:http://www.cnblogs.com/abinxm/archive/2009/12/15/1624966.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章