<div>Hi Brett.</div>
<div> </div>
<div>I apologize for a error in my last mail. You would not update to 1.4.3, but you would update to SVN latest stable version 1.4</div>
<div> </div>
<div>Best regards.</div>
<div> </div>
<div>Sergio.<br><br> </div>
<div><span class="gmail_quote">On 11/11/08, <b class="gmail_sendername">Sergio Gutierrez</b> <<a href="mailto:saguti@gmail.com">saguti@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Brett.<br><br>Is it difficult to you update to 1.4.3?<br><br>As I can see comparing the sources, there are some changes which I think fix the crash you are facing.<br>
<br>Regards.<br><br>-- <br>Sergio Gutiérrez
<div><span class="e" id="q_11d8daba095408b4_1"><br><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 5:19 PM, Brett Nemeroff <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Mostly what I expected:
<div>
<div>Core was generated by `opensips -Eddddd'.</div>
<div>Program terminated with signal 11, Segmentation fault.</div>
<div>[New process 7787]</div>
<div>#0 do_srv_lookup (name=0x734e20 "_sip._<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://udp.wholesaleorigination.acc.globalipcom.com/" target="_blank">udp.wholesaleorigination.acc.globalipcom.com</a>", port=0x77b292, dn=0x77b2b8) at resolve.c:810</div>
<div>810<span style="WHITE-SPACE: pre"> </span>else {crt2->next = crt->next;}</div>
<div>(gdb) bt</div>
<div>#0 do_srv_lookup (name=0x734e20 "_sip._<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://udp.wholesaleorigination.acc.globalipcom.com/" target="_blank">udp.wholesaleorigination.acc.globalipcom.com</a>", port=0x77b292, dn=0x77b2b8) at resolve.c:810</div>
<div>#1 0x0000000000455e55 in sip_resolvehost (name=0x7fff3de98e60, port=0x77b292, proto=0x77b294, is_sips=173, dn=0x77b2b8) at resolve.c:1247</div>
<div>#2 0x000000000043da45 in mk_proxy (name=0x7fff3de98e60, port=36288, proto=7787, is_sips=0) at proxy.c:252</div>
<div>#3 0x00007f59350bac67 in add_uac (t=0x7f5931c99e08, request=0x77eb20, uri=0x7fff3de99100, next_hop=0x7fff3de99110, path=<value optimized out>, proxy=0x0) at ut.h:111</div>
<div>#4 0x00007f59350bbed4 in t_forward_nonack (t=0x7f5931c99e08, p_msg=0x0, proxy=0x0) at t_fwd.c:615</div>
<div>#5 0x00007f59350b82b1 in t_relay_to (p_msg=0x77eb20, proxy=0x0, flags=0) at t_funcs.c:252</div>
<div>#6 0x00007f59350c9bfa in w_t_relay (p_msg=0x77eb20, proxy=0x0, flags=0x0) at tm.c:962</div>
<div>#7 0x000000000040f6b7 in do_action (a=0x777568, msg=0x77eb20) at action.c:845</div>
<div>#8 0x000000000040e52a in run_action_list (a=<value optimized out>, msg=0x77eb20) at action.c:138</div>
<div>#9 0x000000000045fa12 in eval_expr (e=0x777638, msg=0x77eb20, val=0x7799a8) at route.c:1104</div>
<div>#10 0x000000000045f6fc in eval_expr (e=0x777680, msg=0x77eb20, val=0x0) at route.c:1417</div>
<div>#11 0x000000000045f717 in eval_expr (e=0x7776c8, msg=0x77eb20, val=0x0) at route.c:1422</div>
<div>#12 0x000000000040f7ee in do_action (a=0x777870, msg=0x77eb20) at action.c:700</div>
<div>#13 0x000000000040e52a in run_action_list (a=<value optimized out>, msg=0x77eb20) at action.c:138</div>
<div>#14 0x0000000000410881 in do_action (a=0x776fe8, msg=0x77eb20) at action.c:118</div>
<div>#15 0x000000000040e52a in run_action_list (a=<value optimized out>, msg=0x77eb20) at action.c:138</div>
<div>#16 0x0000000000411fc0 in run_top_route (a=0x773a70, msg=0x77eb20) at action.c:118</div>
<div>#17 0x00000000004506e4 in receive_msg (buf=0x1e6b <Address 0x1e6b out of bounds>, len=1038722304, rcv_info=0x7fff3de9a500) at receive.c:165</div>
<div>#18 0x00000000004924d7 in udp_rcv_loop () at udp_server.c:449</div>
<div>#19 0x000000000042928f in main (argc=1038722592, argv=0x20) at main.c:780</div>
<div><br> </div>
<div>Any thoughts?</div>
<div>Thanks,</div>
<div>-Brett</div>
<div>
<div></div>
<div>
<div><br> </div><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 4:16 PM, Brett Nemeroff <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">I found it.. thanks.. maybe I'll run gdb on it and see if I can make anything out of the backtrace..
<div><br> </div>
<div>Running on Ubuntu 8.04</div>
<div><br> </div>
<div>Thanks for your help</div>
<div>-Brett</div>
<div>
<div></div>
<div>
<div><br><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 4:15 PM, Sergio Gutierrez <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi Brett.<br><br>Is not OpenSER creating a core file when fails? Maybe try to find it at /<br>
<br>By the way, what Operating System are you running on?<br><br>Check also in OpenSER configuration file to make sure that disable_core_dump is set to no.<br><br>Regards.<br><font color="#888888"><br>-- <br>Sergio Gutiérrez</font>
<div>
<div></div>
<div><br><br><br><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 5:10 PM, Brett Nemeroff <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Well I definitely see it doing a SRV lookup. When it gets the reply it dies. I'm not really sure how to make it dump core or how to make that available to the developers.
<div><br> </div>
<div>The domain I'm using is hosted by Verizon and they control the DNS. Using DIG yields valid SRV records.
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 4:06 PM, Sergio Gutierrez <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><br>Hello Brett.<br><br>If you are trying to use SRV location, I suggest to do it this way:
<div><br><br>rewritehost("<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com/" target="_blank">wholesaleorigination.acc.globalipcom.com</a>");<br> </div>
rewriteport("");<br><br>The last line is equivalente to define port as 0, which implies a SRV lookup.<br><br>Anyway, make sure your DNS defines <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com/" target="_blank">wholesaleorigination.acc.globalipcom.com</a> as a SRV RR for SIP.<br>
<br>Anyway, the issue you reported would be investigated. I suggest to paste to a backtrace from the corefile, so that developers can trace it.<br><br>Regards.<br><font color="#888888"><br>-- <br>Sergio Gutiérrez</font>
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 5:02 PM, Brett Nemeroff <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">It's excessively boring:
<div>
<div><br> </div>
<div>main route block........{</div>
<div>...</div>
<div> if ($rU==NULL) {</div>
<div> # request with no Username in RURI</div>
<div> sl_send_reply("484","Address Incomplete");</div>
<div> exit;</div>
<div> }</div>
<div><br> </div>
<div><br> </div>
<div> rewritehost("<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com/" target="_blank">wholesaleorigination.acc.globalipcom.com</a>");</div>
<div><br> </div>
<div> route(1);</div>
<div> exit;</div>
<div><br> </div>
<div>}</div>
<div><br> </div>
<div><br> </div>
<div>route[1] {</div>
<div> # for INVITEs enable some additional helper routes</div>
<div> if (is_method("INVITE")) {</div>
<div> # t_on_branch("2");</div>
<div> #t_on_reply("2");</div>
<div> #t_on_failure("1");</div>
<div> }</div>
<div><br> </div>
<div> if (!t_relay()) {</div>
<div> sl_reply_error();</div>
<div> };</div>
<div> exit;</div>
<div>
<div></div>
<div>
<div>}</div>
<div><br> </div><br>
<div class="gmail_quote">On Tue, Nov 11, 2008 at 3:56 PM, Sergio Gutierrez <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello Brett.<br><br>could you paste the section of your config file where you are calling rewritehost?<br>
<br>Best regards.<br><br>Sergio Gutiérrez.<br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Tue, Nov 11, 2008 at 4:55 PM, Brett Nemeroff <span dir="ltr"><<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>></span> wrote:<br>
</div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div></div>
<div>Hi All,
<div>I'm using <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://1.4.2./" target="_blank">1.4.2.</a> I'm using rewritehost followed by a t_relay and I'm getting a crash. Happens every time.</div>
<div><br> </div>
<div>Debug log shows:</div>
<div>
<div>Nov 11 08:58:51 [7787] DBG:core:_shm_resize: resize(0) called</div>
<div>Nov 11 08:58:51 [7787] DBG:tm:_reply_light: reply sent out. buf=0x77b278: SIP/2.0 1..., shmem=0x7f5931c9cda8: SIP/2.0 1</div>
<div>Nov 11 08:58:51 [7787] DBG:tm:_reply_light: finished</div>
<div>Nov 11 08:58:51 [7787] DBG:core:mk_proxy: doing DNS lookup...</div>
<div>Nov 11 08:58:51 [7787] DBG:core:sip_resolvehost: no port, no proto -> do NAPTR lookup!</div>
<div>Nov 11 08:58:51 [7787] DBG:core:get_record: lookup(<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com/" target="_blank">wholesaleorigination.acc.globalipcom.com</a>, 35) failed</div>
<div>Nov 11 08:58:51 [7787] DBG:core:sip_resolvehost: no valid NAPTR record found for <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com/" target="_blank">wholesaleorigination.acc.globalipcom.com</a>, trying direct SRV lookup...</div>
<div>Nov 11 08:58:51 [7794] CRITICAL:core:receive_fd: EOF on 15</div>
<div>Nov 11 08:58:51 [7794] DBG:core:handle_ser_child: dead child 8, pid 7787 (shutting down?)</div>
<div>Nov 11 08:58:51 [7794] DBG:core:io_watch_del: io_watch_del (0x737640, 15, -1, 0x0) fd_no=20 called</div>
<div>Nov 11 08:58:51 [7779] INFO:core:handle_sigs: child process 7787 exited by a signal 11</div>
<div>Nov 11 08:58:51 [7779] INFO:core:handle_sigs: core was generated</div>
<div>Nov 11 08:58:51 [7779] INFO:core:handle_sigs: terminating due to SIGCHLD</div>
<div>Nov 11 08:58:51 [7780] INFO:core:sig_usr: signal 15 received</div>
<div><br> </div>
<div>I know someone else asked this same question, but I never saw a resolution posted. I do a trace on port 53 at the same time and I most definately see a SRV record returned:</div>
<div>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.000000 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.250/" target="_blank">192.168.122.250</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> SIP/SDP Request: INVITE <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip%3A17135454263@192.168.122.132" target="_blank">sip:17135454263@192.168.122.132</a>, with session description</p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.016831 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.250/" target="_blank">192.168.122.250</a> SIP Status: 100 Giving a try</p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.026370 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.128.222.222/" target="_blank">10.128.222.222</a> DNS Standard query NAPTR <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com/" target="_blank">wholesaleorigination.acc.globalipcom.com</a></p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.059006 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.128.222.222/" target="_blank">10.128.222.222</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> DNS Standard query response</p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.059087 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.128.222.222/" target="_blank">10.128.222.222</a> DNS Standard query NAPTR <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleorigination.acc.globalipcom.com.sipinterchange.com/" target="_blank">wholesaleorigination.acc.globalipcom.com.sipinterchange.com</a></p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.091265 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.128.222.222/" target="_blank">10.128.222.222</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> DNS Standard query response, No such name</p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.091332 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.128.222.222/" target="_blank">10.128.222.222</a> DNS Standard query SRV _sip._<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://udp.wholesaleorigination.acc.globalipcom.com/" target="_blank">udp.wholesaleorigination.acc.globalipcom.com</a></p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal"> 0.126236 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.128.222.222/" target="_blank">10.128.222.222</a> -> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.122.132/" target="_blank">192.168.122.132</a> DNS Standard query response SRV 100 50 5060 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleoriginationc.acc.globalipcom.com/" target="_blank">wholesaleoriginationc.acc.globalipcom.com</a> SRV 100 50 5060 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleoriginationd.acc.globalipcom.com/" target="_blank">wholesaleoriginationd.acc.globalipcom.com</a> SRV 100 50 5060 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleoriginationa.acc.globalipcom.com/" target="_blank">wholesaleoriginationa.acc.globalipcom.com</a> SRV 100 50 5060 <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://wholesaleoriginationb.acc.globalipcom.com/" target="_blank">wholesaleoriginationb.acc.globalipcom.com</a></p>
<p style="MARGIN: 0px; FONT: 12px Helvetica; font-size-adjust: none; font-stretch: normal">8 packets captured</p>
<div><span style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica">(the packet capture doesn't return anything else past this because opensips is dead)</span></div>
<div><span style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica"><br></span></div>
<div><span style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica">Any ideas?</span></div>
<div><span style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica">Thanks,</span></div>
<div><span style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica">Brett</span></div>
<div><span style="FONT-SIZE: 12px; FONT-FAMILY: Helvetica"><br></span></div></div></div><br> </div></div>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br></blockquote></div>
<br></blockquote></div><br> </div></div></div></blockquote></div><br><br clear="all"><br><br> </div></div></blockquote></div><br> </div></div></div></blockquote></div><br><br clear="all"><br><br> </div></div></blockquote>
</div><br> </div></div></div></blockquote></div><br> </div></div></div></blockquote></div><br><br clear="all"><br></span></div><span class="sg">-- <br>Sergio Gutiérrez<br></span></blockquote></div><br><br clear="all"><br>
-- <br>Sergio Gutiérrez