設置:
的Centos 6
操作系統:Linux CentOS的64位
CPU:英特爾酷睿™i7 - 4芯星號:連接一個Asterisk系統要SIP提供商
星號11
libpri 1.4
DAHDI 2.9.1
我想通過星號呼叫轉接到我的SIP提供商。我想用軟電話撥打電話,當我在軟電話上撥打電話時,需要通過我的星號服務器進行路由,然後再通過SIP提供商。目前,當我進行出站呼叫時,它會產生「未通過身份驗證」,狀態爲「CONGESTION」通知。
我的問題很簡單:由於我的軟電話正在從「User1」(如下所示)進行呼叫,因此我需要在我的sip.conf和extensions.conf文件中寫入以便SIP提供商撥打電話爲了我?
我的想法:
我覺得我缺少的過程,就像用戶1如何設置處理呼出電話的一部分...
見我的當前設置這兩個文件了一個概述:
說明:
- 此帖子的所有用戶名和密碼已被刪除。
- sip.us是SIP提供商
sip.conf:
[general]
transport=udp
register => username:[email protected]
[myprovider]
type=peer
insecure=port,invite
host=gw1.sip.us
port=5060
dtmfmode=rfc2833
canrevinvite=no
disallow=all
allow=ulaw
qualify=yes
qualifyfreq=30
nat=force_rport,comedia
trustrpid=yes
fromdomain=gw1.sip.us
username=*****
secret=*****
context=from-trunk
rfc2833compensate=yes
session-timers=refuse
[friends_internal](!)
type=friend
host=dynamic
context=users
disallow=all
allow=ulaw
allow=alaw
[user1](friends_internal)
secret=****
[user2](friends_internal)
secret=****
現在的extensions.conf:
...
...
exten=>_1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@gw1.sip.us)
[users]
exten=>6001,1,Dial(SIP/user1,20)
exten=>6002,1,Dial(SIP/user2,20)
現在當我嘗試使用撥出電話的星號CLI輸出軟電話:
== Using SIP RTP CoS mark 5
-- Executing [[email protected]:1] Dial("SIP/user1-0000001e",
"SIP/[email protected]") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/[email protected]
[May 4 10:02:13] NOTICE[28935][C-0000002a]: chan_sip.c:23094
handle_response_invite: Failed to authenticate on INVITE to
'<sip:[email protected]>;tag=as798e5009'
-- SIP/gw1.sip.us-0000001f is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/user1-0000001e' status is 'CONGESTION'
星號cli> sip show registery
Host dnsmgr Username Refresh State Reg.Time
gw1.sip.us:5060 N username 105 Registered Sun, 04 May 2014 10:28:05
1 SIP registrations.
星號CLI> SIP秀同行
Name/username Host Dyn Forcerport Comedia ACL Port Status
user1/user1 68.198.. D Auto (No) No 55461 Unmonitored
user2/user2 68.198.. D Auto (No) No 55461 Unmonitored
myprovider/username 65.254.44.194 Yes Yes 5060 OK (42 ms)
請注意';',你有你的配置IP? (請注意,它不是一個有效的IP地址) –
pah
我特意改變了這個帖子。它已成功註冊。謝謝。 –