asterisk/asterisk.patch.proxymwi

changeset 347
10bd406e1c51
parent 311
263143ec0fb2
child 404
b6420eee9bde
equal deleted inserted replaced
1:cdec4fe3f601 2:d6e8be035401
1 Index: channels/chan_sip.c 1 Index: channels/chan_sip.c
2 diff -Nau channels/chan_sip.c.orig 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 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 4 +++ channels/chan_sip.c 2011-03-13 14:34:29.000000000 +0100
5 @@ -24267,6 +24267,7 @@ 5 @@ -24506,6 +24506,7 @@
6 /* Called with peerl lock, but releases it */ 6 /* Called with peerl lock, but releases it */
7 struct sip_pvt *p; 7 struct sip_pvt *p;
8 int newmsgs = 0, oldmsgs = 0; 8 int newmsgs = 0, oldmsgs = 0;
9 + char *s = NULL; 9 + char *s = NULL;
10 10
11 if (ast_test_flag((&peer->flags[1]), SIP_PAGE2_SUBSCRIBEMWIONLY) && !peer->mwipvt) 11 if (ast_test_flag((&peer->flags[1]), SIP_PAGE2_SUBSCRIBEMWIONLY) && !peer->mwipvt)
12 return 0; 12 return 0;
13 @@ -24307,6 +24308,11 @@ 13 @@ -24546,6 +24547,11 @@
14 } 14 }
15 /* Recalculate our side, and recalculate Call ID */ 15 /* Recalculate our side, and recalculate Call ID */
16 ast_sip_ouraddrfor(&p->sa, &p->ourip, p); 16 ast_sip_ouraddrfor(&p->sa, &p->ourip, p);
17 + /* Set the username = mailbox and remove the context */ 17 + /* Set the username = mailbox and remove the context */
18 + ast_string_field_build(p, username, "%s", peer->name); 18 + ast_string_field_build(p, username, "%s", peer->name);

mercurial