-1
我正在使用Linksys SPA3102和我的freeswitch覆盆子pi。 PSTN線路使用端口5061.我爲PSTN線路創建了一個ID爲「23」的用戶,但我相信我需要讓該用戶使用端口5061.有沒有辦法爲特定用戶設置端口?我嘗試在參數中設置「sip-port」爲5061,但它沒有效果。我可以將SPA3102中的端口更改爲5060,這樣用戶可以註冊,但之後我無法使用它在PSTN線路上撥出電話。更改用戶的tcp/udp端口
下面是我所定義的用戶:
<include>
<user id="23">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="23"/>
<param name="sip-port" value="5061"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="23"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Phone Line"/>
<variable name="effective_caller_id_number" value="23"/>
<variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
<variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
<variable name="callgroup" value="techsupport"/>
</variables>
</user>
</include>
感謝您的回覆。直到下週我都無法嘗試。更改爲Linksys上的端口5080應該很容易。我對freeswitch的這部分有些模糊。爲什麼它也使用端口5080? – MikeKulls
第一個原因是安全性:您可以阻止對端口5060的外部訪問,並將您的5080端口保持在互聯網上,而不會將所有特權SIP帳戶暴露給暴力密碼攻擊。 FreeSWITCH wiki更好地解釋它:[什麼SIP配置文件做](http://wiki.freeswitch.org/wiki/Getting_Started_Guide#What_SIP_Profiles_Do) – hdiogenes
我試過這個可以確認這是正確的答案。我在SPA3102中將端口設置爲5080,現在一切都很好。這是我閱讀的每一篇指南都沒有提及的東西。 – MikeKulls