diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-22 14:56:26 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-22 14:56:26 +0000 |
commit | be16d00e5220459a390e8360f137755dba74752d (patch) | |
tree | 4b11c645cd860d354fa1d6df28d026af0d0a0879 | |
parent | a07d87ed112c91173ee1b1202fab232d4da7719a (diff) |
update sip subscription debug message to a warning message
If the Expire header of a SUBSCRIBE is less that our expiremin,
a log warning will be displayed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@278619 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index af8745ef9..0bb691c2b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23160,9 +23160,11 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, if (p->expiry > max_expiry) { p->expiry = max_expiry; } else if (p->expiry < min_expiry && p->expiry > 0) { - p->expiry = min_expiry; transmit_response_with_minexpires(p, "423 Interval too small", req); - ast_debug(2, "Received SIP subscribe with Expire header less that our minexpires limit.\n"); + ast_log(LOG_WARNING, "Received subscription for extension \"%s\" context \"%s\" " + "with Expire header less that 'minexpire' limit. Received \"Expire: %d\" min is %d\n", + p->exten, p->context, p->expiry, min_expiry); + p->expiry = min_expiry; pvt_set_needdestroy(p, "Expires is less that the min expires allowed. "); return 0; } |