返回列表 發帖
我的Asterisk是1.8.3.2,需要打个补丁才能让ET263注册成功,别的VSP没有问题。

TOP

回復 13# Qnewbie

It's my patch.

I create it based on 1.8.2.3, and I can register to ET263 again with it.

--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -23607,10 +23607,10 @@
                /* RFC 3261 - 8.1.3.3 If more than one Via header field value is present in a reponse
                 * the UAC SHOULD discard the message. This is not perfect, as it will not catch multiple
                 * headers joined with a comma. Fixing that would pretty much involve writing a new parser */
-                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;
-                }
+//                 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;
+//                 }
                if (p->ocseq && (p->ocseq < seqno)) {
                        ast_debug(1, "Ignoring out of order response %d (expecting %d)\n", seqno, p->ocseq);
                        return -1;

TOP

回復  bradyzhu


    Thanks!

One more thing, I am wondering if you can dial out/in with ET263 afte ...
Qnewbie 發表於 2011-5-17 22:54


After patch, I can dial out through ET263. I do not need the incoming from ET263.

My code base is 1.8.2.3, and my patch is based on it. I do not know about the 1.4.x.

The old version asterisk is deleted from OpenWRT during introducing the 1.8.

TOP

返回列表