服务器:
A服务器、B服务器
分机:
A->800,
B->801,B->802
1、在A服务器配置分机(SIP)800
[800]
type=friend
username=800
secret=800
host=dynmic
canreinvite=yes
callerid=800
port=5060
context=from-internal
disallow=all
allow=alaw
allow=ulaw
allow=gsm
2、在A服务器配置SIP中继注册到B服务器
[802]
type=friend
username=802
secret=802
host=B服务器IP
canreinvite=yes
callerid=802
port=5060
context=sip_trunck
3、在B服务器分别增加SIP分机801,802
[801]
type=friend
username=801
secret=801
host=dynmic
canreinvite=yes
callerid=801
port=5060
context=from-internal
disallow=all
allow=alaw
allow=ulaw
allow=gsm
[802]
type=friend
username=802
secret=802
host=dynmic
canreinvite=yes
callerid=802
port=5060
context=from-internal
disallow=all
allow=alaw
allow=ulaw
allow=gsm
4、在B服务器上配置呼叫规则
[from-internal]
exten=>_X.,1,dial(sip/${EXTEN})
exten=>_8XX,1,dial(sip/802/${EXTEN}))
OK,配置完成,互相拨打成功