[sr-dev] local_route block ?

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Sep 23 21:03:58 CEST 2009


On Sep 23, 2009 at 21:16, Juha Heinanen <jh at tutpro.com> wrote:
> Daniel-Constantin Mierla writes:
> 
>  > there is an event route for it -- WITH_EVENT_LOCAL_REQUEST must be 
>  > enabled at compilation:
>  > 
>  > event_route[tm:local-request] {
>  > ...
>  > }
> 
> daniel,
> 
> thanks for the hint.  i tried it like this:
> 
> event_route [tm:local-request] { # Handle locally generated requests
> 
>     xlog("L_INFO", "Routing locally generated $rm to <$ru>\n");
> 
> 	if (is_method("INVITE")) {
> 	    t_set_fr(10000);
>         };
>     }
> 
> and got to syslog:
> 
> Sep 23 21:12:19 localhost /usr/sbin/sip-proxy[29110]: INFO: Routing locally generated INVITE to <sip:jh_test_fi at 192.98.101.10:5074;transport=udp>
> 
> so the route gets executed, but after 10 secs nothing happens, i.e., the
> phone keeps on ringing.

Could you retry with the latest head?
> 
> according to tm readme, it should work:

Most of the function in the README were written way before this
local-request route. Some of them might even crash :-)


Andrei



More information about the sr-dev mailing list