mod_lcr and extra_vars
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
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
-- -Rupa
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
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
Hello! I've tested as You recommended. No success. Would You please provide an example?
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
The nibblebill example works. I use it all the time. a) are you on current git? b) can you provide your profile and debug logs? On Sat, Jan 15, 2011 at 9:12 AM, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
I've tested as You recommended. No success. Would You please provide an example?
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
Hello! I'll read nibblebill example more carefull and will do some tests and ask You if i'll need help still. Thank You!
The nibblebill example works. I use it all the time.
a) are you on current git?
b) can you provide your profile and debug logs?
On Sat, Jan 15, 2011 at 9:12 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
I've tested as You recommended. No success. Would You please provide an example?
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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
Hello! Thank You, Rupa, I got it working the nibblebill way. But, imho, the way with one extra_vars field is more simple.
The nibblebill example works. I use it all the time.
a) are you on current git?
b) can you provide your profile and debug logs?
On Sat, Jan 15, 2011 at 9:12 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
I've tested as You recommended. No success. Would You please provide an example?
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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
It may be more simple but it is less flexible. You can probably still do it the other way but it isn't how I designed the feature. On Sat, Jan 15, 2011 at 12:01 PM, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
Thank You, Rupa, I got it working the nibblebill way. But, imho, the way with one extra_vars field is more simple.
The nibblebill example works. I use it all the time.
a) are you on current git?
b) can you provide your profile and debug logs?
On Sat, Jan 15, 2011 at 9:12 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
I've tested as You recommended. No success. Would You please provide an example?
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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (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
participants (2)
-
Boris Kovalenko
-
Rupa Schomaker