<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<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">1.
Customer ---> Opensips<br>
2. Opensips ---> Freeswitch<br>
</font><font size="1" face="Courier New, Courier, monospace"><font
size="1" face="Courier New, Courier, monospace">3. </font></font><font
size="1" face="Courier New, Courier, monospace"><font size="1"
face="Courier New, Courier, monospace"><font size="1"
face="Courier New, Courier, monospace"><font size="1"
face="Courier New, Courier, monospace">Freeswitch</font></font>
---> </font></font><font size="1" face="Courier New,
Courier, monospace"><font size="1" face="Courier New, Courier,
monospace"><font size="1" face="Courier New, Courier,
monospace"><font size="1" face="Courier New, Courier,
monospace">Opensips<br>
</font></font><font size="1" face="Courier New, Courier,
monospace">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"><br>
</font></p>
<p><font size="1" face="Courier New, Courier, monospace"><br>
</font></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>