[OpenSIPS-Users] routing module
Julien Chavanton
jc at atlastelecom.com
Mon Feb 16 22:10:41 CET 2009
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 ?
1- README-MODULES file does not list "carrierroute" module
2- "carrierroute" does not compile
error : "route_config.c:30:21: error: confuse.h: No such file or directory"
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090216/3948dbf1/attachment-0001.htm
More information about the Users
mailing list