2017-07-07 40 views
-1

我有Vonage公司的帳戶,我能夠做出從我的電腦的電話輸入以下信息到我的軟電話(zoiper):使用星號作爲客戶端來充當軟電話

enter image description here

當將這些信息(域名,usrename和密碼)輸入到我的軟電話設置中時,我可以撥打電話並接收。 此時一切都很正常

現在的問題是我怎樣才能使用,我從Vonage公司得到了相同的信息,從星號外呼?我希望我的軟電話連接到星號,然後星號發出呼出電話。

這是我曾嘗試:

這是我的sip.conf看起來像:

[general] 
    tcpenable=yes 
    etc..... 

[SoftPhone1] 
    secret=MySecretPassword 
    context=MainContext 
    type=friend 
    disallow=all 
    transport=udp,tcp 
    etc... 

[vonage-test] 
    type=peer 
    host=sip-55623.accounts.vocalocity.com 
    secret=********* 
    username=VH283034 
    disallow=all 
    allow=ulaw 
    transport=udp,tcp 
    dtmfmode=auto 
    insecure=invite 

,並在我的extensions.conf

[general] 
    static=yes 
    etc... 

[MainContext] ; this is the context where SoftPhone1 is registered 
    exten => 100,1,NoOp(Testing to see if we can make outbound call) ; just write to the console 
    same => n,Dial(SIP/[email protected]) ; make phone call to 3051234567 
    same => n,Hangup() 


    etc... 

當我撥分機100的電話從未接到電話號碼3051234567.爲什麼?

回答

1

1)在每部分中,應該把一個傳輸

2)你應該正確地設置標題,像FROMUSER等詳細信息詢問Vonage公司

3)你應該做的註冊,請參見寄存器=>標籤。

0

你總是需要在sip.conf中使用你的手機和語音提供者的帳戶(如果你使用sip)並且如果你有一個trunk(真實世界號碼),通常你需要一個註冊線,那麼extensions.conf必須有兩個上下文的基本撥號方案,即線路之間的內部輸出和外部輸入或內部呼叫。

我認爲用示例配置文件星號在etc/asterisk中就足夠了,但您也可以檢查星號權威指南第三版。

祝你好運!