[OpenSIPS-Users] Some questions about module dispatcher.

Алексей Хамстр homstr at gmail.com
Fri Mar 29 08:03:31 EDT 2019


Hello.
I wanted to ask, if anybody have some extra information about function
ds_select_dst ("part4 : 2,3", "0,1", "fuD M 5, fuS M 2");
Please, any examples will be appreciated. :-)
How is this working, when we have such komplex parameters? I need to set up
failover in case of any error on my "Active" destinations. For example,
what if yate1 have  an error in isdn channel and giving me back code 480,
or 500? I need to try next  destination in this case.
And another one question. How big could be "first_hit_counter"?  Maybe i
bether sould reset it by cron?

lets say, I have a two gateways
        SET:: 1
                URI:: sip:10.10.128.97:5060 state=Active
first_hit_counter=1828
                URI:: sip:10.10.128.98:5060 state=Active
first_hit_counter=1849
root at sipproxy1:/home/it# opensipsctl dispatcher show
dispatcher gateways
+----+-------+------------------------+--------+-------+--------+----------+-------+-----------------------+
| id | setid | destination            | socket | state | weight | priority
| attrs | description           |
+----+-------+------------------------+--------+-------+--------+----------+-------+-----------------------+
|  1 |     1 | sip:10.10.128.97:5062 |        |     0 | 0      |        1
|       | YATE1    |
|  3 |     1 | sip:10.10.128.98:5062 |        |     0 | 0      |        1
|       | YATE2    |

Thankyou!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190329/4c9f6d91/attachment.html>


More information about the Users mailing list