Board logo

標題: 【角色茶桌】——ET263 在Asterisk 1.4, 1.6, 1.8, 11 注册问题(too many vias)(Solved) [打印本頁]

作者: 角色    時間: 2011-10-15 11:36     標題: 【角色茶桌】——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
作者: 角色    時間: 2011-10-16 00:25

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

角色
作者: ckleea    時間: 2011-10-19 06:30

回復 2# 角色


    It may be related to conflicts between both system and your network may cache the information when both have tried to register with ET263
作者: lookforyou    時間: 2011-12-25 14:18

这问题解决了没有,呵呵 ?
作者: 角色    時間: 2011-12-25 21:27

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

角色
作者: lttliang    時間: 2011-12-27 17:03

我一路用开elastix 好似冇这个问题,et263有打入的必要咩?除非有两个以上的et263帐户先用到吧?
作者: 角色    時間: 2011-12-27 17:34

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

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

角色
作者: lookforyou    時間: 2012-1-19 09:54

我的ip01也是这问题,卖家没解决,退掉了
作者: lookforyou    時間: 2012-1-23 20:57

这问题最后解决没有,呵呵
作者: 角色    時間: 2012-1-23 22:09

回復 9# lookforyou

还没有!

角色
作者: lookforyou    時間: 2012-1-26 11:36

回復 10# 角色


    呵呵 ,那我可以休息一段时间再弄这东西了
作者: lookforyou    時間: 2012-2-13 13:45

顶一下,看这问题能不能解决掉!
作者: lttliang    時間: 2012-2-13 23:51

elastix2.03  asterisks为1.6可以正常使用et263打出打入
作者: ttmuskie    時間: 2012-5-28 13:51

I'm now facing the same problem.
作者: ttmuskie    時間: 2012-5-28 17:27

I can't dial out.

sip.conf
  1. [et263]
  2. type=friend
  3. username=512345678
  4. fromuser=512345678
  5. secret=123456
  6. port=10002
  7. host=sip.etelephone.cn
  8. insecure=port,invite
  9. context=from_et263
複製代碼
***cli***
  1. Executing [861059252888@context_nexus:1] Dial("SIP/nexus-00000015", "SIP/et263/01059252888") in new stack
  2.   == Using SIP RTP CoS mark 5
  3.     -- Called SIP/et263/01059252888
  4.     -- Got SIP response 503 "Service Unavailable" back from 211.150.115.14:10002
  5.     -- SIP/et263-00000016 is circuit-busy
  6.   == Everyone is busy/congested at this time (1:0/1/0)
  7.     -- Executing [861059252888@context_nexus:2] Hangup("SIP/nexus-00000015", "") in new stack
複製代碼

作者: 角色    時間: 2012-5-29 00:37

回復 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
複製代碼
角色
作者: ttmuskie    時間: 2012-5-29 10:07

回復 16# 角色


Just tested but no joy.
作者: lookforyou    時間: 2012-5-30 10:04

哈哈,麻烦呢,如果用户不多过5个,通话分钟数不过2000,可以用免费的pbx服务,相当稳定
作者: ttmuskie    時間: 2012-5-30 22:37

咁就失去左玩 asterisk ge 原意 lu.
作者: 角色    時間: 2012-11-3 08:22

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

不知道alang是否有解药呢?

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

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

https://plus.google.com/photos/1 ... 5786098730664640946
作者: 角色    時間: 2012-11-3 11:49

不知道是否与最新的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.
作者: 角色    時間: 2012-11-3 11:57

本帖最後由 角色 於 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
作者: 角色    時間: 2012-11-3 12:48

就是在/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后就搞定。
作者: 角色    時間: 2012-11-3 13:05

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

结果:

1008.png


1009.png


1010.png

圖片附件: 1008.png (2012-11-3 13:05, 64.1 KB) / 下載次數 1056
http://telecom-cafe.com/forum/attachment.php?aid=1854&k=f70e7219446a5857b3b4dbf4561ff3d1&t=1739742507&sid=X0c1K2



圖片附件: 1009.png (2012-11-3 13:09, 24.77 KB) / 下載次數 1061
http://telecom-cafe.com/forum/attachment.php?aid=1855&k=5702c335aa04e797c5a47cfbfa90c2b1&t=1739742507&sid=X0c1K2



圖片附件: 1010.png (2012-11-3 13:13, 45.79 KB) / 下載次數 1056
http://telecom-cafe.com/forum/attachment.php?aid=1856&k=22dcd9006311479eb5375fa4b2985144&t=1739742507&sid=X0c1K2


作者: alang    時間: 2012-11-3 13:31

角色用的方法是正確的,對於其他不同的 Asterisk 版本,如果遇到 ET263 無法註冊,先確認不是網路或帳號的問題,然後開啟 debug mode,找出 CLI 顯示出的關鍵錯誤訊息,然後再去分析相對應的 C 原始碼內容,找出問題之後重新編譯。
作者: lookforyou    時間: 2014-7-16 06:51

本帖最後由 lookforyou 於 2014-7-16 06:53 編輯

username=5xxxxxxxx
type=peer
sendrpid=no
secret=secret
qualify=yes
promiscredir=yes
language=en
insecure=very
host=211.150.71.120
fromuser=5xxxxxxxx
fromdomain=211.150.71.120
dtmfmode=auto
disallow=h263&h263p
context=from-pstn
canreinvite=no

这样设定trunk可以成功,但用sip.etelephone.cn:10002,则始终不成功
作者: lookforyou    時間: 2014-7-16 07:09

回復 24# 角色


    修改源代码还不会,呵呵 ,不过有解了真好!
作者: 角色    時間: 2014-7-16 08:50

怎样修改,在我其他帖子能找的,如果找不到,请你告诉我。
作者: lookforyou    時間: 2014-7-16 13:10

回復 28# 角色


    必须要修改源代码才行吗?能不能直接在trunk设置中修改相应的参数来达到这个目的呢?

et263用它标准的5060服务器进出都是正常的
作者: 角色    時間: 2014-7-16 13:31

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

按此方法也成功了,过来留痕一下
作者: bzfhl    時間: 2015-8-17 12:17

mark 一下
作者: 321    時間: 2016-1-19 12:51

username=5xxxxxxxx
type=peer
sendrpid=no
secret=secret
qualify=yes
promiscredir=yes
language=en
inse ...
lookforyou 發表於 2014-7-16 06:51


這個真的要謝謝你,用了你提供那個host就可以正常用到.免去我重新編譯asterisk的痛苦
作者: 角色    時間: 2016-1-22 21:38

回復 26# lookforyou

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




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