summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-04-13 17:21:53 +0000
committerJoshua Colp <jcolp@digium.com>2007-04-13 17:21:53 +0000
commit4f04ff85971f1ca4e069d30e95ea6309bcef6d30 (patch)
tree3e9206f5131f57dae6d9b51d846f879edaae927c
parent710a2e8ea605743af607c3c2a607a3983c462923 (diff)
Merged revisions 61648 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r61648 | file | 2007-04-13 13:19:53 -0400 (Fri, 13 Apr 2007) | 2 lines For those very verbose SIP implementations that attach tons of info to the Contact header... let's increase our variable sizes. (issue #9535 reported by jeffg) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 02ee23995..77f13f6c2 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6016,7 +6016,7 @@ static int respprep(struct sip_request *resp, struct sip_pvt *p, const char *msg
snprintf(tmp, sizeof(tmp), "%d", p->expiry);
add_header(resp, "Expires", tmp);
if (p->expiry) { /* Only add contact if we have an expiry time */
- char contact[256];
+ char contact[BUFSIZ];
snprintf(contact, sizeof(contact), "%s;expires=%d", p->our_contact, p->expiry);
add_header(resp, "Contact", contact); /* Not when we unregister */
}
@@ -7048,7 +7048,7 @@ static int transmit_reinvite_with_sdp(struct sip_pvt *p, int t38version)
/*! \brief Check Contact: URI of SIP message */
static void extract_uri(struct sip_pvt *p, struct sip_request *req)
{
- char stripped[256];
+ char stripped[BUFSIZ];
char *c;
ast_copy_string(stripped, get_header(req, "Contact"), sizeof(stripped));
@@ -8210,7 +8210,7 @@ static void reg_source_db(struct sip_peer *peer)
/*! \brief Save contact header for 200 OK on INVITE */
static int parse_ok_contact(struct sip_pvt *pvt, struct sip_request *req)
{
- char contact[250];
+ char contact[BUFSIZ];
char *c;
/* Look for brackets */
@@ -12240,7 +12240,7 @@ static struct ast_custom_function sipchaninfo_function = {
/*! \brief Parse 302 Moved temporalily response */
static void parse_moved_contact(struct sip_pvt *p, struct sip_request *req)
{
- char tmp[256];
+ char tmp[BUFSIZ];
char *s, *e;
char *domain;