Fix build.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@205880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2009-07-10 17:44:34 +00:00
parent b3c7b4fa2d
commit d2c214e042

View File

@@ -3085,7 +3085,7 @@ static int __sip_autodestruct(const void *data)
append_history(p, "ReliableXmit", "timeout");
if (sscanf(p->lastmsg, "Tx: %s", method_str) == 1 || sscanf(p->lastmsg, "Rx: %s", method_str) == 1) {
if (method_match(SIP_CANCEL, method_str) || method_match(SIP_BYE, method_str)) {
pvt_set_needdestroy(p, "autodestruct");
p->needdestroy = 1;
}
}
return 10000;
@@ -5128,7 +5128,7 @@ static int sip_hangup(struct ast_channel *ast)
/* stop retransmitting an INVITE that has not received a response */
struct sip_pkt *cur;
for (cur = p->packets; cur; cur = cur->next) {
__sip_semi_ack(p, cur->seqno, cur->is_resp, cur->method ? cur->method : find_sip_method(cur->data->str));
__sip_semi_ack(p, cur->seqno, cur->is_resp, cur->method ? cur->method : find_sip_method(cur->data));
}
/* if we can't send right now, mark it pending */