[OpenSIPS-Users] Decrease the priority of contact
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jan 30 19:35:27 CET 2013
Hi,
I agree with Duane - what you are trying to do is exceeding the purpose
of registration - you want to do a Round Robin between the 2 registered
contacts.
What you could try is to let lookup() to bring both of them and to drop
one of the contacts from script (wither simply removing the branch via
$branch var, either via branch route).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01/30/2013 12:18 PM, Gomtesh Jain wrote:
>
> Thanx Duane for replying the mail ..
>
> Let me explain you my scenario ...
>
> I have 2 registered contact
> 1 . 1234 (q value .9)
> 2 5678 (q value .8)
>
> On IIVITE after lookup() 1234 will be on top of list . So after
> lookup I just want to update contact 1234 with q value .7 in
> memory/data base .
> So that for next call 5678 should come on top of the list for 2nd
> INVITE .
>
> So I want make changes in memory/database so that 5678 should be
> picked up as first contact by very next INVITE .
>
> Thanx,
> Gomtesh
>
>
>
>
>
>
>
> On Wed, Jan 30, 2013 at 1:50 AM, <users-request at lists.opensips.org
> <mailto:users-request at lists.opensips.org>> wrote:
>
> Send Users mailing list submissions to
> users at lists.opensips.org <mailto:users at lists.opensips.org>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request at lists.opensips.org
> <mailto:users-request at lists.opensips.org>
>
> You can reach the person managing the list at
> users-owner at lists.opensips.org
> <mailto:users-owner at lists.opensips.org>
>
> When replying, please edit your Subject line so it is more
> specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
> 1. Re: Failover and dialog termination (microx)
> 2. Re: Decrease the priority of contact (Duane Larson)
> 3. Re: Carrierroute failure route enhancement (Samuel Muller)
> 4. [RELEASE] OpenSIPS 1.9.0 - a new major release is out
> (Bogdan-Andrei Iancu)
> 5. [RELEASES] Support and management of OpenSIPS release -
> IMPORTANT (Bogdan-Andrei Iancu)
> 6. Re: [RELEASE] OpenSIPS 1.9.0 - a new major release is
> out (Bakko)
> 7. Re: [OpenSIPS-Devel] [RELEASE] OpenSIPS 1.9.0 - a new major
> release is out (Sa?l Ibarra Corretg?)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 29 Jan 2013 06:12:46 -0800 (PST)
> From: microx <acmicrox at gmail.com <mailto:acmicrox at gmail.com>>
> Subject: Re: [OpenSIPS-Users] Failover and dialog termination
> To: users at lists.opensips.org <mailto:users at lists.opensips.org>
> Message-ID: <1359468766526-7584255.post at n2.nabble.com
> <mailto:1359468766526-7584255.post at n2.nabble.com>>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Schneur,
>
> Yes, the two proxy servers PA and PB are using the same
> database. And the
> db_mode regarding dialog
> is set to 1 to make each dialog be written into memory as well
> as the
> database.
>
> What do you mean master/master replication? Can you specify
> your method?
> Thanks so much.
>
> Best wishes,
> Chen-Che
>
>
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Failover-and-dialog-termination-tp7584192p7584255.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 29 Jan 2013 10:39:22 -0600
> From: Duane Larson <duane.larson at gmail.com
> <mailto:duane.larson at gmail.com>>
> Subject: Re: [OpenSIPS-Users] Decrease the priority of contact
> To: OpenSIPS users mailling list <users at lists.opensips.org
> <mailto:users at lists.opensips.org>>
> Message-ID:
> <CAFcM1EqZxr_FhVkJswpBNPK5wueE-9PvJPJFCof0nr4GHAtpDg at mail.gmail.com
> <mailto:CAFcM1EqZxr_FhVkJswpBNPK5wueE-9PvJPJFCof0nr4GHAtpDg at mail.gmail.com>>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'm not 100% sure what you are trying to do. I needed to do
> some serial
> calling and here is what I did
>
> http://opensips-open-sip-server.1449251.n2.nabble.com/opensips-Bugs-3349030-Need-access-to-SIP-URI-Q-Value-td6554597.html
>
> http://www.opensips.org/Resources/DocsCoreVar19#toc75
>
>
>
>
> On Tue, Jan 29, 2013 at 2:02 AM, Gomtesh Jain
> <gomtesh at gmail.com <mailto:gomtesh at gmail.com>> wrote:
>
> > Hi ,
> > I want to decrease the priority (q value) of contact (in
> memory &
> > database)as soon as it comes on top of the list after
> lookup. So that next
> > call should not pick this contact (if other contacts are
> registered). As
> > soon as call finishes client will refresh its registration
> with original q
> > value.
> > How can I do this either in script after lookup() or in code
> in around
> > lookup.c ?
> >
> > Can someone help me on this ?
> >
> > Thanx,
> > Gomtesh
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
>
>
> --
> --
> *--*--*--*--*--*
> Duane
> *--*--*--*--*--*
> --
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://lists.opensips.org/pipermail/users/attachments/20130129/d66ee50b/attachment-0001.htm>
>
>
> _______________________________________________
> 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/20130130/e3d1e29b/attachment-0001.htm>
More information about the Users
mailing list