mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Have a contact line in responses, merge logging patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5057,6 +5057,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
||||
ast_queue_frame(p->owner, &af, 0);
|
||||
} else if (sipdebug)
|
||||
ast_verbose("Ignoring this request\n");
|
||||
strncpy(p->our_contact, get_header(req, "Contact"), sizeof(p->our_contact) - 1);
|
||||
if (!p->lastinvite) {
|
||||
/* Handle authentication if this is our first invite */
|
||||
res = check_user(p, req, cmd, e, 1, sin);
|
||||
@@ -5276,6 +5277,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
|
||||
} else if (sipdebug)
|
||||
ast_verbose("Ignoring this request\n");
|
||||
|
||||
strncpy(p->our_contact, get_header(req, "Contact"), sizeof(p->our_contact) - 1);
|
||||
if (!p->lastinvite) {
|
||||
/* Handle authentication if this is our first subscribe */
|
||||
res = check_user(p, req, cmd, e, 0, sin);
|
||||
|
||||
Reference in New Issue
Block a user