I can confirm this similar crash as well on my system after upgrading to 1.4.19 from <a href="http://1.4.18.1">1.4.18.1</a>. As soon as I dial voicemail, I hear "Password?" then system crashes. I think this crash is currently tracked at <a href="http://bugs.digium.com/view.php?id=12362">http://bugs.digium.com/view.php?id=12362</a><br>
<br>I've reverted back to 1.4.18 but was looking forward to no more "clicks" in the voicemail prompts which was supposed to be fixed in <a href="http://1.4.19.">1.4.19.</a> <br><br><br><div class="gmail_quote">
On Sat, Apr 5, 2008 at 9:46 AM, Germán Aracil Boned <<a href="mailto:german@tecnoxarxa.com">german@tecnoxarxa.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I rewrite this line:<br>
<div class="Ih2E3d"><br>
if (!strcasecmp(var->name, "host")) {<br>
</div> ^^^<br>
<br>
Prior was:<br>
<div class="Ih2E3d"><br>
if (!strcasecmp(tmp->name, "host")) {<br>
</div> ^^^<br>
<br>
And reported "bug": <a href="http://bugs.digium.com/view.php?id=12372" target="_blank">http://bugs.digium.com/view.php?id=12372</a><br>
<br>
thank to all !<br>
<font color="#888888"><br>
Germán Aracil Boned escribió:<br>
</font><div><div></div><div class="Wj3C7c">> Hello<br>
><br>
> This is my problem (1.4.19):<br>
><br>
> Core was generated by `/usr/sbin/asterisk -f -p -g -c'.<br>
> Program terminated with signal 11, Segmentation fault.<br>
> #0 0xb7653a80 in realtime_peer (newpeername=0xbfede360 "Tecnoxarxa0",<br>
> sin=0x0) at chan_sip.c:2547<br>
><br>
> warning: Source file is more recent than executable.<br>
> 2547 if (!(hp =<br>
> ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr,<br>
> &sin->sin_addr, sizeof(hp->h_addr)))) {<br>
> (gdb) bt<br>
> #0 0xb7653a80 in realtime_peer (newpeername=0xbfede360 "Tecnoxarxa0",<br>
> sin=0x0) at chan_sip.c:2547<br>
> #1 0xb7654585 in find_peer (peer=0xbfede360 "Tecnoxarxa0", sin=0x0,<br>
> realtime=1) at chan_sip.c:2676<br>
> #2 0xb76967ad in sip_devicestate (data=0xbfede804) at chan_sip.c:15896<br>
> #3 0x080a0a5a in ast_device_state (device=0xbfede894 "SIP/Tecnoxarxa0")<br>
> at devicestate.c:170<br>
> #4 0x080d4aa1 in ast_extension_state2 (e=0x84bd618) at pbx.c:1931<br>
> #5 0x080d5519 in ast_add_hint (e=0x84bd618) at pbx.c:2209<br>
> #6 0x080dc4eb in ast_add_extension2 (con=0x84bd3d0, replace=0,<br>
> extension=0xbfedfa14 "200", priority=-1, label=0x0, callerid=0x0,<br>
> application=0x841cb69 "SIP/Tecnoxarxa0", data=0x841cbf0,<br>
> datad=0xb71c0398 <ast_free>,<br>
> registrar=0xb71c8363 "pbx_config") at pbx.c:4869<br>
> #7 0xb71c75af in pbx_load_config (config_file=0xb71c8353<br>
> "extensions.conf") at pbx_config.c:2306<br>
> #8 0xb71c811f in pbx_load_module () at pbx_config.c:2453<br>
> #9 0xb71c81a6 in load_module () at pbx_config.c:2470<br>
> #10 0x080bfd2d in load_resource (resource_name=0x81bdef8<br>
> "pbx_config.so", global_symbols_only=0) at loader.c:680<br>
> #11 0x080c05d3 in load_modules (preload_only=0) at loader.c:874<br>
> #12 0x08072fc1 in main (argc=5, argv=0xbfee0444) at asterisk.c:2965<br>
> #13 0xb7df8ea8 in __libc_start_main () from /lib/tls/libc.so.6<br>
> #14 0x08057d51 in ?? () at ../sysdeps/i386/elf/start.S:119<br>
><br>
><br>
> This is a <a href="http://1.4.18.1" target="_blank">1.4.18.1</a> version for this funcion working perfectly:<br>
><br>
> static struct sip_peer *realtime_peer(const char *newpeername, struct<br>
> sockaddr_in *sin)<br>
><br>
> ....<br>
><br>
> if (var) {<br>
> for (tmp = var; tmp; tmp = tmp->next) {<br>
> if (!strcasecmp(var->name, "host")) {<br>
> struct in_addr sin2;<br>
> struct ast_dnsmgr_entry *dnsmgr = NULL;<br>
> memset(&sin2, 0, sizeof(sin2));<br>
> if ((ast_dnsmgr_lookup(tmp->value, &sin2,<br>
> &dnsmgr) < 0) || (memcmp(&sin2, &sin->sin_addr, sizeof(sin2)) != 0)) {<br>
> /* No match */<br>
> ast_variables_destroy(var);<br>
> var = NULL;<br>
> }<br>
> break;<br>
> }<br>
> }<br>
> }<br>
><br>
> ....<br>
><br>
> And this is a 1.4.19 version extract:<br>
><br>
> static struct sip_peer *realtime_peer(const char *newpeername, struct<br>
> sockaddr_in *sin)<br>
><br>
> ....<br>
><br>
> if (var) {<br>
> for (tmp = var; tmp; tmp = tmp->next) {<br>
> if (!strcasecmp(tmp->name, "host")) {<br>
> struct hostent *hp;<br>
> struct ast_hostent ahp;<br>
> if (!(hp = ast_gethostbyname(tmp->value, &ahp))<br>
> || (memcmp(&hp->h_addr, &sin->sin_addr, sizeof(hp->h_addr)))) {<br>
> /* No match */<br>
> ast_variables_destroy(var);<br>
> var = NULL;<br>
> }<br>
> break;<br>
> }<br>
> }<br>
> }<br>
><br>
> ....<br>
><br>
> I think the problem is this new line:<br>
><br>
> if (!(hp = ast_gethostbyname(tmp->value, &ahp)) || (memcmp(&hp->h_addr,<br>
> &sin->sin_addr, sizeof(hp->h_addr))))<br>
><br>
> This is a bug ? What is the best solution ?<br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
><br>
> asterisk-dev mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
><br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br>