[Freeswitch-users] mod_lcr and extra_vars

Rupa Schomaker rupa at rupa.com
Fri Jan 14 18:46:34 MSK 2011


You aren't quite using it right.  You need to create a distinct sql
field for each var you want imported.  Not a single field with a list
of var=value like you show below.

On Mon, Jan 10, 2011 at 11:43 AM, Boris Kovalenko <boris at tagnet.ru> wrote:
> Hello!
>
>     I need to set extra vars with mod_lcr. I did as wiki recomended:
> 1) created sql column
> 2) modified sql quer
> 3) added <param name="export_fields" value="lcr_gw_extra_vars"/> to profile
> So, may lcr output looks nice:
> | Digit Match | Carrier     | Rate     | Codec | CID Regexp          |
> Limit |
> Dialstring
> |
>  | 734353      | tagnet.ru   | 0.00000  |       |
> |       |
> [lcr_carrier=tagnet.ru,lcr_rate=0.00000,lcr_gw_extra_vars=,v_tagnet_ats_dstport=50000]sofia/epbx/73435350101 at X.X.X.X:5060
>
> Unfortunatelly I can't see (and can't use) v_tagnet_ats_dstport variable
> in my cdr records (even with b-leg the variable isn't present) until I
> set import=v_tagnet_ats_dstport variable. But I thinked mod_lcr should
> do this?
> Something wrong with my configuration?
>
>
> --
> С уважением,
>   Борис Коваленко
>   ЗАО "Тагнет"
>   (3435) 494991
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
-Rupa



More information about the FreeSWITCH-users mailing list