[asterisk-dev] [Code Review] Added ability to perform SRV lookups for AGI URIs
Tilghman Lesher
tlesher at digium.com
Fri Jan 15 13:25:46 CST 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/378/#review1371
-----------------------------------------------------------
Ship it!
- Tilghman
On 2009-12-31 11:15:05, Brent Thomson wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/378/
> -----------------------------------------------------------
>
> (Updated 2009-12-31 11:15:05)
>
>
> Review request for Asterisk Developers.
>
>
> Summary
> -------
>
> With this patch, you can run the Agi() dial plan application with a URI beginning with hagi:// (for HA Agi) to indicate that the host name should be resolved as an SRV service instead of a regular host name.
>
> Regular Agi still works the same. Hagi URIs should look like this in your dial plan:
>
> exten => _X.,1,Agi(hagi://example.com/foo.agi)
>
> Asterisk will look up _agi._tcp.example.com and will try the normal fastagi routine on each host:port in the result until one accepts the connection or all results fail.
>
>
> This addresses bug 0014775.
> https://issues.asterisk.org/view.php?id=0014775
>
>
> Diffs
> -----
>
> /trunk/CHANGES 234369
> /trunk/include/asterisk/srv.h 234369
> /trunk/main/srv.c 234369
> /trunk/res/res_agi.c 234369
>
> Diff: https://reviewboard.asterisk.org/r/378/diff
>
>
> Testing
> -------
>
> * Made formatting changes per eliel's comments.
> * Sniffing traffic shows correct DNS lookups, load balancing, and failover.
> * Resulting AGI connections work as expected.
> * Running for 6 months without issue.
>
>
> Thanks,
>
> Brent
>
>
More information about the asterisk-dev
mailing list