[OpenSIPS-Users] Decrease the priority of contact
Duane Larson
duane.larson at gmail.com
Wed Jan 30 15:53:27 CET 2013
Sounds almost like you are wanting to do some Hunt Group type routing
(must-idle hunting). One way to do it could be to use the following
To edit the database you could use the AVPops module to do a mysql query to
edit the Q value
http://www.opensips.org/html/docs/modules/1.9.x/avpops.html#id292750
To edit the memory I think you could use the MI functions in the usrloc
module
http://www.opensips.org/html/docs/modules/1.9.x/usrloc.html#id293327
I am not sure if this is the best way to this because I think editing the
database or memory could cause a race issue. What if two calls happened to
come in at the same time? What would happen?
You can also read my last comment in this post. It might be another way to
go about this.
http://opensips-open-sip-server.1449251.n2.nabble.com/Hunt-Group-with-Opensips-td5459644.html
Maybe other people will know a different way to go about this.
On Wed, Jan 30, 2013 at 4:18 AM, Gomtesh Jain <gomtesh at gmail.com> 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>wrote:
>>
>>> Send Users mailing list submissions to
>>> 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
>>>
>>> You can reach the person managing the list at
>>> 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>
>>> Subject: Re: [OpenSIPS-Users] Failover and dialog termination
>>> To: users at lists.opensips.org
>>> Message-ID: <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>
>>> Subject: Re: [OpenSIPS-Users] Decrease the priority of contact
>>> To: OpenSIPS users mailling list <users at lists.opensips.org>
>>> Message-ID:
>>> <
>>> 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> 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
>>> > 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
>>> >
>>>
>>
--
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130130/ebea81af/attachment-0001.htm>
More information about the Users
mailing list