<span>by the way, I&#39;m trying this using openser 1.3.0-pre1-notls from latest svn of trunk as of 12-4-07<br><br>I&#39;m trying to do findme logic..<br>Call comes in, lookup settings for where it is supposed to go.<br>From the settings I find that the user wants it to ring a friends home phone, a cell phone, and the home ata associated with account. To keep voicemail handled by the home account and not by one of the places that they are forwarding to they want voicemail to be triggered after 15 seconds.
<br>The friends home phone is actually one of our accounts and has two ata&#39;s associated with it that register as the same sip user and they have it also ring a cell phone and the account sends the call to voicemail after 18 seconds.
<br><br>Psudo Call flow/Logic of what I have so far.<br>Call comes in to openser for 555/123-4567<br>pull from usr_preferences settings for the call destination number.<br>so I get a stack of avps $avp(s:brahch_uri) from usr_preferences like this:
<br>&nbsp; sip:<a class="chatzilla-link" href="mailto:5551239876@127.0.0.1">5551239876@127.0.0.1</a><br>&nbsp; sip:<a class="chatzilla-link" href="mailto:localuser3@127.0.0.1">localuser3@127.0.0.1</a><br></span><span>&nbsp; sip:<a class="chatzilla-link" href="mailto:5553216548@127.0.0.1">
5553216548@127.0.0.1</a><br></span><span>I do diversion header then branch for them with:<br>&nbsp; avp_pushto(&quot;$br&quot;, &quot;$avp(s:branch_uri)&quot;<br>I drop the local branch.<br>The branched calls come in as expected and verify that it is a valid intentional loopback by testing:
<br>&nbsp; if ( </span><span>ruri =~ &quot;<a href="http://127.0.0.1">127.0.0.1</a>&quot; &amp;&amp; dst_ip == <a href="http://127.0.0.1">127.0.0.1</a> ) { &lt; mark as valid loopback &gt; }</span><br><span>Like the beginning of the original call I lookup where they should go and if the user in the diversion header is allowed to send them there (PSTN)
<br>In this case<br>&nbsp; one call would be sent out through the PSTN gateways with full failover logic, <br>&nbsp; another would call the device associated with the account by doing a lookup(&quot;location&quot;)<br>&nbsp; and the third, (the one to the friend that our customer) would add another diversion header and start another parallel fork with loopback for the cell phone and two ata&#39;s
<br><br>When I test with a simple forward to a single PSTN number,<br>in the loopbacked session, I rewrite the ruri accordingly with real dest user and real ip address.<br>the ruri shows what I want in the logs just before t_relay and exit and in branch_route[1]
<br>after last log entry from branch_route, I have in the log:<br>&nbsp; ERROR:core:udp_send: sendto(sock,0xb619d954,1376,0,0xb619ba6c,16): Invalid argument(22)<br>&nbsp; CRITICAL:core:udp_send: invalid sendtoparameters one possible reason is the server is bound to localhost and attempts to send to the net
<br>&nbsp; ERROR:tm:msg_send: udp_send failed<br>&nbsp; ERROR:tm:t_forward_nonack: sending request failed<br>Then I have log entrys from onreply_route[1]:<br>&nbsp; Reply - S=100 M=INVITE RURI=&lt;null&gt; src_ip = <a href="http://127.0.0.1">
127.0.0.1</a><br>&nbsp; Reply - S=477 M=INVITE RURI=&lt;null&gt; src_ip = <a href="http://127.0.0.1">127.0.0.1</a><br>not the real world IP address of the other server I set in the ruri<br>and there is nothing in the logs on the intended server or the local server indicating routing logic for an invite failed
<br><br>I&#39;m woundering if the TM module, while processing the invite in the loopback, is matching up the transaction with the session that originated the loopback and using the settings and status from it.<br><br><br>
Any Ideas, Thoughts, HELP!!?<br>Or is OpenSER just not ready for this yet?<br><br>Thanks Dave<br></span>