返回列表 發帖

【角色茶桌】—— Asterisk 1.8 Workshop 1 :Create two sip accounts and make call to each other (证实可用)

本帖最後由 角色 於 2011-9-24 20:37 編輯

在以前能再Asterisk 1.4没有问题的,在Asterisk就有些不同。

1)sip.conf 是空的。

2)在users.conf
  1. [2000]
  2. typp=friend
  3. secret=2000
  4. hassip = yes
  5. qualify=yes
  6. nat=no
  7. host=dynamic
  8. canreinvit=no
  9. context=internal

  10. [2001]
  11. typp=friend
  12. secret=2001
  13. hassip = yes
  14. qualify=yes
  15. nat=no
  16. host=dynamic
  17. canreinvit=no
  18. context=internal
複製代碼
3)extensions.conf contains
  1. [internal]
  2. exten => 2000,1,Dial(SIP/2000,,r)
  3. exten => 2001,1,Dial(SIP/2001,,r)
複製代碼
终于搞定,就是SIP Clients问题,如果internal communication,要用hardware ATAs来坐测试为准。

至于software,用于remote ATA。

还有NAT=no,或者NAT=yes,如果是用hardware ATA,应该可以互通。


角色

本帖最後由 角色 於 2011-9-24 18:07 編輯

用iPad2注册账号2000,可以注册,但是拨打2000不成功。

个log设么都没有。如果把users.conf的内容放在sip.conf, 那么连注册也出问题。看来Asterisk 1.8与Asterisk 1.4真的不一样。


角色

TOP

What do you mean? I am a newbie of Asterisk 1.8.

YH

TOP

本帖最後由 角色 於 2011-9-24 19:10 編輯

终于可以打到,但是没有声音。
  1. [2000]
  2. typp=friend
  3. secret=2000
  4. hassip=yes
  5. qualify=yes
  6. nat=yes
  7. host=dynamic
  8. canreinvit=no
  9. context=internal

  10. [2001]
  11. typp=friend
  12. secret=2001
  13. hassip=yes
  14. qualify=yes
  15. nat=yes
  16. host=dynamic
  17. canreinvit=no
  18. context=internal
複製代碼
问题是NAT,问题。



角色

TOP

怎样试都不行,估计还有别的settings才能成功。

角色

TOP

Already fixed and the answer is shown in the first post of this thread.

YH

TOP

我是用users.conf和extensions.conf,但是bubblestar说,它是用sip.conf和extensions.conf就可以。但是我是先把sip.conf, users.conf, sip_notify.conf, extensions.conf, extensions.ael拷贝和清空,然后自己再一个字一个字打上去。

不知道大家的情况是跟我,还是跟buublestar一样呢?

角色

TOP

都是不行,看来我可能有些settings不对。

bubblestar兄是否能提供一些examples呢?

角色

TOP

I do not know the reason neither.

bubblestar said he can just use sip.conf to make it work but I cannot. I have to use users.conf otherwise NO extension is registered.

YH

TOP

After having tried many combinations, finally I got the simplest form in sip.conf in order to get one extension registered as follows:

sip.conf
  1. [2000]
  2. type = friend
  3. secret=2000
  4. qualify=yes
  5. host=dynamic
  6. context=internal
複製代碼

TOP

When I have time, I shall add more switches on it.

YH

TOP

There is another example to demonstrate the use of the sip.conf to set up the Asterisk server as follows:
  1. [2000]
  2. type = friend
  3. secret=2000
  4. nat=yes
  5. qualify=yes
  6. host=dynamic
  7. context=internal

  8. [2001]
  9. type = friend
  10. secret=2001
  11. nat=yes
  12. qualify=yes
  13. host=dynamic
  14. context=internal
複製代碼
Please note the parameter "nat", if nat=no, Zoiper is not got registrated; and if nat=yes, Zoiper is got registrated. Siemens DECT IP Phone can register regardless of the settings of the parameter "nat".

Therefore, it is better to set the parameter "nat=yes" would be better.

YH

TOP

I know the reason that I am not able to get registration. There is a type for the type, I typed it as typp rather the correct one type.

Once the word "typp" is replaced by "type", everything are working fine.

YH

TOP

Maybe.

YH

TOP

Yeah!

角色

TOP

返回列表