[OpenSIPS-Users] Opensips SIP trunk call handling
Benjamin Cropley
benjamin.cropley at gmail.com
Fri Apr 8 11:20:35 CEST 2016
No problem.
If that's all you want to do, then just include it within a route{} block
and you should be good to go.
I will say, of that's all you want to do, when you 'load balance the invite
to FS', FS will respond with a 100 trying - and at the minute your script
will reply to FS with a 405..
Perhaps you should spend some time reading about SIP, as it'll help you
more easily implement stuff on OpenSIPS
On Fri, Apr 8, 2016 at 10:12 AM, Francjos <35633 at heb.be> wrote:
> Thank you for redirecting me to the tutorial. I picked up a part of what i
> need,i think i can adjust it to my needs but the problem i still have is
> where to include the logic of load balancing in opensips.cfg. The logic is
> the following:
>
> if (is_method("INVITE")) {
> if (!load_balance("1","pstn","1")) {
> send_reply("503","Service Unavailable");
> exit;
> }
> }
> else if (is_method("REGISTER")) {
> if (!ds_select_dst("1", "0")) {
> send_reply("503","Service Unavailable");
> exit;
> }
> }
> else {
> send_reply("405","Method Not Allowed");
> exit;
> }
>
> So that Opensips can routes calls to the write Freeswitch.
>
> Thanks again.
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-SIP-trunk-call-handling-tp7602552p7602558.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160408/ead29a58/attachment.htm>
More information about the Users
mailing list