Oh, I see what you mean.  I thought you meant initially not to put it in the main routing block.  You are right, I have it in the route(1) block, and I should put it in the route_branch(1) block.<br><br>Thanks<br clear="all">
<br>-dg<br>
<br><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 7:26 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Daniel,<br>
<br>
by &quot;I do the rtpproxy_offer in the first branch&quot; do you mean you do the<br>
rtpproxy_offer() in a branch_route ?<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
Daniel Goepp wrote:<br>
</div><div class="im">&gt; I&#39;m not actually doing it globally, I do the rtpproxy_offer in the<br>
&gt; first branch (since I need to for the first call), then when it fails,<br>
&gt; it calls the second branch.  I&#39;m thinking the better way to handle<br>
&gt; this I guess is to serialize the branches.<br>
&gt;<br>
&gt; -dg<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 4, 2010 at 2:51 PM, Bogdan-Andrei Iancu<br>
</div><div class="im">&gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi Daniel,<br>
&gt;<br>
&gt;     not really....the bad idea was to to rtpproxy stuff in request route<br>
&gt;     (globally), considering  that you want to do per-branch changes<br>
&gt;     :)....Again use only branch route to do the per-branch changes.<br>
&gt;<br>
&gt;     REgards,<br>
&gt;     Bogdan<br>
&gt;<br>
&gt;     Daniel Goepp wrote:<br>
&gt;     &gt; Okay, I guess I will have to figure out a different way to handle<br>
&gt;     &gt; this.  Am I correct in assuming then the idea of putting a route(10)<br>
&gt;     &gt; for example nested in the failure block of another route is a<br>
&gt;     bad idea?<br>
&gt;     &gt;<br>
&gt;     &gt; -dg<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; On Wed, Aug 4, 2010 at 10:04 AM, Bogdan-Andrei Iancu<br>
&gt;     &gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;<br>
</div>&gt;     &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt;&gt;<br>
<div><div></div><div class="h5">&gt;     wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     Hi Daniel,<br>
&gt;     &gt;<br>
&gt;     &gt;     it is not a bug - the idea is you must not call RTPproxy<br>
&gt;     function more<br>
&gt;     &gt;     than once per branch - and keep in mind that whatever<br>
&gt;     changes you<br>
&gt;     &gt;     do in<br>
&gt;     &gt;     request route do apply to all branches.....<br>
&gt;     &gt;<br>
&gt;     &gt;     If you want to do per branch changed, use the branch route.<br>
&gt;     &gt;<br>
&gt;     &gt;     Regards,<br>
&gt;     &gt;     Bogdan<br>
&gt;     &gt;<br>
&gt;     &gt;     Daniel Goepp wrote:<br>
&gt;     &gt;     &gt; I don&#39;t think I would call this a &quot;bug&quot; quite yet, but<br>
&gt;     figured it<br>
&gt;     &gt;     &gt; might be worth bringing up.  Here is the call scenario:<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; User A calls User B, no answer, timer hit, forward call.  The<br>
&gt;     &gt;     original<br>
&gt;     &gt;     &gt; timeout was on route(1), and I just rewrite some info, and<br>
&gt;     execute<br>
&gt;     &gt;     &gt; route(10) from the failure branch.  This is probably bad<br>
&gt;     &gt;     practice, and<br>
&gt;     &gt;     &gt; I would appreciate input on how this would be better<br>
&gt;     handled.  But<br>
&gt;     &gt;     &gt; that said, here is what I see.  Since route(1) had already<br>
&gt;     done a<br>
&gt;     &gt;     &gt; rtpproxy_offer, when I hit route (10), it does the same again,<br>
&gt;     &gt;     &gt; resulting in a line in the SDP that looks like:<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; m=audio 3061830618 RTP/AVP 99 100 101 9 11 0 102.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; See the problem?  If  I make a call that naturally would go to<br>
&gt;     &gt;     &gt; route(10), that is not a problem, I see:<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; m=audio 28568 RTP/AVP 99 100 101 9 11 0 102.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; It would appear that rtpproxy_offer is trying to append<br>
&gt;     the port<br>
&gt;     &gt;     &gt; number to an already existing port number.  Make sense?<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; -dg<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; _______________________________________________<br>
&gt;     &gt;     &gt; Users mailing list<br>
&gt;     &gt;     &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
</div></div>&gt;     &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;&gt;<br>
<div class="im">&gt;     &gt;     &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     --<br>
&gt;     &gt;     Bogdan-Andrei Iancu<br>
&gt;     &gt;     OpenSIPS Bootcamp<br>
&gt;     &gt;     20 - 24 September 2010, Frankfurt, Germany<br>
&gt;     &gt;     <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;     &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     _______________________________________________<br>
&gt;     &gt;     Users mailing list<br>
&gt;     &gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
</div>&gt;     &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;&gt;<br>
<div><div></div><div class="h5">&gt;     &gt;     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br>
&gt;     &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
&gt;     &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Bogdan-Andrei Iancu<br>
&gt;     OpenSIPS Bootcamp<br>
&gt;     20 - 24 September 2010, Frankfurt, Germany<br>
&gt;     <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Users mailing list<br>
&gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
&gt;     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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>
</div></div></blockquote></div><br>