diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-26 22:00:07 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-26 22:00:07 +0000 |
commit | 80e155db51960507dce1fd0ca82086dbafc25c43 (patch) | |
tree | 4bb4245aca27935c550f60eac6c4375be6222955 /channels | |
parent | 6a2e01de68c455b9f3d25708edc02ba93b6ae08a (diff) |
Have a contact line in responses, merge logging patches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1799 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0e8f66ced..bfbe4e329 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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); |