就是在/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;
- }
-
複製代碼 变成:- /* 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后就搞定。 |