两台ASTERISK对接

在SERVER A 上

sip.conf

[serverB]

type = peer

host = 192.168.1.101

username = serverA

secret = apples

context = incoming

disallow = all

allow = ulaw

在SERVER B

[serverA]

type = peer

host = 192.168.1.101

username = serverB

secret = apples

context = incoming

disallow = all

allow = ulaw


如果你希望在serverA 上向6000 到6999 发起的呼叫都被传递

给serverB,你需要在serverA 的dialplan 中增加如下一行:

exten => _6XXX,1,Dial(SIP/${EXTEN}@serverB)


如果你希望在serverB 上向6000 到6999 发起的呼叫都被传递

给serverA,你需要在serverB 的dialplan 中增加如下一行:

exten => _6XXX,1,Dial(SIP/${EXTEN}@serverA)