[SR-Users] Regarding - Add your own module

Ananth Kollipara infoananthk at gmail.com
Thu Aug 2 02:30:10 CEST 2012


I want the proxy to re-route the request, without informing the client.
Lets say - proxy receives message, forwards to back-end servers. If
back-end server responds with 302 response, proxy shall use the contact
header and then forwards the message to the correct backend server. Do we
have support for this?

On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov <abalashov at evaristesys.com>wrote:

> On 08/01/2012 08:12 PM, Ananth Kollipara wrote:
>
>  Which module does dynamic routing?
>>
>
> Lots of modules do various kinds of dynamic routing: drouting, lcr,
> dialplan, etc.
>
> But, they're rather formulaic.  If you're after something custom, just do
> it yourself using your TimesTen DB, db_unixodbc, and the sqlops module,
> which allows custom SQL queries and interactions:
>
>    http://www.kamailio.org/docs/**modules/3.3.x/modules_k/**sqlops.html<http://www.kamailio.org/docs/modules/3.3.x/modules_k/sqlops.html>
>
> And, sending 302 redirects with the desired Contact header is very easy:
>
>    append_to_reply("Contact: <sip:...>\r\n");
>    sl_send_reply("302", "Moved Temporarily");
>
>
> -- Alex
>
> --
> Alex Balashov - Principal
> Evariste Systems LLC
> 235 E Ponce de Leon Ave
> Suite 106
> Decatur, GA 30030
> Tel: +1-678-954-0670
> Fax: +1-404-961-1892
> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120802/8dd95be6/attachment.htm>


More information about the sr-users mailing list