<div dir="auto">Hello Simon,</div><div dir="auto">This sounds more like an issue with how Freeswitch is routing calls. However, a normal UAC will do something like this if the UAS doesn’t return a provisional (1xx) response in time. Are you sending a 100? If not, that could account for retransmissions. If instead it really is rolling back to OpenSIPs on a 503, it’s almost certainly some sort of routing issue on the Freeswitch side. </div><div dir="auto"><br></div><div dir="auto">What’s the timing between the two INVITEs? If you could share a trace with some timestamps, that would help. </div><div dir="auto">-Brett</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 6, 2023 at 7:44 AM Simon Gajski via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div>
<p>Hi<br>
<br>
I am using Opensips to act as SBC in combination with Freeswitch
for handling media.<br>
I added function to count simultaneous incomming/outgoing calls
per trunk.<br>
<br>
Call flow looks like:<br>
<br>
<font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)">1.
Customer ---> Opensips<br>
2. Opensips ---> Freeswitch<br>
</font><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)">3. </font></font><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)">Freeswitch</font></font>
---> </font></font><font size="1" face="Courier New,
Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier,
monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier,
monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><font size="1" face="Courier New, Courier,
monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)">Opensips<br>
</font></font><font size="1" face="Courier New, Courier,
monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)">4. Opensips ---> Carrier</font></font><br>
<br>
</font>After call is returned from Freeswitch to Opensips (step
3),<br>
routing logic is applied where the call shall be routed next (step
4).<br>
<br>
But before call is relayed to final route (in step 4) counter for
simultaneous calls<br>
checks if either source or destination IP already reached its
limit of concurrent calls.<br>
In case of yes, Opensips sends to Freeswitch 503 response instead
of performing step 4.<br>
<br>
send_reply("503", "Service Unavailable: Channel limit
exceeded\n");<br>
exit;<br>
<br>
And here comes my problem:<br>
Freeswitch ignores 503 message and sends another INVITE and then
opensips repeats its logic.<br>
Can somebody tell me what should I check? or what would be the
right way to terminate such call?<br>
<br>
Thanks<br>
<br>
BR<br>
Simon<font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><br>
</font></p>
<p><font size="1" face="Courier New, Courier, monospace" style="font-family:"Courier New",Courier,monospace;color:rgb(0,0,0)"><br>
</font></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div>