我如何为 getonsip 配置一部硬电话?

我如何为 getonsip 配置一部硬电话?

在配置思科 SPA 942硬电话,品牌 Linksys,如何完成设置盖通西普(或者昂西普)?

SIP Address: [email protected]
Username: foo
Domain: getonsip.com
SIP Password: GHdjlRBfjdklHWD
Auth Username: getonsip_foo
Outbound Proxy: sip.onsip.com

SIP选项卡中:

SIP Parameters

SIP Server Name:  getonsip.com
SIP User Agent Name: foo
SIP Reg User Agent Name: getonsip_foo

EXT 1标签中有:

SIP settings

SIP Port:   
EXT SIP Port:
SIP Proxy-Require:

该选项卡中Ext 1还有:

Proxy and Registration

Proxy:      
Use Outbound Proxy: 
Outbound Proxy:     
Use OB Proxy In Dialog:

但我不太清楚Auth Usernameonsip 中的密码去哪儿了。值得注意的是,它们getonsip.com在 SIP 地址和sip.onsip.com代理中使用。

答案1

最佳选择——联系 onsip.com 支持。

仅当您想使用其他(隐藏)名称进行身份验证时才使用身份验证用户名。如果您对此一无所知,请将其留空或在其中输入用户名的值(两个选项都有效)。

密码已输入在保密字段中。

答案2

这是我目前所拥有的:

General
Line Enable:  yes













Share Line Appearance 
Share Ext: private
Shared User ID:
Subscription Expires: 3600  





NAT Settings 
NAT Mapping Enable: no
NAT Keep Alive Enable: yes
NAT Keep Alive Msg: $NOTIFY
NAT Keep Alive Dest: $PROXY






 Network Settings 
SIP TOS/DiffServ Value: 0x68
SIP CoS Value: 3
RTP TOS/DiffServ Value: 0xb8
RTP CoS Value: 6
Network Jitter Level: high
Jitter Buffer Adjustment: up and down







SIP Settings 
SIP Transport:UDP
SIP Port: 5060
SIP 100REL Enable:no
EXT SIP Port: 
Auth Resync-Reboot:
SIP Proxy-Require: sip.linphone.org
SIP Remote-Party-ID:no
Referor Bye Delay: 0
Refer-To Target Contact:no
Referee Bye Delay: 0
SIP Debug Option:none
Refer Target Bye Delay:0 
Sticky 183:no
Auth INVITE:no
Ntfy Refer On 1xx-To-Inv:yes
Use Anonymous With RPID:yes
Set G729 annexb:none











Call Feature Settings 
Blind Attn-Xfer Enable: yes
MOH Server: [email protected]
Message Waiting:
Auth Page:no
Default Ring:1
Auth Page Realm: 
Conference Bridge URL:
Auth Page Password: 
Mailbox ID:
Voice Mail Server: 
State Agent:
CFWD Notify Serv:no
CFWD Notifier:  







Proxy and Registration 
Proxy: <custom_domain>.onsip.com
Use Outbound Proxy: yes
Outbound Proxy: sip.onsip.com
Use OB Proxy In Dialog: yes
Register: yes
Make Call Without Reg: no
Register Expires:3600
Ans Call Without Reg:yes
Use DNS SRV:no
DNS SRV Auto Prefix:no
Proxy Fallback Intvl:3600
Proxy Redundancy Method: normal




Subscriber Information 
Display Name: <first_name>
User ID: <sip_id>
Password: ***********************
Use Auth ID:yes
Auth ID: <custom_domain>
Mini Certificate: 
SRTP Private Key:  



Audio Configuration
 Preferred Codec:  G711u
Use Pref Codec Only: no
Second Preferred Codec: unspecified
Third Preferred Codec: unspecified
G729a Enable: yes
G723 Enable: yes
G726-16 Enable: yes
G726-24 Enable: yes
G726-32 Enable:G726-40 Enable: yes
Release Unused Codec:yes
DTMF Process AVT: yes

Silence Supp Enable:no

DTMF Tx Method: auto


