asterisk/asterisk.patch.proxymwi

Sat, 03 Oct 2009 16:18:52 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Oct 2009 16:18:52 +0200
changeset 220
a6cd892638c1
permissions
-rw-r--r--

Update version, adjust corresponding buildconf, and correct logic.
1: Make minor corrections and improvements to scripts patch logic.
2: Upgrade to most recent stable release version 3.0.2.
3: Force selection of a single db backend, as multiple ones never
were supported (changing 'with_db<end>' identifiers accordingly.)
4: Unfortunately add gawk requirement although only partly needed.
5: Add openssl::with_threads requirement to solve strange and hard
to debug problems on Solaris leading to connection failures:

'host-dir JobId 0: Error: openssl.c:86 Connect failure: ERR=error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number'

and

'host-dir JobId 40: Fatal error: TLS negotiation failed with FD at "back1.host.com:9102"'

michael@202 1 Index: channels/chan_sip.c
michael@202 2 diff -Nau channels/chan_sip.c.orig channels/chan_sip.c
michael@202 3 --- channels/chan_sip.c.orig 2009-04-24 00:51:58.000000000 +0200
michael@202 4 +++ channels/chan_sip.c 2009-04-24 00:52:33.000000000 +0200
michael@202 5 @@ -16428,6 +16428,7 @@
michael@202 6 /* Called with peerl lock, but releases it */
michael@202 7 struct sip_pvt *p;
michael@202 8 int newmsgs, oldmsgs;
michael@202 9 + char *s = NULL;
michael@202 10
michael@202 11 /* Do we have an IP address? If not, skip this peer */
michael@202 12 if (!peer->addr.sin_addr.s_addr && !peer->defaddr.sin_addr.s_addr)
michael@202 13 @@ -16461,6 +16462,11 @@
michael@202 14 /* Recalculate our side, and recalculate Call ID */
michael@202 15 if (ast_sip_ouraddrfor(&p->sa.sin_addr, &p->ourip))
michael@202 16 p->ourip = __ourip;
michael@202 17 + /* Set the username = mailbox and remove the context */
michael@202 18 + ast_string_field_build(p, username, "%s", peer->name);
michael@202 19 + s = strchr(p->username, '@');
michael@202 20 + if (s != NULL)
michael@202 21 + *s = 0;
michael@202 22 build_via(p);
michael@202 23 build_callid_pvt(p);
michael@202 24 /* Destroy this session after 32 secs */

mercurial