Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Passing Caller_ID to MOD_LCR


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
chavpaskov at shaw.ca
Guest





PostPosted: Mon Feb 16, 2009 8:41 pm    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

Hi,
Is there a way to pass Caller Id to mod lcr and somehow to include it in a custom sql.
currently my dialplan looks like this:

<extension name="LCR">
<condition field="destination_number" expression="^1(\d+)$" break="never">
<action application="set" data="bypass_media=true" />
<action application="lcr" data="$1"/>
<action application="bridge" data="${lcr_auto_route}"/>
</condition>
</extension>
i guess that Caller_ID is already passed but i was thinking about making some LCR decisions based on Destination number and Caller_ID /Interstate,Intrastate for example/

Thanks for your time

Regards
Chav
Back to top
freeswitch-users at li...
Guest





PostPosted: Tue Feb 17, 2009 12:04 am    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

On 2/16/2009 7:40 PM, Tchavdar Paskov wrote:
Quote:
Quote:
Hi,
Is there a way to pass Caller Id to mod lcr and somehow to include it in
a custom sql.
currently my dialplan looks like this:

<extension name="LCR">
<condition field="destination_number" expression="^1(\d+)$"
break="never">
<action application="set" data="bypass_media=true" />
<action application="lcr" data="$1"/>
<action application="bridge" data="${lcr_auto_route}"/>
</condition>
</extension>
i guess that Caller_ID is already passed but i was thinking about
making some LCR decisions based on Destination number and Caller_ID
/Interstate,Intrastate for example/

Thanks for your time

mod_lcr doesn't make any decisions based on caller id. Probably the
best way to handle this would be to use profiles. You could extract the
areacode and use that to determine which profile to use. It would be
awkward if you want to handle all area codes -- but for a smaller set of
area codes it might be sufficient.


Quote:
Quote:
Regards
Chav




_______________________________________________
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
Back to top
chavpaskov at shaw.ca
Guest





PostPosted: Tue Feb 17, 2009 1:45 am    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

i was thinking more in direction of building custom sql that deals with both Caller_id and destination number. I'm aware that the current off the box mod_lcr has no such ability and that's why i asked if there is a way from dial plan to pass the caller_id_number channel variable to mod_lcr.
Thanks

----- Original Message -----
From: "Rupa Schomaker (lists)" <freeswitch-users@lists.rupa.com>
Date: Monday, February 16, 2009 9:01 pm
Subject: Re: [Freeswitch-users] Passing Caller_ID to MOD_LCR
To: freeswitch-users@lists.freeswitch.org

Quote:
On 2/16/2009 7:40 PM, Tchavdar Paskov wrote:
Quote:
Quote:
Hi,
Is there a way to pass Caller Id to mod lcr and somehow to
include it in
Quote:
Quote:
a custom sql.
currently my dialplan looks like this:

<extension name="LCR">
<condition
field="destination_number" expression="^1(\d+)$"
Quote:
Quote:
break="never">

<action application="set" data="bypass_media=true" />
Quote:
Quote:
<action
application="lcr" data="$1"/>
Quote:
Quote:
<action
application="bridge" data="${lcr_auto_route}"/>
Quote:
Quote:
</condition>
</extension>
i guess that Caller_ID is already passed but i was
thinking about
Quote:
Quote:
making some LCR decisions based on Destination number and
Caller_ID> > /Interstate,Intrastate for example/
Quote:
Quote:

Thanks for your time

mod_lcr doesn't make any decisions based on caller id.
Probably the
best way to handle this would be to use profiles. You
could extract the
areacode and use that to determine which profile to use.
It would be
awkward if you want to handle all area codes -- but for a
smaller set of
area codes it might be sufficient.


Quote:
Quote:
Regards
Chav




_______________________________________________
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
Back to top
chavpaskov at shaw.ca
Guest





PostPosted: Tue Feb 17, 2009 2:20 am    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

I also have another question.
When i insert my custom query it looks like the profile is loaded successfully but then when i place a call or use

lcr ########## default /which is where i defined the sql query/ and check the console output turns out that the switch is using the default sql guery .

How i can make sure that the custom sql is the only one that is to be executed.
/All required fields in the custom sql are in accordance with the requirements - it returns the exact required names and returned field number is also correct/.

Thank you agai for your time
Chav

----- Original Message -----
From: Tchavdar Paskov <chavpaskov@shaw.ca>
Date: Monday, February 16, 2009 10:44 pm
Subject: Re: [Freeswitch-users] Passing Caller_ID to MOD_LCR
To: freeswitch-users@lists.freeswitch.org

Quote:
i was thinking more in direction of building custom sql that
deals with both Caller_id and destination number. I'm aware that
the current off the box mod_lcr has no such ability and
that's why i asked if there is a way from dial plan to pass the
caller_id_number channel variable to mod_lcr.
Thanks

