2016-10-25 11 views
1

を登録することはできません。
アスタリスクは達したが、私はアスタリスクで新たなんだと、次のアスタリスク例

[general] 
transport=udp 

[friends_internal](!) 
type=friend 
host=dynamic 
context=from-internal 
disallow=all 
allow=ulaw 

[demo-alice](friends_internal) 
secret=verysecretpassword 
qualify=yes 
; put a strong, unique password here instead 
qualify=yes 
[demo-bob](friends_internal) 

secret=othersecretpassword ; put a strong, unique password here instead 

sip.confそして、これはpjsip.confです:私は Ekigaを使用

[transport-udp] 
type=transport 
protocol=udp 
bind=0.0.0.0 

;Templates for the necessary config sections 

[endpoint_internal](!) 
type=endpoint 
context=from-internal 
disallow=all 
allow=ulaw 

[auth_userpass](!) 
type=auth 
auth_type=userpass 

[aor_dynamic](!) 
type=aor 
max_contacts=1 

;Definitions for our phones, using the templates above 

[demo-alice](endpoint_internal) 
auth=demo-alice 
aors=demo-alice 
[demo-alice](auth_userpass) 
password=unsecurepassword ; put a strong, unique password here instead 
username=demo-alice 
[demo-alice](aor_dynamic) 

[demo-bob](endpoint_internal) 
auth=demo-bob 
aors=demo-bob 
[demo-bob](auth_userpass) 
password=unsecurepassword ; put a strong, unique password here instead 
username=demo-bob 
[demo-bob](aor_dynamic) 

ログインするソフトフォンdemo-aliceアカウント:

ubuntu*CLI> 
    -- Added contact 'sip:[email protected]:5060' to AOR 'demo-alice' with expiration of 3600 seconds 
    == Contact demo-alice/sip:[email protected]:5060 has been created 
    == Endpoint demo-alice is now Reachable 
    -- Contact demo-alice/sip:[email protected]:5060 is now Unknown. RTT: 0.000 msec 
[Oct 25 16:40:10] WARNING[16587]: res_pjsip_pubsub.c:3134 pubsub_on_rx_publish_request: No registered publish handler for event presence 
[Oct 25 16:40:10] WARNING[16587]: res_pjsip_pubsub.c:3134 pubsub_on_rx_publish_request: No registered publish handler for event presence 
ubuntu*CLI> sip show peers 
Name/username    Host         Dyn Forcerport Comedia ACL Port  Status  Description      
demo-alice    (Unspecified)       D Auto (No) No    0  Unmonitored         
demo-bob     (Unspecified)       D Auto (No) No    0  Unmonitored         
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] 
ubuntu*CLI> 

Ekiga私は既に登録していますが、Asteriskサーバは登録していません。 それはReachedですが、状況はUnknownまたはUnmonitoredUnspecified IPです。助けて!!!
私はUbuntuサーバ16.04でUbuntu 16.04とAsterisk 13.11.2を使用しています。

enter image description here

答えて

1

あなたはpropably chan_sip OR chan_pjsipを使用します。それはそうロードからそのうちの一つを防ぐために

チェックはmodules.conf ...あなたのCLIで

は、Ekigaのはchan_pjsipに登録されています。

"sip show peers"( - > chan_sip)の代わりに "pjsip show endpoints"( - > chan_pjsip)を試してください。

+0

あなたは私の人生を救った! – Mr2uang

関連する問題