2014-09-20 199 views
-2

我已经建立了一个直接连接到互联网(无路由器/ NAT)的FreePBX服务器。我已经能够将它连接到SIP中继,并且已经创建了一个用于IP电话的扩展。事情是我不能让IP电话(或任何软电话软件)连接到集团电话。FreePBX连接到SIP中继,无法连接SIP电话

登录到Asterisk和做一个“一口秀同行”产生:

Name/username    Host         Dyn Forcerport Comedia ACL Port   Status  Description 
200      (Unspecified)       D No   No   A 0  UNKNOWN 
DIDLogic/XXXXX   178.63.143.236        Auto (No) No    5060  OK (107 ms) 
2 sip peers [Monitored: 1 online, 1 offline Unmonitored: 0 online, 0 offline] 

我已经设置SIP调试,看看服务器和SIP中继之间的通信,但是当我尝试注册扩展设备200我什么都看不到。我在短时间内看到消息,报告密码不正确。奇怪的是,它经过了很长一段时间没有看到任何东西,我不确定是否做了什么,如果有的话,我做了让它通过。

<--- SIP read from UDP:178.63.143.236:5060 ---> 
SIP/2.0 200 OK 
Via: SIP/2.0/UDP XXX.XXX.XXX.XXX:5061;branch=z9hG4bK0e613a6d;rport=5061 
From: <sip:[email protected]>;tag=as64d70f66 
To: <sip:[email protected]>;tag=b27e1a1d33761e85846fc98f5f3a7e58.4b9a 
Call-ID: [email protected][::1] 
CSeq: 112 REGISTER 
Contact: <sip:[email protected]:5061>;expires=120 
Server: kamailio (4.0.3 (x86_64/linux)) 
Content-Length: 0 

<-------------> 
--- (9 headers 0 lines) --- 
[2014-09-20 13:28:24] NOTICE[18929]: chan_sip.c:23980 handle_response_register: Outbound  Registration: Expiry for sip.didlogic.net is 120 sec (Scheduling reregistration in 105 s) 
Really destroying SIP dialog '[email protected][::1]' Method: REGISTER 

我已经试过禁用服务器上iptables的,我已经把我的IP电话在我的路由器DMZ但仍没有运气。

的sip_additional.conf文件看起来像:

[200] 
deny=0.0.0.0/0.0.0.0 
secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 
dtmfmode=rfc2833 
canreinvite=no 
context=from-internal 
host=dynamic 
trustrpid=yes 
sendrpid=no 
type=friend 
nat=no 
port=5060 
qualify=yes 
qualifyfreq=60 
transport=Auto 
avpf=no 
force_avp=no 
icesupport=no 
encryption=no 
callgroup= 
pickupgroup= 
dial=SIP/200 
[email protected] 
permit=0.0.0.0/0.0.0.0 
callerid=Personal <200> 
callcounter=yes 
faxdetect=no 
cc_monitor_policy=generic 

[DIDLogic] 
disallow=all 
host=sip.didlogic.net 
user=XXXXX 
defaultuser=XXXXX 
fromuser=XXXXX 
authname=XXXXX 
secret=XXXXXXXXXXXXXX 
insecure=port,invite 
type=friend 
qualify=yes 
allow=ulaw 
context=from-trunk-sip-DIDLogic 
+0

你的痕迹不充分,什么也没有显示。您已经根据网络设置配置了NAT。 – arheops 2014-09-20 19:35:32

+0

授予跟踪未满,但它只是有关干线连接的消息。当我尝试从设备(IP电话或软电话)连接时,根本没有任何迹象显示它。服务器没有任何类型的NAT,尽管我的手机是。对此需要什么样的配置? – 2014-09-20 22:41:52

+0

如果你想要别人帮你,需要完整的配置。如果你的星号不在NAT之后,那么没有VIA回复。 – arheops 2014-09-21 02:03:07

回答

0

最终它是只是星在听上5061,而不是5060我觉得奇怪,因为我并没有改变任何默认端口设置FreePBX的任何地方。