]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
For those very verbose SIP implementations that attach tons of info to the Contact...
authorJoshua Colp <jcolp@digium.com>
Fri, 13 Apr 2007 17:19:53 +0000 (17:19 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 13 Apr 2007 17:19:53 +0000 (17:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61648 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d94f4886d8ab85b10d99ff86c3850bca83425dd7..6a816962a83b702c83fbeac3ab91257cc7aba6eb 100644 (file)
@@ -5610,7 +5610,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 */
                }
@@ -6533,7 +6533,7 @@ static int transmit_reinvite_with_t38_sdp(struct sip_pvt *p)
 /*! \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));
@@ -7665,7 +7665,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 */
@@ -11578,7 +11578,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;