sip-router

SIP Router Project

Tasklist

FS#111 - dispatcher pseudo variables

Attached to Project: sip-router
Opened by Klaus Darilion (klaus3000) - Thursday, 13 January 2011, 23:56 GMT
Task Type Feature Request
Category Core
Status Assigned
Assigned To Daniel-Constantin Mierla (miconda)
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

It would be great if dispatcher module would export dispatcher lists and status as pseudo, variables, e.g:

read-only pseudo variable: $disp(list⇒key)

list: name of the dispatcher list, e.g. 1

key: key to be queried
- count: number of entries in this dispatcher list
- uri[n]
- flags[n]
- priority[n]
- attributes[n]

n: n-th entry in the list, starting from 0 to count-1

Examples:

get the number of gateways in list 3: $disp(3⇒count)

get the uri of entry 2 (third) in list 3: $disp(3⇒uri[2])

This task depends upon

Comment by Daniel-Constantin Mierla (miconda) - Saturday, 19 February 2011, 22:46 GMT

I will try to implement in the near future, meanwhile, maybe next workaround gives you what you need:

- set parameters for load balancing with failover
- backup r-uri
- do ds_select_domain("groupid", "8")
- you will get in the AVPs: the URIs in the groupid ordered by priority, number of them and the attributes
- restore the r-uri (since it was updated with the address in the first URI AVP)
- AVPs can be accessed via indexes $(avp(x)[1])

Loading...