Bogdan,<br><br>You are right it is the destination. I added the following to udp_server.c when the error occurs:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LOG(L_ERR, &quot;sa = %d, %s, %d\n&quot;, to-&gt;sin.sin_family,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; inet_ntoa(to-&gt;
sin.sin_addr), ntohs(to-&gt;sin.sin_port));<br><br>Which logs:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sa = 2, <a href="http://0.0.1.244">0.0.1.244</a>, 5060<br><br>This address is clearly invalid. Interesting thing though is that I ran an ngrep to see if I could locate a message that contains this IP and could not find one:
<br><br>ngrep -p port 5060 | grep &quot;<a href="http://0.0.1.244">0.0.1.244</a>&quot;<br><br>The above came up clean even though the log kept reporting the error.<br><br>Any more ideas?<br><br>Martin<br><br><div><span class="gmail_quote">
On 2/5/07, <b class="gmail_sendername">Bogdan-Andrei Iancu</b> &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Martin,<br><br>after all, it look the root problem is the destination address - the<br>detection of the egress socket (triggered by mhomed) also fails because<br>of an Invalid Argument (as originally).<br><br>my guess is that an invalid ip or port is used for sending the message.
<br>If you cannot track this down, I can try to prepare a patch to print the<br>destination address/port in case of error.<br><br>regards,<br>bogdan<br><br>Martin Burns wrote:<br><br>&gt; Thanks for your reply Bogdan,<br>
&gt;<br>&gt; There is definitely both UDP and TCP listening:<br>&gt;<br>&gt; Starting openser: openserListening on<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;udp: xx.xx.xx.xxx [xx.xx.xx.xxx]:5060<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tcp: xx.xx.xx.xxx [xx.xx.xx.xxx
 ]:5060<br>&gt; Aliases:<br>&gt; ......<br>&gt;<br>&gt; Is it possible that there is simply too many messages for the server<br>&gt; to handle?<br>&gt;<br>&gt; At the moment the server is configured with:<br>&gt;<br>&gt; children=20
<br>&gt; tcp_children=2<br>&gt;<br>&gt; and an ngrep suggests quite a few messages per second.<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; Martin<br>&gt;<br>&gt; On 2/5/07, *Bogdan-Andrei Iancu* &lt;<a href="mailto:bogdan@voice-system.ro">
bogdan@voice-system.ro</a><br>&gt; &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi Martin,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the last error you posted says you want to forward something using UDP
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; (proto 1), but there is no listen socket for UDP.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; can you check is there is no UDP listen configured on your openser?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; regards,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; bogdan<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Martin Burns wrote:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; We have over 4 proxies running openser-1.1.0-notls. Recently we<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; started to see the following error in the logs of one of the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; proxies:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;4 06:46:21 proxy01 /usr/local/sbin/openser[4670]: ERROR:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; udp_send: sendto(sock,0xb3c35898,594,0,0xb3c257f4,16): Invalid<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; argument(22)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;4 06:46:21 proxy01 /usr/local/sbin/openser[4670]: CRITICAL:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; invalid sendtoparameters one possible reason is the server is
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; bound to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; localhost and attempts to send to the net<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;4 06:46:21 proxy01 /usr/local/sbin/openser[4670]: msg_send:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ERROR: udp_send failed<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;4 06:46:21 proxy01 /usr/local/sbin/openser[4670]:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ERROR:tm:t_forward_nonack: sending request failed<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Now the errors suggests a binding to localhost, however our<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; openser.cfg has the following:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; listen=eth0:5060<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; After a brief search we came across a couple of over people<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; having a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; similar problem. Once of the suggested fixes was to add a mhomed=1
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; line to the cfg.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Well we tried this (even though we are not multi homed) and the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; error<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; changed to:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;5 02:54:09 proxy01 /usr/local/sbin/openser[2209]: ERROR:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; get_out_socket: connect failed: Invalid argument<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;5 02:54:09 proxy01 /usr/local/sbin/openser[2209]: ERROR:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; get_out_socket: no socket found<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;5 02:54:09 proxy01 /usr/local/sbin/openser[2209]:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ERROR:tm:add_uac: can&#39;t fwd to af 2, proto 1&nbsp;&nbsp;(no corresponding<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; listening socket)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Feb&nbsp;&nbsp;5 02:54:09 proxy01 /usr/local/sbin/openser[2209]:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; ERROR:tm:t_forward_nonack: failure to add branches
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Does anyone have any suggestions or ideas as to what is causing this<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; error.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Thanks<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; mburns<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;------------------------------------------------------------------------<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;_______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;Users mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
<a href="mailto:Users@openser.org">Users@openser.org</a> &lt;mailto:<a href="mailto:Users@openser.org">Users@openser.org</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users
</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;<br>&gt;<br><br></blockquote></div><br>