[OpenSIPS-Users] usrloc on_reply route

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jun 2 20:31:03 CEST 2010


Hi Albert,


Albert Paijmans wrote:
> Hi,
>
> If I want to route all usrloc requsts to a media server, could I use 
> next gateway with the on_reply route?
well, of you want to route a request, why using some route dedicated for 
replies ? I suggest to read 
http://www.opensips.org/Resources/DocsCoreRoutes16
> When extension 101 dials 102 OpenSiPS will invite both extensions and 
> forward both channels to Asterisk via the gateway list. Asterisk and 
> OpenSIPS do not share a database and Asterisk does not know how to 
> find extensions. This way you could use any rtp media server, 
> Asterisk, Sailfin, Mobicents etc.

I'm not following you - 101 dials 102 - one extension calls another one 
- which are "both extensions" you are mentioning ?

Maybe you could try to detail a bit the flow.

Regards,
Bogdan
>
> Thanks
>
> Albert
>
> route[1] {
>         # for INVITEs enable some additional helper routes
>         if (is_method("INVITE")) {
>                 t_on_reply("3");
>                 t_on_failure("1");
>         }
>         if (!t_relay()) {
>                 sl_reply_error();
>         };
>         exit;
> }
>
> #Route for user lookups
> route[3]{
>         if (!lookup...
>
>
>
> onreply_route[3] {
>         xlog("incoming reply\n");
>
>
> if (use_next_gw()) {
>           xlog ("next gateway $ru \n");
>
>    t_relay();
>    exit;
>
> } else {
>    t_reply("503", "Service not available, no more
>    gateways");
>    exit;
> }
>
> }
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list