Sat, 06 Oct 2012 16:24:01 +0200
Update to new vendor software version and adjust patch code accordingly.
Unfortunately the vendor has apparently failed to properly test this
release which depends on missing object symbols in libsasl2.a(common.o):
undefined reference to `sasl_randcreate'
undefined reference to `sasl_mkchal'
undefined reference to `sasl_utf8verify'
undefined reference to `sasl_rand'
undefined reference to `sasl_churn'
undefined reference to `sasl_encode64'
undefined reference to `sasl_decode64'
undefined reference to `sasl_erasebuffer'
undefined reference to `sasl_randfree'
undefined reference to `sasl_strlower'
undefined reference to `get_fqhostname'
...yet to be patched.
michael@311 | 1 | Index: channels/chan_sip.c |
michael@311 | 2 | diff -Nau channels/chan_sip.c.orig channels/chan_sip.c |
michael@311 | 3 | --- channels/chan_sip.c.orig 2011-01-14 18:32:52.000000000 +0100 |
michael@311 | 4 | +++ channels/chan_sip.c 2011-03-13 14:34:29.000000000 +0100 |
michael@552 | 5 | @@ -25791,6 +25791,7 @@ |
michael@311 | 6 | struct sip_pvt *p; |
michael@311 | 7 | int newmsgs = 0, oldmsgs = 0; |
michael@404 | 8 | const char *vmexten = NULL; |
michael@311 | 9 | + char *s = NULL; |
michael@311 | 10 | |
michael@404 | 11 | ao2_lock(peer); |
michael@404 | 12 | |
michael@552 | 13 | @@ -25852,6 +25853,11 @@ |
michael@311 | 14 | } |
michael@311 | 15 | /* Recalculate our side, and recalculate Call ID */ |
michael@311 | 16 | ast_sip_ouraddrfor(&p->sa, &p->ourip, p); |
michael@311 | 17 | + /* Set the username = mailbox and remove the context */ |
michael@311 | 18 | + ast_string_field_build(p, username, "%s", peer->name); |
michael@311 | 19 | + s = strchr(p->username, '@'); |
michael@311 | 20 | + if (s != NULL) |
michael@311 | 21 | + *s = 0; |
michael@311 | 22 | build_via(p); |
michael@552 | 23 | |
michael@552 | 24 | ao2_lock(peer); |