返回列表 發帖

【角色茶桌】——ET263 在Asterisk 1.4, 1.6, 1.8, 11 注册问题(too many vias)(Solved)

本帖最後由 角色 於 2012-11-3 13:14 編輯

最近安装了Asterisk 1.8,发现1.8与1.4有一些不一样,现在用ET263,打出是没有问题,但是打入呢?有问题

在sip.conf,加了下面这一句,在cli就出现很多errors
  1. [Oct 15 09:45:44] WARNING[3247]: chan_sip.c:24433 handle_incoming: Misrouted SIP response '401 Unauthorized' with Call-ID '05d212624f8017f1114dde8441d6ebdc@xxx.homeftp.org', too many vias
複製代碼
解决办法在 #23

最近在QNAP compile Asterisk 1.4.42,ET263都有register问题。

角色

TOP

由于没有时间,所以不能把问题解决好。

角色

TOP

你不知道,如果你没有亲友在海外,不知道要与大陆沟通的情况。

经过我们多年的观测,利用ET263做桥梁,香港与大陆的VoIP最好是用ET263,效果比较好和清晰。

角色

TOP

回復 9# lookforyou

还没有!

角色

TOP

回復 15# ttmuskie

my sip.conf is
  1. [et263]
  2. type=friend
  3. username=588123456
  4. secret=ET_password
  5. host=sip.etelephone.cn
  6. fromuser=588123456
  7. fromdomain=net263.com
  8. port=10002
  9. dtmfmode=auto
  10. canreinvite=no
  11. insecure=port,invite
  12. context=from-et263
複製代碼
角色

TOP

本帖最後由 角色 於 2012-11-3 11:06 編輯

不知道alang是否有解药呢?

你的Google社区里看到成功例子,但是没有说出方法:

https://plus.google.com/110161139630281378550/posts/TKaJRrmyqGb

https://plus.google.com/photos/1 ... 5786098730664640946

TOP

不知道是否与最新的SIP RFC有bug有关?

RFC 3261            SIP: Session Initiation Protocol           June 2002


8.1.3.3 Vias

   If more than one Via header field value is present in a response, the
   UAC SHOULD discard the message.

      The presence of additional Via header field values that precede
      the originator of the request suggests that the message was
      misrouted or possibly corrupted.

TOP

本帖最後由 角色 於 2012-11-3 12:05 編輯

如果之前的CHings都有谈及过!

http://www.telecom-cafe.com/foru ... =2963&pid=15611

http://www.telecom-cafe.com/forum/archiver/?tid-2963-page-22.html

TOP

就是在/opt/source/asterisk/asterisk-1.8.17.0/channels的chan_sip.c
把这句:
  1.                 if (!ast_strlen_zero(__get_header(req, "via", &via_pos))) {
  2.                         ast_log(LOG_WARNING, "Misrouted SIP response '%s' with Call-ID '%s', too many vias\n", e, callid);
  3.                         return 0;
  4.                 }
複製代碼
变成:
  1.                 /* if (!ast_strlen_zero(__get_header(req, "via", &via_pos))) {
  2.                         ast_log(LOG_WARNING, "Misrouted SIP response '%s' with Call-ID '%s', too many vias\n", e, callid);
  3.                         return 0;
  4.                 }*/
複製代碼
然后再compile,再make后就搞定。

TOP

本帖最後由 角色 於 2012-11-3 13:13 編輯

结果:

1008.png


1009.png


1010.png

TOP

怎样修改,在我其他帖子能找的,如果找不到,请你告诉我。

TOP

应该不可以,因为我不会怎样把这个问题跟Asterisk说,他们有一套程序要做才能考虑把ET263的问题,修改,然后在config file里面加option来处理。

TOP

回復 26# lookforyou

ET263有两种方式注册,第一种是用10002 port,第二种是用5060 port的。

TOP

返回列表