diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-17 12:47:08 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-17 12:47:08 +0000 |
commit | a358ba3eccb1c3b5b546255734f847cd20cc5bb1 (patch) | |
tree | e01859566a645b4ca623885ea9cecd8de95dc2cd /channels/chan_sip.c | |
parent | 0edbe0f64ffcc0855ab3722441cb016e4b0c4ac7 (diff) |
define a mask SIP_INSECURE sam as for other sets of flags.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48543 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f972a5c51..69fc87920 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3437,6 +3437,7 @@ static int sip_hangup(struct ast_channel *ast) else if (p->invitestate != INV_CALLING) sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT); +ast_verbose("chan_sip1 sip_hangup flags invitestate %d 0x%x data <%s>\n", p->invitestate, p->flags[0].flags, p->initreq.data); /* Start the process if it's not already started */ if (!ast_test_flag(&p->flags[0], SIP_ALREADYGONE) && !ast_strlen_zero(p->initreq.data)) { if (needcancel) { /* Outgoing call, not up */ @@ -3502,6 +3503,7 @@ static int sip_hangup(struct ast_channel *ast) } if (needdestroy) ast_set_flag(&p->flags[0], SIP_NEEDDESTROY); +ast_verbose("chan_sip1 sip_hangup flags now 0x%x\n", p->flags[0].flags); sip_pvt_unlock(p); return 0; } @@ -7508,6 +7510,7 @@ static int transmit_request(struct sip_pvt *p, int sipmethod, int seqno, enum xm { struct sip_request resp; +ast_verbose("transmit_request %s\n", sip_methods[sipmethod].text); if (sipmethod == SIP_ACK) p->invitestate = INV_CONFIRMED; @@ -14656,6 +14659,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc p->method = req->method; /* Find out which SIP method they are using */ if (option_debug > 3) ast_log(LOG_DEBUG, "**** Received %s (%d) - Command in SIP %s\n", sip_methods[p->method].text, sip_methods[p->method].id, cmd); + ast_verbose("**** Received %s (%d) - Command in SIP %s\n", sip_methods[p->method].text, sip_methods[p->method].id, cmd); if (p->icseq && (p->icseq > seqno)) { if (option_debug) @@ -14751,6 +14755,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc case SIP_ACK: /* Make sure we don't ignore this */ if (seqno == p->pendinginvite) { +ast_verbose("setting state to INV_CONFIRMED\n"); p->invitestate = INV_CONFIRMED; p->pendinginvite = 0; __sip_ack(p, seqno, FLAG_RESPONSE, 0); |