返回列表 發帖

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.

回復 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

TOP

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!

TOP

回復 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.

TOP

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

YH

TOP

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

Still don't have any joy:

TOP

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

YH

TOP

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)

TOP

回復 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

TOP

返回列表