電訊茶室's Archiver

角色 發表於 2011-10-15 11:36

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

[i=s] 本帖最後由 角色 於 2012-11-3 13:14 編輯 [/i]

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

在sip.conf,加了下面这一句,在cli就出现很多errors[code][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
[/code]解决办法在 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=4110&pid=27706]#23[/url]

角色 發表於 2011-10-16 00:25

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

角色

ckleea 發表於 2011-10-19 06:30

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=19457&ptid=4110]2#[/url] [i]角色[/i] [/b]


    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

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=21836&ptid=4110]9#[/url] [i]lookforyou[/i] [/b]

还没有!

角色

lookforyou 發表於 2012-1-26 11:36

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=21839&ptid=4110]10#[/url] [i]角色[/i] [/b]


    呵呵 ,那我可以休息一段时间再弄这东西了

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

[/code]

角色 發表於 2012-5-29 00:37

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=23447&ptid=4110]15#[/url] [i]ttmuskie[/i] [/b]

my sip.conf is[code][et263]
type=friend
username=588123456
secret=ET_password
host=sip.etelephone.cn
fromuser=588123456
fromdomain=net263.com
port=10002
dtmfmode=auto
canreinvite=no
insecure=port,invite
context=from-et263[/code]角色

ttmuskie 發表於 2012-5-29 10:07

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=23451&ptid=4110]16#[/url] [i]角色[/i] [/b]


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

[i=s] 本帖最後由 角色 於 2012-11-3 11:06 編輯 [/i]

不知道alang是否有解药呢?

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

[url]https://plus.google.com/110161139630281378550/posts/TKaJRrmyqGb[/url]

[url]https://plus.google.com/photos/110161139630281378550/albums/posts/5786098730664640946[/url]

角色 發表於 2012-11-3 11:49

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

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

[i=s] 本帖最後由 角色 於 2012-11-3 12:05 編輯 [/i]

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

[url]http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&ptid=2963&pid=15611[/url]

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

角色 發表於 2012-11-3 12:48

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

角色 發表於 2012-11-3 13:05

[i=s] 本帖最後由 角色 於 2012-11-3 13:13 編輯 [/i]

结果:

[attach]1854[/attach]


[attach]1855[/attach]


[attach]1856[/attach]

alang 發表於 2012-11-3 13:31

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

lookforyou 發表於 2014-7-16 06:51

[i=s] 本帖最後由 lookforyou 於 2014-7-16 06:53 編輯 [/i]

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

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=27707&ptid=4110]24#[/url] [i]角色[/i] [/b]


    修改源代码还不会,呵呵 ,不过有解了真好!

角色 發表於 2014-7-16 08:50

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

lookforyou 發表於 2014-7-16 13:10

[b]回復 [url=http://www.telecom-cafe.com/forum/redirect.php?goto=findpost&pid=38783&ptid=4110]28#[/url] [i]角色[/i] [/b]


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

et263用它标准的5060服务器进出都是正常的

角色 發表於 2014-7-16 13:31

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

頁: [1] 2

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.