<div dir="ltr">is anyone else seeing a crash when they attempt to use a SRV record for rewritehost();?<br><br>seems no matter what i do, i can't get around the crash! <br><br>anyone got a cfg file example on how it might be done differently?<br>
<br>really bogged down with this :(<br><br><br><br><br><div class="gmail_quote">On Tue, Sep 30, 2008 at 9:37 AM, Alex G <span dir="ltr"><<a href="mailto:greekman0000@gmail.com">greekman0000@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">currently using opensips-1.4.2-tls<br>the dns is indeed valid. I've checked it against other nameservers on the net other than our provider's name server<br>
<br>there's nothing fishy in my config file either. Pretty straight forward routing. As you can see in the ngrep cap below, the SRV record is returning the A records for the domains in it. <br>
<br>Any help is always appreciated :) Thanks<br><font color="#888888"><br>Alex</font><div><div></div><div class="Wj3C7c"><br><br><br><div class="gmail_quote">On Tue, Sep 30, 2008 at 6:41 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Alex,<br>
<br>
What is the domain name you were trying? is the DNS still valid (like SRV records) for it ? What opensips version are you using?<br>
<br>
I want to try to reproduce the crash and to work out a fix.<br>
<br>
Thanks and regards,<br>
Bogdan<br>
<br>
Alex G wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
trying the domain without the prefixes got me this:<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22080]: CRITICAL:core:receive_fd: EOF on 19<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22004]: INFO:core:handle_sigs: child process 22034 exited by a signal 11<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22004]: INFO:core:handle_sigs: core was generated<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22004]: INFO:core:handle_sigs: terminating due to SIGCHLD<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22080]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22065]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22044]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22046]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22071]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22076]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22062]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22042]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22054]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22015]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22061]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22040]: INFO:core:sig_usr: signal 15 received<br>
Sep 29 19:06:34 openser1 /sbin/opensips[22064]: INFO:core:sig_usr: signal 15 received<br>
<br>
proxy completely crashed!<br>
<br>
ngrep on port 53 shows its getting back a records:<br>
<br></div>
U <a href="http://64.94.60.251:37320" target="_blank">64.94.60.251:37320</a> <<a href="http://64.94.60.251:37320" target="_blank">http://64.94.60.251:37320</a>> -> <a href="http://69.25.1.1:53" target="_blank">69.25.1.1:53</a> <<a href="http://69.25.1.1:53" target="_blank">http://69.25.1.1:53</a>><br>
.............wholesaleorigination.acc.globalipcom.com..#..<br>
<br>
U <a href="http://69.25.1.1:53" target="_blank">69.25.1.1:53</a> <<a href="http://69.25.1.1:53" target="_blank">http://69.25.1.1:53</a>> -> <a href="http://64.94.60.251:37320" target="_blank">64.94.60.251:37320</a> <<a href="http://64.94.60.251:37320" target="_blank">http://64.94.60.251:37320</a>><br>
.............wholesaleorigination.acc.globalipcom.com..#...!.........<a href="http://3.auth00.ns.uu.net" target="_blank">3.auth00.ns.uu.net</a> <<a href="http://3.auth00.ns.uu.net" target="_blank">http://3.auth00.ns.uu.net</a>>.<br>
hostmaster.P......T`......^...T`<br>
<br>
U <a href="http://64.94.60.251:37320" target="_blank">64.94.60.251:37320</a> <<a href="http://64.94.60.251:37320" target="_blank">http://64.94.60.251:37320</a>> -> <a href="http://69.25.1.1:53" target="_blank">69.25.1.1:53</a> <<a href="http://69.25.1.1:53" target="_blank">http://69.25.1.1:53</a>><br>
.............wholesaleorigination.acc.globalipcom.com..#..<br>
<br>
U <a href="http://69.25.1.1:53" target="_blank">69.25.1.1:53</a> <<a href="http://69.25.1.1:53" target="_blank">http://69.25.1.1:53</a>> -> <a href="http://64.94.60.251:37320" target="_blank">64.94.60.251:37320</a> <<a href="http://64.94.60.251:37320" target="_blank">http://64.94.60.251:37320</a>><br>
.............wholesaleorigination.acc.globalipcom.com..#...!.........<a href="http://3.auth00.ns.uu.net" target="_blank">3.auth00.ns.uu.net</a> <<a href="http://3.auth00.ns.uu.net" target="_blank">http://3.auth00.ns.uu.net</a>>.<br>
hostmaster.P......T`......^...T`<br>
<br>
U <a href="http://64.94.60.251:37320" target="_blank">64.94.60.251:37320</a> <<a href="http://64.94.60.251:37320" target="_blank">http://64.94.60.251:37320</a>> -> <a href="http://69.25.1.1:53" target="_blank">69.25.1.1:53</a> <<a href="http://69.25.1.1:53" target="_blank">http://69.25.1.1:53</a>><div>
<br>
*............_sip._udp.wholesaleorigination.acc.globalipcom.com..!..<br>
<br></div>
U <a href="http://69.25.1.1:53" target="_blank">69.25.1.1:53</a> <<a href="http://69.25.1.1:53" target="_blank">http://69.25.1.1:53</a>> -> <a href="http://64.94.60.251:37320" target="_blank">64.94.60.251:37320</a> <<a href="http://64.94.60.251:37320" target="_blank">http://64.94.60.251:37320</a>><div>
<br>
*............_sip._udp.wholesaleorigination.acc.globalipcom.com..!.....!....T..1.d.2...wholesaleoriginationd.acc.globalipcom.com....!....T..1.d.2...wholesaleoriginationa.acc.globalipcom.com....!....T..1.d.2...wholesaleoriginationb.acc.globalipcom.com....!....T..1.d.2...wholesaleoriginationc.acc.globalipcom.com..#......T....auth00.ns.uu.net..#......T..<br>
.auth100.K........T...A.x.........T...A...........T...?ML..V......T...A.(..D.............A.b.......0......<br>
<br>
<br>
<br></div><div>
On Mon, Sep 29, 2008 at 6:14 PM, Sergio Gutierrez <<a href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a> <mailto:<a href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a>>> wrote:<br>
<br>
Hi Alex.<br>
<br>
Try this:<br>
<br>
rewritehost("<a href="http://wholesaleorigination.acc.globalip.com" target="_blank">wholesaleorigination.acc.globalip.com</a><br></div>
<<a href="http://wholesaleorigination.acc.globalip.com" target="_blank">http://wholesaleorigination.acc.globalip.com</a>>");<div><br>
rewriteport("");<br>
t_relay();<br>
<br>
Best regards.<br>
<br>
Sergio G.<br>
<br>
<br>
On Mon, Sep 29, 2008 at 5:04 PM, Alex G <<a href="mailto:greekman0000@gmail.com" target="_blank">greekman0000@gmail.com</a><br></div><div>
<mailto:<a href="mailto:greekman0000@gmail.com" target="_blank">greekman0000@gmail.com</a>>> wrote:<br>
<br>
hi sergio,<br>
<br>
the SRV record is for my pstn gateway. I'm placing the SRV<br>
record in<br>
rewritehostport("_sip._<a href="http://udp.wholesaleorigination.acc.globalipcom.com" target="_blank">udp.wholesaleorigination.acc.globalipcom.com</a><br></div>
<<a href="http://udp.wholesaleorigination.acc.globalipcom.com/" target="_blank">http://udp.wholesaleorigination.acc.globalipcom.com/</a>>"); like this prior to my t_relay. opensips log is showing me the<div>
<br>
errors i posted below. I didn't think something special was<br>
needed, but it doesn't seem to work as it should.<br>
<br>
nslookup of the SRV record on the local machine shows that its<br>
there and it returns several A records.<br>
<br>
i'm very stumped on this one... any help would be much<br>
appreciated :)<br>
<br>
also the DNS i am hitting is our internet provider's dns,<br>
which like i said the SRV records seem to resolve at when<br>
using nslookup.<br>
<br>
Alex<br>
<br>
<br>
On Mon, Sep 29, 2008 at 5:50 PM, Sergio Gutierrez<br></div><div>
<<a href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a> <mailto:<a href="mailto:saguti@gmail.com" target="_blank">saguti@gmail.com</a>>> wrote:<br>
<br>
Hi Alex.<br>
<br>
OpenSIPS does not need any special setup to resolve SRV<br>
recrds.<br>
<br>
How do you have defined your SRV records at DNS config?<br>
<br>
If <a href="http://wholesaleorgination.acc.globalipcom.com" target="_blank">wholesaleorgination.acc.globalipcom.com</a><br></div>
<<a href="http://wholesaleorgination.acc.globalipcom.com" target="_blank">http://wholesaleorgination.acc.globalipcom.com</a>> is a SRV,<div><br>
you just call the function you need, t_relay or forward,<br>
and your uri fould read as<br>
<a href="mailto:username@wholesaleorgination.acc.globalipcom.com" target="_blank">username@wholesaleorgination.acc.globalipcom.com</a><br></div>
<mailto:<a href="mailto:username@wholesaleorgination.acc.globalipcom.com" target="_blank">username@wholesaleorgination.acc.globalipcom.com</a>><div><br>
<br>
Best regards.<br>
<br>
Sergio G.<br>
<br>
On Mon, Sep 29, 2008 at 3:44 PM, Alex G<br></div>
<<a href="mailto:greekman0000@gmail.com" target="_blank">greekman0000@gmail.com</a> <mailto:<a href="mailto:greekman0000@gmail.com" target="_blank">greekman0000@gmail.com</a>>><div>
<br>
wrote:<br>
<br>
is there anything special i need to do in the config<br>
file to use SRV records? I try to rewritehostport to<br>
the dns srv record but i cannot seem to resolve:<br>
<br>
Sep 29 16:40:10 openser1 /sbin/opensips[21292]:<br>
CRITICAL:core:mk_proxy: could not resolve hostname:<br>
"_sip._<a href="http://udp.wholesaleorigination.acc.globalipcom.com" target="_blank">udp.wholesaleorigination.acc.globalipcom.com</a><br></div>
<<a href="http://udp.wholesaleorigination.acc.globalipcom.com" target="_blank">http://udp.wholesaleorigination.acc.globalipcom.com</a>>"<div><br>
Sep 29 16:40:10 openser1 /sbin/opensips[21292]:<br>
ERROR:tm:uri2proxy: bad host name in URI<br>
<sip:+14016411072@_sip._<a href="http://udp.wholesaleorigination.acc.globalipcom.com:5060" target="_blank">udp.wholesaleorigination.acc.globalipcom.com:5060</a><br></div>
<<a href="http://udp.wholesaleorigination.acc.globalipcom.com:5060" target="_blank">http://udp.wholesaleorigination.acc.globalipcom.com:5060</a>>><div><br>
<br>
<br>
have tried with and without defining the port and<br>
still no luck<br>
<br>
i even turned on ipv6 checks if ipv4 fails and still<br>
no luck.<br>
<br>
<br>
what am i missing here?<br>
<br>
<br>
Thanks,<br>
<br>
Alex<br>
<br>
_______________________________________________<br>
Users mailing list<br></div>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><div>
<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
<br>
<br></div>
------------------------------------------------------------------------<div><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>