Dial Plan 
Dial Plan:  (*xx|[3469]11|0|00|[2-9]xxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
Caller ID Map: 
Enable IP Dialing: yes
Emergency Number:

我认为这是正确的。我还没有完全解决所有问题,但这似乎是正确的。变量:

custom_domain:   this is where you have sip_id@custom_domain.onsip.com
first_name:      I think this is just for display...?
sip_id:          for sip_id@custom_domain.onsip.com

答案3

我试过了特尼克斯并设置 Asterisk 进行外拨呼叫,效果很好。不知出于什么原因,onsip 使用的配置工具就是不起作用。

我所做的只是确认手机物理上可以正常工作,并且网络没有问题。手机上有很多设置,我并不希望对它们进行乱七八糟的操作。

通过 Asterisk 从 CLI 拨号:

mordor*CLI> 
mordor*CLI> channel originate SIP/thufir extension 18889809750@outgoing
  == Using SIP RTP CoS mark 5
    -- Called thufir
    -- SIP/thufir-0000003a is ringing
    -- SIP/thufir-0000003a answered
    -- Executing [18889809750@outgoing:1] NoOp("SIP/thufir-0000003a", "") in new stack
    -- Executing [18889809750@outgoing:2] Log("SIP/thufir-0000003a", "NOTICE, Dialing out from "" <> to 8889809750 through SIP/TELNYX") in new stack
[Jul  3 01:11:07] NOTICE[5698][C-0000002a]: Ext. 18889809750:2 @ outgoing:  Dialing out from "" <> to 8889809750 through SIP/TELNYX
    -- Executing [18889809750@outgoing:3] Dial("SIP/thufir-0000003a", "SIP/TELNYX/8889809750,60") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/TELNYX/8889809750
       > 0x7f25a0053600 -- Probation passed - setting RTP source address to 192.168.1.5:16406
    -- SIP/TELNYX-0000003b is ringing
    -- SIP/TELNYX-0000003b answered SIP/thufir-0000003a
    -- Channel SIP/thufir-0000003a joined 'simple_bridge' basic-bridge <d5b17c07-f8df-4754-bc7f-447b26b71234>
    -- Channel SIP/TELNYX-0000003b joined 'simple_bridge' basic-bridge <d5b17c07-f8df-4754-bc7f-447b26b71234>
       > Bridge d5b17c07-f8df-4754-bc7f-447b26b71234: switching from simple_bridge technology to native_rtp
       > 0x7f2590009e80 -- Probation passed - setting RTP source address to 64.16.240.36:21662
    -- Channel SIP/thufir-0000003a left 'native_rtp' basic-bridge <d5b17c07-f8df-4754-bc7f-447b26b71234>
    -- Channel SIP/TELNYX-0000003b left 'native_rtp' basic-bridge <d5b17c07-f8df-4754-bc7f-447b26b71234>
  == Spawn extension (outgoing, 18889809750, 3) exited non-zero on 'SIP/thufir-0000003a'
mordor*CLI> 

从硬电话拨号:

mordor*CLI> 
  == Using SIP RTP CoS mark 5
    -- Executing [18888980975@myphones:1] NoOp("SIP/thufir-0000003c", "") in new stack
    -- Executing [18888980975@myphones:2] Log("SIP/thufir-0000003c", "NOTICE, Dialing out from "thufir" <thufir> to 8888980975 through SIP/TELNYX") in new stack
[Jul  3 01:11:41] NOTICE[5702][C-0000002b]: Ext. 18888980975:2 @ myphones:  Dialing out from "thufir" <thufir> to 8888980975 through SIP/TELNYX
    -- Executing [18888980975@myphones:3] Dial("SIP/thufir-0000003c", "SIP/TELNYX/8888980975,60") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/TELNYX/8888980975
    -- SIP/TELNYX-0000003d is ringing
    -- SIP/TELNYX-0000003d is making progress passing it to SIP/thufir-0000003c
    -- SIP/TELNYX-0000003d answered SIP/thufir-0000003c
    -- Channel SIP/thufir-0000003c joined 'simple_bridge' basic-bridge <b113ae45-d191-4b8a-99fa-6f1aeba4a8dc>
    -- Channel SIP/TELNYX-0000003d joined 'simple_bridge' basic-bridge <b113ae45-d191-4b8a-99fa-6f1aeba4a8dc>
       > Bridge b113ae45-d191-4b8a-99fa-6f1aeba4a8dc: switching from simple_bridge technology to native_rtp
       > 0x7f25d000cbe0 -- Probation passed - setting RTP source address to 192.168.1.5:16408
       > 0x7f25fc0055f0 -- Probation passed - setting RTP source address to 64.16.240.36:24202
    -- Channel SIP/thufir-0000003c left 'native_rtp' basic-bridge <b113ae45-d191-4b8a-99fa-6f1aeba4a8dc>
    -- Channel SIP/TELNYX-0000003d left 'native_rtp' basic-bridge <b113ae45-d191-4b8a-99fa-6f1aeba4a8dc>
  == Spawn extension (myphones, 18888980975, 3) exited non-zero on 'SIP/thufir-0000003c'
mordor*CLI> 
mordor*CLI> sip show peers
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description                      
TELNYX/TELNYX             192.76.120.10                               Yes        Yes            5060     OK (105 ms)                                  
demo_alice                (Unspecified)                            D  Yes        Yes            0        UNKNOWN                                      
demo_bob                  (Unspecified)                            D  Yes        Yes            0        UNKNOWN                                      
hawat/hawat               (Unspecified)                            D  Yes        Yes            0        UNKNOWN                                      
thufir/thufir             192.168.1.5                              D  Yes        Yes            5062     OK (9 ms)                                    
5 sip peers [Monitored: 2 online, 3 offline Unmonitored: 0 online, 0 offline]
mordor*CLI> 
mordor*CLI> dialplan show 
__func_periodic_hook_context__  ael-builtin-h-bubble            ael-default                     ael-demo                        
ael-dundi-e164                  ael-dundi-e164-canonical        ael-dundi-e164-customers        ael-dundi-e164-local            
ael-dundi-e164-lookup           ael-dundi-e164-switch           ael-dundi-e164-via-pstn         ael-iaxprovider                 
ael-iaxtel700                   ael-international               ael-local                       ael-longdistance                
ael-std-exten-ael               ael-trunkint                    ael-trunkld                     ael-trunklocal                  
ael-trunktollfree               chanvar                         default                         demo                            
globals                         local                           outgoing                        parkedcalls                     
public                          myphones                        
mordor*CLI> 
mordor*CLI> dialplan show globals
   TOLL=SIP/TELNYX
   OUTBOUND-TRUNKMSD=1
   OUTBOUND-TRUNK="Zap/g2"
   IAXINFO-AEL=guest
   CONSOLE-AEL="Console/dsp"

    -- 5 variable(s)
mordor*CLI> 
mordor*CLI> dialplan show myphones
[ Context 'myphones' created by 'pbx_config' ]
  '1000' =>         1. Dial(SIP/1000)                             [pbx_config]
                    2. Hangup()                                   [pbx_config]
  '1001' =>         1. Dial(SIP/1001)                             [pbx_config]
                    2. Hangup()                                   [pbx_config]
  '201' =>          1. Answer()                                   [pbx_config]
                    2. Playback(tt-monty-knights)                 [pbx_config]
                    3. Hangup()                                   [pbx_config]
  '202' =>          1. Answer()                                   [pbx_config]
                    2. Playback(welcome)                          [pbx_config]
                    3. Playback(demo-echotest)                    [pbx_config]
                    4. Echo()                                     [pbx_config]
                    5. Playback(demo-echodone)                    [pbx_config]
                    6. Playback(vm-goodbye)                       [pbx_config]
                    7. Hangup()                                   [pbx_config]
  '4000' =>         1. Playback(tt-monkeys)                       [pbx_config]
  '5000' =>         1. Playback(tt-monkeysintro)                  [pbx_config]
  '555' =>          1. Playback(hello-world)                      [pbx_config]
                    2. Playback(echo-test)                        [pbx_config]
                    3. Echo()                                     [pbx_config]
                    4. Playback(demo-echodone)                    [pbx_config]
  '6001' =>         1. Dial(SIP/demo_alice,20)                    [pbx_config]
  '6002' =>         1. Dial(SIP/demo_bob,20)                      [pbx_config]
  '6003' =>         1. Dial(SIP/thufir,20)                        [pbx_config]
  '6004' =>         1. Dial(SIP/hawat,20)                         [pbx_config]
  Include =>        'outgoing'                                    [pbx_config]

-= 11 extensions (24 priorities) in 1 context. =-
mordor*CLI> 
mordor*CLI> dialplan show outgoing
[ Context 'outgoing' created by 'pbx_config' ]
  '_1NXXNXXXXXX' => 1. NoOp()                                     [pbx_config]
                    2. Log(NOTICE, Dialing out from ${CALLERID(all)} to ${EXTEN:1} through ${TOLL}) [pbx_config]
                    3. Dial(${TOLL}/${EXTEN:1},60)                [pbx_config]
                    4. Playtones(congestion)                      [pbx_config]
                    5. Hangup()                                   [pbx_config]

-= 1 extension (5 priorities) in 1 context. =-
mordor*CLI> 

相关内容