所以我有一个相当复杂的问题,我想连接我的客户端3cx电话系统的星号
所以有一个SIP电话连接到3cx系统与扩展351
在我的星号,我已经添加客户端3cx系统sip.conf如下:
[3cx] type=friend host=151.236.XX.XXX username=400 secret=secret context=main canreinvite=no ;authname=authname ;fromuser=fromuser ;fromdomain=fromdomain insecure=port,invite trustrpid=yes disallow=all allow=alaW
在我的extensions.conf中,我有以下行
exten => _X.,n,Dial(SIP/${EXTEN}@3cx,,ro)
但是,当它试图拨打“SIP / 351 @ 3cx”使用路由到我的星号的固定电话,我得到以下输出
[Oct 4 20:05:22] VERBOSE[22119] chan_sip.c: <--- SIP read from UDP:151.236.XX.XXX:5060 ---> SIP/2.0 404 User unknown. Via: SIP/2.0/UDP 85.13.XXX.XXX:5060;branch=z9hG4bK17f3106e To: <sip:[email protected]>;tag=9e38f119 From: "+442084526XXX"<sip:[email protected]>;tag=as33bb12fb Call-ID: [email protected]:5060 CSeq: 103 INVITE User-Agent: 3CXPhoneSystem 14.0.49169.513 (48654) Content-Length: 0
不过,我已经下载了一个软电话(MicroSIP)到我的桌面,并直接用客户端3cx系统注册了软电话。 当我拨打351我直接连接到代理。
我在网上寻找解决scheme,我发现添加register到sip.conf(所以基本上我注册我的星号作为SIP手机3cx系统)应该有所帮助,但它没有奏效。
我的sip.conf注册条目:
register => 400:[email protected]
我在这里稍微丢失,所以任何帮助不胜感激
谢谢
确保将fromdomain=<your 3x domain>和qualify=yes到您的sip.conf ,并且您的任务的type=peer 。 Final sip.conf
register=>400:[email protected]/from-3cx [3cx] type=peer dtmfmode=rfc2833 insecure=port,invite qualify=yes canreinvite=no directmedia=yes disallow=all allow=ulaw allow=g729 defaultuser=400 secret=secret context=from-3cx [phone-connected-to-asterisk] type=friend host=dynamic transport=udp secret=secret disallow=all allow=ulaw context=from-asterisk insecure=port,invite
并确保将传入的上下文添加到您的extensions.conf 。 最终extensions.conf :
[general] static=yes writeprotect=yes clearglobalvars=yes [default] include => incoming [incoming] include => from-3cx [from-asterisk] exten => _X.,1,Dial(SIP/${EXTEN}@3cx,45) [from-3cx] exten => _X.,1,Progress() exten => _X.,n,Dial(SIP/${EXTEN},60,gt) exten => _X.,n,Hangup()