How can one make SER do a simple hunt group than can be configured dynamically through MySQL instead of through ser.conf?
For example I want to make endpoint A and B be part of a hunt group, each has one line on it:
1 Call from PSTN goes to SER. 2 SER looks up the number and finds a match in the userlocdb which it then forwards the SIP message to. 3 The endpoint A with 1 line gets the message and gets the call. 4 Another call from the PSTN to the same phone number goes to SER. 5 SER looks up the number and finds a match in the userlocdb which it then forwards the SIP message to. 6 Endpoint A returned busy/congested or something along those lines. 7 SER looks up some sort of routing table to decide what endpoint to try next, it finds endpoint B. 8 SER forwards the message to endpoint B which completes.
For those of those out there who understand Asterisk all I want is the equivalent of:
exten => 1234567890,1,Dial(SIP/EndPointA) exten => 1234567890,2,Dial(SIP/EndPointB)
----------------------------------------
Michael Shuler, C.E.O. BitWise Systems, Inc. 682 High Point Lane East Peoria, IL 61611 Office: (217) 585-0357 Cell: (309) 657-6365 Fax: (309) 213-3500 E-Mail: mike@bwsys.net Customer Service: (877) 976-0711
On Fri, 6 Aug 2004, Michael Shuler wrote: > How can one make SER do a simple hunt group than can be configured > dynamically through MySQL instead of through ser.conf?
I haven't done much practice however, if I understood the docs at all, you can achieve this using failure_route and exec. Whereby failure_route is used when a call to the endpoint A times out (you set this timeout value, again check the seruser.pdf doc on how to set this).
The 'exec' call should be used to obtain, dynamically the extension to which the call should be forwarded from the failure_route section of your config file. The beauty of 'exec' is that you can give arguments to the program you call thus making the process highly dynamic, depending on what arguments you give the program you call.
I think this could work. Let us know how it goes. I'll also read up the docs and see if it makes sense (the docs are not in my reach now).
Cheers! Gerald.