How to add patch to asterisk in switchfin?
Currently, I am trying to add bradyzhu C-hing's patch to ET263. The result is negative Does anyone apply patch successfully to switchfin?
I add the patch code to package/asterisk/asterisk-1.4.patch file before compilation:- @@ -16896,10 +16896,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->initreq.headers) {
- if (option_debug)
- ast_log(LOG_DEBUG, "That's odd... Got a response on a call we don't know about. Cseq %d Cmd %s\n", seqno, cmd);
複製代碼 |