<HTML dir=ltr><HEAD><TITLE>Re: [OpenSIPS-Users] drouting module - dr_gateways table attrs field</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText93344 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>I am using "opensips-1.4.3-notls"</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2>I need to route calls to differents remote gateway based on prefix in the dialed number.</FONT></DIV></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Can you tell me if the module "carrierreoute", would be the recommended solution ?</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2>1- README-MODULES file does not list "carrierroute" module </FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>2- "carrierroute" does not compile </FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2> </FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2> error : "route_config.c:30:21: error: confuse.h: No such file or directory"</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2>I would like to know if I am looking for the most strait-forward/supported solution to meet my requirements ?</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Thank you,</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2>Julien</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT> <FONT face=Verdana size=2></FONT><FONT face=Verdana size=2></FONT></DIV>
<P><FONT face=Verdana size=2></FONT> </P>
<DIV dir=ltr><BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> users-bounces@lists.opensips.org on behalf of Bogdan-Andrei Iancu<BR><B>Sent:</B> Thu 22/01/2009 3:20 PM<BR><B>To:</B> ibrahim tunali<BR><B>Cc:</B> users@lists.opensips.org<BR><B>Subject:</B> Re: [OpenSIPS-Users] drouting module - dr_gateways table attrs field<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Ibrahim,<BR><BR>have you set the attr avp? Something like:<BR> modparam("drouting", "attrs_avp", '$avp(s:dr_attrs)')<BR><BR>Then after do_routing() or use_next_gw(), do :<BR> xlog("-----gw attr is $avp(s:dr_attrs)\n");<BR><BR>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.<BR><BR><BR>Regards,<BR>Bogdan<BR><BR>ibrahim tunali wrote:<BR>> Hello,<BR>><BR>> I'm playing with the new module drouting on svn trunk and i need to<BR>> get "which gateway is used on last request". I might be able to get it<BR>> with "attrs_avp" and "attrs" field on dr_gateways table, i guess. I<BR>> try some values to attrs but opensips crashed.<BR>><BR>> Could you give an example to use attrs_avp and what is the value<BR>> format of "attrs" fields.<BR>><BR>> Regards,<BR>><BR>> Ibrahim TUNALI<BR>><BR>> _______________________________________________<BR>> Users mailing list<BR>> Users@lists.opensips.org<BR>> <A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR>><BR>> <BR><BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.opensips.org<BR><A href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A><BR></FONT></P></DIV></BODY></HTML>