asterisk/asterisk.patch.proxymwi

Mon, 01 Sep 2014 21:57:20 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 01 Sep 2014 21:57:20 +0200
changeset 798
4ef5d37e8bb2
parent 552
e568963742d6
permissions
-rw-r--r--

Update to new vendor version and adjust patch logic accordingly.

     1 Index: channels/chan_sip.c
     2 diff -Nau channels/chan_sip.c.orig channels/chan_sip.c
     3 --- channels/chan_sip.c.orig	2011-01-14 18:32:52.000000000 +0100
     4 +++ channels/chan_sip.c	2011-03-13 14:34:29.000000000 +0100
     5 @@ -26449,6 +26449,7 @@
     6  	struct sip_pvt *p;
     7  	int newmsgs = 0, oldmsgs = 0;
     8  	const char *vmexten = NULL;
     9 +	char *s = NULL;
    11  	ao2_lock(peer);
    13 @@ -26510,6 +26511,11 @@
    14  		}
    15  		/* Recalculate our side, and recalculate Call ID */
    16  		ast_sip_ouraddrfor(&p->sa, &p->ourip, p);
    17 +		/* Set the username = mailbox and remove the context */
    18 +		ast_string_field_build(p, username, "%s", peer->name);
    19 +		s = strchr(p->username, '@');
    20 +		if (s != NULL)
    21 +			*s = 0;
    22  		build_via(p);
    24  		ao2_lock(peer);

mercurial