Per endpoint SQL config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!
I'm confused a little about per endpoint configuration by sql config queries.

My gnugk.ini:

...

[SQLConfig]
Driver=PostgreSQL
Database=voipdb
Username=postgres
PermanentEndpointsQuery=SELECT * FROM get_gkcfg_pendpoints()
ConfigQuery=SELECT * FROM get_gkcfg_ep()

....

Result sets of this PL/SQL functions :

voipdb=# select * from get_gkcfg_ep();
  secname  |     optname     | optvalue
-----------+-----------------+----------
 [EP::t56] | Capacity        |        5
 [EP::t56] | GatewayPriority |        1
 [EP::t57] | Capacity        |       30
 [EP::t57] | GatewayPriority |        2
(rows: 4)

voipdb=# select * from get_gkcfg_pendpoints();
      ip      | port | _alias | prefixes
--------------+------+--------+----------
 192.168.0.56 | 1720 | t56    | 9945,777
 192.168.0.57 | 1720 | t57    | 777
(rows: 2)

So, when I flood N concurrent calls with prefix 777 I get as result a
half of terminated calls on one gw ( t56 ), and other half on another.
As documentation says, in my case only 5 concurrent calls must be
terminated on gw t56.

Farid.


_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux