[OpenSIPS-Users] opensips sip trunk

John Quick john.quick at smartvox.co.uk
Fri Mar 11 15:02:48 CET 2016


Most of the parameters in uac_registrant can be left to take default values.
However, you will need to set db_url and put data into the table.

Mechanisms for automatic failover/clustering/master-slave operation is
another subject - a large one.
I believe there may be some new options in v2 that can help, but I am not
yet familiar with. Maybe others could comment.

It would need a mechanism to monitor and control your two servers and:
* know which one is the current active one
* detect when the current active one has stopped
* toggle between active and standby depending on events it has detected

...but is the standby server going to be running all the time or will the
service only start when the master has failed?
If it running all the time, does your provider allow two registrations on
the same account and how do they select which one to prefer when they
deliver calls?
If they only allow one registration, you could write a script that loads (or
removes) the relevant registration data into the registrant table then
issues a reload command through the MI. You might need to use a short expire
time for registrations to avoid lag when it switches between master and
slave.

John Quick
Smartvox Limited


Date: Fri, 11 Mar 2016 03:18:12 -0700 (MST)
From: Francjos <35633 at heb.be>
Subject: [OpenSIPS-Users] opensips sip trunk
To: users at lists.opensips.org

Thank you a lot John. and which exported parametres i have  to choose
because
there are many.
The second question is this: since i wish to use two opensips in redundant
enrironnement (master and slave), how can i do so that, if the master goes
down, the slave registers directly itself to the sip trunk provider?

Thanks


Francjos,

If your provider requires a registration for this sip trunk to work, then
you will need to use the UAC REGISTRANT module.
http://www.opensips.org/html/docs/modules/2.1.x/uac_registrant.html

For calls you send to the provider, you could simply use the core function
rewritehost()
http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc36

John Quick
Smartvox Limited
Web: www.smartvox.co.uk


Date: Fri, 11 Mar 2016 03:18:12 -0700 (MST)
From: Francjos <35633 at heb.be>
Subject: [OpenSIPS-Users] opensips sip trunk
To: users at lists.opensips.org
Message-ID: <1457691492051-7601995.post at n2.nabble.com>
Content-Type: text/plain; charset=us-ascii

How to configure a SIP trunk in opensips?I'm using two opensips servers as
load balancer and the scenario is that one and only one  of the two opensips
will connect to the sip server of the provider via a sip trunk. How can i
configure opensips for that purpose?

Thank you





More information about the Users mailing list