[OpenSIPS-Users] Save gateway used on ACC Table when using drouting
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Jul 27 09:46:16 CEST 2016
Hi,
If the $avp(gw_id) is to hold the GW ID from DB table, you should not
use it in do_routing() call - as you built that do_routing(), the
$avp(gw_id) will be populated with the attribute field of the selected
GW, overwriting the already set GW ID.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 25.07.2016 19:01, Annus Fictus wrote:
> hello,
>
> I tried with:
>
> if (do_routing(,,,,"$avp(gw_id)")) {
> xlog("L_NOTICE","Gateway $avp(gw_id)");
>
> But $avp(gw_id) is always empty.
>
> On the module parameters:
>
> modparam("drouting", "gw_id_avp", '$avp(gw_id)')
>
> Any hint?
>
> Regards
>
>
> El 25/07/2016 a las 17:31, Jim DeVito escribió:
>> Sure thing!
>>
>> http://www.opensips.org/html/docs/modules/2.2.x/drouting.html#id294247
>>
>> Then just add to the acc module *_extra
>> "carrier_id=$avp(carrier_id_avp)" carrier_id being the column in your
>> acc database or log.
>>
>> Thanks!!
>>
>> ---
>> Jim DeVito
>>
>>
>> On 2016-07-25 08:20, Annus Fictus wrote:
>>> Hello,
>>>
>>> I'd like know if is possible save in the acc table the used gateway
>>> from drouting module to terminate a call.
>>>
>>> Regards
>>>
>>>
>>> _______________________________________________
>>> 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