| 就是在/opt/source/asterisk/asterisk-1.8.17.0/channels的chan_sip.c 把这句:
 变成:複製代碼                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;
                }
 
然后再compile,再make后就搞定。複製代碼                /* 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;
                }*/
 
 |