2017-07-07 35 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中就足够了,但您也可以检查星号权威指南第三版。

祝你好运!