[OpenSIPS-Users] routing module

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Feb 16 23:28:12 CET 2009


Hi Julien,

Julien Chavanton wrote:
> I am using "opensips-1.4.3-notls"
>  
> I need to route calls to differents remote gateway based on prefix in 
> the dialed number.
> Can you tell me if the module "carrierreoute", would be the 
> recommended solution ?
yes, carrierroute and lcr modules are the one for doing prefix based 
routing.
>  
> 1- README-MODULES file does not list "carrierroute" module
probably not updated :), but check :
    http://www.opensips.org/index.php?n=Resources.DocsModules14
> 2- "carrierroute" does not compile
>  
>   error : "route_config.c:30:21: error: confuse.h: No such file or 
> directory"
you need to install "libconfuse" package. See:
       
http://www.opensips.org/html/docs/modules/1.4.x/carrierroute.html#id227214

Regards,
bogdan
>  
> I would like to know if I am looking for the most 
> strait-forward/supported solution to meet my requirements ?
>  
> Thank you,
> Julien
>  
>  
>
>  
>
>
> ------------------------------------------------------------------------
> *From:* users-bounces at lists.opensips.org on behalf of Bogdan-Andrei Iancu
> *Sent:* Thu 22/01/2009 3:20 PM
> *To:* ibrahim tunali
> *Cc:* users at lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] drouting module - dr_gateways table 
> attrs field
>
> Hi Ibrahim,
>
> have you set the attr avp? Something like:
>     modparam("drouting", "attrs_avp", '$avp(s:dr_attrs)')
>
> Then after do_routing() or use_next_gw(), do :
>    xlog("-----gw attr is $avp(s:dr_attrs)\n");
>
> the value of the attr is whatever you want - the module does not 
> interpret it - it is just reading it from DB and pass it to the AVP 
> when you use the GW. It is your decision what to put there and how to 
> use the value.
>
>
> Regards,
> Bogdan
>
> ibrahim tunali wrote:
> > Hello,
> >
> > I'm playing with the new module drouting on svn trunk and i need to
> > get "which gateway is used on last request". I might be able to get it
> > with "attrs_avp" and "attrs" field on dr_gateways table, i guess. I
> > try some values to attrs but opensips crashed.
> >
> > Could you give an example to use attrs_avp and what is the value
> > format of "attrs" fields.
> >
> > Regards,
> >
> > Ibrahim TUNALI
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >  
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list