這個教學適用 Sipura ATA SPA3XXX/PAP2 系列產品。
說明:
透過 ATA 設備的 auto-provisioning 功能,可以集中控管所有 ATA 設備上的參數設定,管理員只要修改主機上的設定檔,相關的 ATA 設備就會主動作更新套用,這個不但大大節省了用戶設備管理上的負擔,也相對提昇了設備的安全性。
用途:
設定步驟
Notes: 繼續以下設定前,請確定已經熟悉 Web UI 上的大部分設定的用途。
不管設備曾作過什麼樣的設定,請將所有的設定回復為出廠設定狀態。
使用一般電話接上 FXS port,繼續以下操作:
按【****】 > 按【73738#】> 按【1】
若一切順利,設備會在幾秒鐘後自行重開機。
此時設備的網路設定應為 DHCP 啟動,請將設備接上網路,並確定網路上有 DHCP 服務,繼續以下操作:
按【****】 > 按【110#】> 系統會提示目前的 IP 位址,例如 xxx.xxx.xxx.xxx。
檔名:init.xml
<?xml version="1.0" encoding="ISO-8859-1"?> <flat-profile> <Profile_Rule ua="na">http://your-provision-server/$PN/cfg_$MAU.xml</Profile_Rule> </flat-profile>
檔名:cfg_your-mac-address-of-ata.xml
<?xml version="1.0" encoding="ISO-8859-1"?> <flat-profile> <!-- tag case appears to be important --> <!-- System --> <Admin_Passwd ua="na">your-password</Admin_Passwd> <User_Passwd ua="rw">your-password</User_Passwd> <Primary_NTP_Server ua="na">pool.ntp.org</Primary_NTP_Server> <!-- SIP --> <RTP_Packet_Size ua="na">0.020</RTP_Packet_Size> <!-- Provisioning --> <Profile_Rule ua="na">http://your-provision-server/$PN/cfg_$MAU.xml</Profile_Rule> <Provision_Enable ua="na">Yes</Provision_Enable> <Forced_Resync_Delay ua="na">2</Forced_Resync_Delay> <Resync_Periodic ua="na">30</Resync_Periodic> <Resync_Error_Retry_Delay ua="na">30</Resync_Error_Retry_Delay> <!-- Regional --> <Time_Zone ua="na">GMT+08:00</Time_Zone> <!-- Line 1 --> <SIP_Port_1_ ua="na">5063</SIP_Port_1_> <Proxy_1_ ua="na">your-sip-proxy-server</Proxy_1_> <Register_Expires_1_ ua="na">300</Register_Expires_1_> <Display_Name_1_ ua="na">spa3k-line1</Display_Name_1_> <User_ID_1_ ua="na">your-sip-id</User_ID_1_> <Password_1_ ua="na">your-sip-pass</Password_1_> <Preferred_Codec_1_ ua="na">G729a</Preferred_Codec_1_> <Dial_Plan_1_ ua="na">(*xx|*0xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_> <!-- PSTN Line --> <!-- Network Settings --> <Network_Jitter_Level_2_ ua="na">low</Network_Jitter_Level_2_> <Jitter_Buffer_Adjustment_2_ ua="na">disable</Jitter_Buffer_Adjustment_2_> <!-- SIP Settings --> <SIP_Port_2_ ua="na">5061</SIP_Port_2_> <!-- Proxy and Registration --> <Proxy_2_ ua="na"></Proxy_2_> <Make_Call_Without_Reg_2_ ua="na">yes</Make_Call_Without_Reg_2_> <Ans_Call_Without_Reg_2_ ua="na">yes</Ans_Call_Without_Reg_2_> <Register_Expires_2_ ua="na">300</Register_Expires_2_> <!-- Subscriber Information --> <Display_Name_2_ ua="na"></Display_Name_2_> <User_ID_2_ ua="na"></User_ID_2_> <Password_2_ ua="na"></Password_2_> <!-- Audio Configuration --> <Preferred_Codec_2_ ua="na">G729a</Preferred_Codec_2_> <Silence_Supp_Enable_2_ ua="na">no</Silence_Supp_Enable_2_> <Echo_Canc_Enable_2_ ua="na">yes</Echo_Canc_Enable_2_> <Echo_Canc_Adapt_Enable_2_ ua="na">yes</Echo_Canc_Adapt_Enable_2_> <Echo_Supp_Enable_2_ ua="na">yes</Echo_Supp_Enable_2_> <DTMF_Process_INFO_2_ ua="na">yes</DTMF_Process_INFO_2_> <DTMF_Process_AVT_2_ ua="na">yes</DTMF_Process_AVT_2_> <DTMF_Tx_Method_2_ ua="na">Auto</DTMF_Tx_Method_2_> <!-- Dial Plans --> <Dial_Plan_1_2_ ua="na">(xx.)</Dial_Plan_1_2_> <Dial_Plan_2_2_ ua="na">(xx.)</Dial_Plan_2_2_> <!-- VoIP-To-PSTN Gateway Setup --> <VoIP-To-PSTN_Gateway_Enable_2_ ua="na">yes</VoIP-To-PSTN_Gateway_Enable_2_> <VoIP_Caller_Auth_Method_2_ ua="na">none</VoIP_Caller_Auth_Method_2_> <VoIP_PIN_Max_Retry_2_ ua="na">3</VoIP_PIN_Max_Retry_2_> <One_Stage_Dialing_2_ ua="na">yes</One_Stage_Dialing_2_> <Line_1_VoIP_Caller_DP_2_ ua="na">1</Line_1_VoIP_Caller_DP_2_> <VoIP_Caller_Default_DP_2_ ua="na">1</VoIP_Caller_Default_DP_2_> <Line_1_Fallback_DP_2_ ua="na">none</Line_1_Fallback_DP_2_> <!-- PSTN-To-VoIP Gateway Setup --> <PSTN-To-VoIP_Gateway_Enable_2_ ua="na">yes</PSTN-To-VoIP_Gateway_Enable_2_> <PSTN_Caller_Auth_Method_2_ ua="na">none</PSTN_Caller_Auth_Method_2_> <PSTN_Ring_Thru_Line_1_2_ ua="na">yes</PSTN_Ring_Thru_Line_1_2_> <PSTN_PIN_Max_Retry_2_ ua="na">3</PSTN_PIN_Max_Retry_2_> <PSTN_CID_For_VoIP_CID_2_ ua="na">no</PSTN_CID_For_VoIP_CID_2_> <PSTN_CID_Number_Prefix_2_ ua="na"></PSTN_CID_Number_Prefix_2_> <PSTN_Caller_Default_DP_2_ ua="na">1</PSTN_Caller_Default_DP_2_> <Off_Hook_While_Calling_VoIP_2_ ua="na">no</Off_Hook_While_Calling_VoIP_2_> <Line_1_Signal_Hook_Flash_To_PSTN ua="na">Disabled</Line_1_Signal_Hook_Flash_To_PSTN> <PSTN_CID_Name_Prefix_2_ ua="na"></PSTN_CID_Name_Prefix_2_> <!-- FXO Timer Values (sec) --> <VoIP_Answer_Delay_2_ ua="na">0</VoIP_Answer_Delay_2_> <VoIP_PIN_Digit_Timeout_2_ ua="na">10</VoIP_PIN_Digit_Timeout_2_> <PSTN_Answer_Delay_2_ ua="na">16</PSTN_Answer_Delay_2_> <!-- International Control --> <SPA_To_PSTN_Gain_2_ ua="na">0</SPA_To_PSTN_Gain_2_> <PSTN_To_SPA_Gain_2_ ua="na">0</PSTN_To_SPA_Gain_2_> <!-- FXO Timer Values (sec) --> <PSTN_Answer_Delay_2_ ua="na">3</PSTN_Answer_Delay_2_> <!-- PSTN Disconnect Detection --> <Detect_CPC_2_ ua="na">no</Detect_CPC_2_> <Detect_Polarity_Reversal_2_ ua="na">no</Detect_Polarity_Reversal_2_> <!-- International Control --> <FXO_Port_Impedance_2_ ua="na">220+820||120nF</FXO_Port_Impedance_2_> <SPA_To_PSTN_Gain_2_ ua="na">1</SPA_To_PSTN_Gain_2_> <PSTN_To_SPA_Gain_2_ ua="na">6</PSTN_To_SPA_Gain_2_> </flat-profile>