Board logo

標題: trouble shooting asterisk 1.8 [打印本頁]

作者: ttmuskie    時間: 2011-10-16 18:22     標題: trouble shooting asterisk 1.8

I've just installed asterisk on ubuntu 10.04:
  1. Asterisk 1.8.7.0-1digium1~lucid, Copyright (C) 1999 - 2011 Digium, Inc. and others.
複製代碼
But can't get register by using a simple setup:
sip.conf
  1. [general]

  2. [5010]
  3. type=friend
  4. nat=yes
  5. username=5010
  6. secret=123456
  7. host=dynamic
  8. context=default

  9. [5020]
  10. type=friend
  11. nat=yes
  12. username=5020
  13. secret=123456
  14. host=dynamic
  15. context=default
複製代碼
extensions.conf
  1. [default]
  2. exten => 5010,1,Dial(SIP/5010)
  3. exten => 5020,1,Dial(SIP/5020)
複製代碼
And I restarted the asterisk service by using:
  1. sudo /etc/init.d/asterisk restart
複製代碼
Do I need something else? Thanks.
作者: 角色    時間: 2011-10-16 18:27

回復 1# ttmuskie

1. You enter the cli command mode using the following command
  1. asterisk -rvvvv
複製代碼
2. Use the command "sip show peers" to check the status

3. Do you have any firewall between server and the client? What are you SIP Client? ATA or softphone?

YH
作者: ttmuskie    時間: 2011-10-16 18:47

YH,

Thanks for the prompt response.

1.
  1. == Parsing '/etc/asterisk/asterisk.conf':   == Found
  2.   == Parsing '/etc/asterisk/extconfig.conf':   == Found
複製代碼
2.
  1. Name/username              Host                                    Dyn Forcerport ACL Port     Status     
  2. 5010/5010                  (Unspecified)                            D   N      0        Unmonitored
  3. 5020/5020                  (Unspecified)                            D   N      0        Unmonitored
  4. 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]
複製代碼
3. Softphone - Ekiga (within the same lan)
作者: 角色    時間: 2011-10-16 18:59

Your softphones have not got registered yet. You may consider to use other SIP client for instance zoiper classic.

YH
作者: ttmuskie    時間: 2011-10-16 19:15

本帖最後由 ttmuskie 於 2011-10-16 19:33 編輯

Still don't have any joy:


作者: 角色    時間: 2011-10-16 19:26

I am sorry that I am not able to see your image. Have seen my first tutorial / workshop?

YH
作者: ckleea    時間: 2011-10-17 07:38

回復 5# ttmuskie

You should be able to registered. Your settings seem ok.

In zoiper, once you press Apply, you can see the registration message in the asterisk cli.
作者: ttmuskie    時間: 2011-10-17 13:27

YH and ckeea,

Somehow, it suddenly work this morning.

Btw, I'll try to add the GV over there and believe more questions will arise. Thanks!
作者: ckleea    時間: 2011-10-17 13:52

回復 8# ttmuskie


Sometimes, it may be network or cache problem. You may reboot the server to see in the future.

GV has problem in the last few days if dial from asterisk-gtalk channel. However, Obi is ok




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2