It isn't how I'd do it nor how the feature was designed. Look at the nibblebill section for the right way to do it. I'll see if I can fix the wiki docs.... On Sat, Jan 15, 2011 at 12:02 AM, Boris Kovalenko <boris@tagnet.ru> wrote:
So, the wiki is incorrect? http://wiki.freeswitch.org/wiki/Mod_lcr#Adding_extra_channel_variables My lcr output look similar
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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@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