Asterisk 星号服务器中的路由调用
Asterisk 星号服务器中的路由调用,asterisk,sip,voip,Asterisk,Sip,Voip,我有一个场景,我想从Asterisk将呼叫路由到sip服务器,但我想做一些类似的事情
sip服务器正在运行:192.168.1.10和
星号服务器正在运行:192.168.1.4
客户端拨号-->sip:111@192.168.1.4---->先用星号,然后用星号发送呼叫------->sip:111@192.168.1.10----------->sip服务器
有人能告诉我如何在星号配置路由文件中做到这一点吗 您需要在Asterisk服务器上设置sip中继
查看此页面以了解更多信息:
您需要
我有一个场景,我想从Asterisk将呼叫路由到sip服务器,但我想做一些类似的事情
sip服务器正在运行:192.168.1.10和
星号服务器正在运行:192.168.1.4
客户端拨号-->sip:111@192.168.1.4---->先用星号,然后用星号发送
呼叫------->sip:111@192.168.1.10----------->sip服务器
有人能告诉我如何在星号配置路由文件中做到这一点吗 您需要在Asterisk服务器上设置sip中继
查看此页面以了解更多信息:
您需要在Asterisk服务器上设置sip中继
查看此页面以了解更多信息:
正如os11k所说,您需要SIP中继才能做到这一点。我将添加一些关于在两个城市之间设置SIP中继时遇到的问题的详细信息
在SIP.conf中添加一个SIP中继
SIP中继样本
[general]
register => SIP_ACCOUNT:SIP_PASSWORD@TheOtherSipServer
[TheOtherSipServer]
type=peer
context=sip-server-192-168-1-10
host=192.168.1.10
defaultuser=THE_ACCOUNT_HERE
fromuser=THE_ACCOUNT_HERE
remotesecret=THE_PASSWORD_OF_ACCOUNT_HERE
; if you want to send the remote caller id to 192.168.1.10, then set sendrpid=yes .
; you also need to trust the remote caller id in 192.168.1.10 .
sendrpid=yes
; if 192.168.1.10 can dial out from here, you need to set trustrpid=yes so you can get the caller id
;trustrpid=yes
; if 192.168.1.10 is picky on codecs
;disallow=all
;allow=THE_CODEC_NAME_ALLOWED_BY_THE_OTHER_SIP_SERVER
[globals]
SIPTrunk=SIP/TheOtherSipServer
[sip-server-192-168-1-10]
;exten=>111,1,Dial(SIP/TheOtherSipServer/111)
exten=>111,1,Dial(${SIPTrunk}/${EXTEN})
正如os11k所说,要做到这一点,您需要SIP中继。我将添加一些关于在两个城市之间设置SIP中继时遇到的问题的详细信息
在SIP.conf中添加一个SIP中继
SIP中继样本
[general]
register => SIP_ACCOUNT:SIP_PASSWORD@TheOtherSipServer
[TheOtherSipServer]
type=peer
context=sip-server-192-168-1-10
host=192.168.1.10
defaultuser=THE_ACCOUNT_HERE
fromuser=THE_ACCOUNT_HERE
remotesecret=THE_PASSWORD_OF_ACCOUNT_HERE
; if you want to send the remote caller id to 192.168.1.10, then set sendrpid=yes .
; you also need to trust the remote caller id in 192.168.1.10 .
sendrpid=yes
; if 192.168.1.10 can dial out from here, you need to set trustrpid=yes so you can get the caller id
;trustrpid=yes
; if 192.168.1.10 is picky on codecs
;disallow=all
;allow=THE_CODEC_NAME_ALLOWED_BY_THE_OTHER_SIP_SERVER
[globals]
SIPTrunk=SIP/TheOtherSipServer
[sip-server-192-168-1-10]
;exten=>111,1,Dial(SIP/TheOtherSipServer/111)
exten=>111,1,Dial(${SIPTrunk}/${EXTEN})