[SR-Users] Drouting usage
marius zbihlei
marius.zbihlei at 1and1.ro
Mon Oct 25 15:51:32 CEST 2010
On 10/25/2010 04:16 PM, Javier Gallart wrote:
> Hello
>
> sorry if this sounds too "newbie". I'm interested in the drouting
> module. The first INVITE is correctly forwarded to the gw foudn in the
> drouting table:
> if (is_method("INVITE") && !has_totag()) {
> do_routing("0");
> record_route();
> }
> However for subsequent messages (ACK, BYE) in the dialog I don't know
> how to keep track of the ip resolved by the drouting logic so the
> messages are correctly forwarded to the same gw. I've made some tests
> using the dialog module with no success. Any hint?
>
> Thanks in advance
>
> Javier
Hello
You might want to use loose_route() to perform loose routing (defined in
RFC 3261) of in-dialog requests. (Loose_route also performs strict routing)
if (has_totag()){
loose_route();
t_relay();
exit;
}
Marius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101025/bc0d7d5d/attachment.htm>
More information about the sr-users
mailing list