----- Original Message -----
From: "Rupa Schomaker (lists)" <freeswitch-users@lists.rupa.com>
Date: Monday, February 16, 2009 9:01 pm
Subject: Re: [Freeswitch-users] Passing Caller_ID to MOD_LCR
To: freeswitch-users@lists.freeswitch.org

Quote:
On 2/16/2009 7:40 PM, Tchavdar Paskov wrote:
Quote:
Quote:
Hi,
Is there a way to pass Caller Id to mod lcr and somehow to
include it in
Quote:
Quote:
a custom sql.
currently my dialplan looks like this:

<extension name="LCR">
<condition
field="destination_number" expression="^1(\d+)$"
Quote:
Quote:
break="never">

<action application="set" data="bypass_media=true" />
Quote:
Quote:
<action
application="lcr" data="$1"/>
Quote:
Quote:
<action
application="bridge" data="${lcr_auto_route}"/>
Quote:
Quote:
</condition>
</extension>
i guess that Caller_ID is already passed but i was
thinking about
Quote:
Quote:
making some LCR decisions based on Destination number and
Caller_ID> > /Interstate,Intrastate for example/
Quote:
Quote:

Thanks for your time

mod_lcr doesn't make any decisions based on caller id.
Probably the
best way to handle this would be to use profiles. You
could extract the
areacode and use that to determine which profile to use.
It would be
awkward if you want to handle all area codes -- but for a
smaller set of
area codes it might be sufficient.


Quote:
Quote:
Regards
Chav




_______________________________________________
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
Quote:
http://www.freeswitch.org

Back to top
freeswitch-users at li...
Guest





PostPosted: Tue Feb 17, 2009 9:19 am    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

On 2/17/2009 1:18 AM, Tchavdar Paskov wrote:
Quote:
I also have another question.
When i insert my custom query it looks like the profile is loaded
successfully but then when i place a call or use

lcr ########## default /which is where i defined the sql query/ and
check the console output turns out that the switch is using the
default sql guery .

lcr_admin show profiles

should show you the profiles loaded and the profile's settings.

"default" is a reserved profile name -- I should probably prevent that
from loading.

Quote:
How i can make sure that the custom sql is the only one that is to be
executed.
/All required fields in the custom sql are in accordance with the
requirements - it returns the exact required names and returned field
number is also correct/.

Thank you agai for your time
Chav

Try running with debug logging turned on (f8 on the console). This will
show the sql being passed to the database.


==

Regarding passing the callerid to the custom sql, let me see what I can
come up with...


_______________________________________________
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
Back to top
freeswitch-users at li...
Guest





PostPosted: Fri Feb 20, 2009 5:24 pm    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

Quote:
"default" is a reserved profile name -- I should probably prevent that
from loading.

correction, default is not reserved...

Quote:
Regarding passing the callerid to the custom sql, let me see what I can
come up with...

You can now specify channel variables in your custom sql. So, you
should be able to pass CID or a subset of CID to your custom sql. I've
updated the wiki with info on this.

beware: channel vars only work when called in the context of a session.
Using a profile that uses a custom sql with channel variables from the
commandline will result in an error.

-Rupa

_______________________________________________
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
Back to top
chavpaskov at shaw.ca
Guest





PostPosted: Sat Feb 21, 2009 2:48 pm    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

Rupa Schomaker (lists) wrote:
Quote:
Quote:
"default" is a reserved profile name -- I should probably prevent that
from loading.


correction, default is not reserved...


Quote:
Regarding passing the callerid to the custom sql, let me see what I can
come up with...


You can now specify channel variables in your custom sql. So, you
should be able to pass CID or a subset of CID to your custom sql. I've
updated the wiki with info on this.

beware: channel vars only work when called in the context of a session.
Using a profile that uses a custom sql with channel variables from the
commandline will result in an error.

-Rupa

_______________________________________________
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


do i have to upgrade to the latest trunk in order to pass channel
variables to mod_lcr?
Currently the version used is 1.0.trunk (12134M)
Regards
Chav

_______________________________________________
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
Back to top
freeswitch-users at li...
Guest





PostPosted: Sat Feb 21, 2009 5:00 pm    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

Quote:
do i have to upgrade to the latest trunk in order to pass channel
variables to mod_lcr?
Currently the version used is 1.0.trunk (12134M)
Regards
Chav


You need at least 12204.


_______________________________________________
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
Back to top
chavpaskov at shaw.ca
Guest





PostPosted: Sat Feb 21, 2009 6:03 pm    Post subject: [Freeswitch-users] Passing Caller_ID to MOD_LCR Reply with quote

Rupa Schomaker (lists) wrote:
Quote:
Quote:
do i have to upgrade to the latest trunk in order to pass channel
variables to mod_lcr?
Currently the version used is 1.0.trunk (12134M)
Regards
Chav



You need at least 12204.


_______________________________________________
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


Thank you very much. I'll try it and will keep you postged.
Chav

_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services