sofia current calls for a user
Hi Is there any way to use sofia apis to find out if currently there is a call from or to a user? reading sofia code shows that its using sip_dialogs table to track user presence and call data but there is no api call such as (sofia ...) which shows that data. thanx
What are you trying to accomplish? It sounds like maybe mod_limit could be used, depending on exactly what you are trying to do. -MC On Mon, May 21, 2012 at 10:10 AM, babak yakhchali < babak.freeswitch@gmail.com> wrote:
Hi Is there any way to use sofia apis to find out if currently there is a call from or to a user? reading sofia code shows that its using sip_dialogs table to track user presence and call data but there is no api call such as (sofia ...) which shows that data. thanx
For example I need to find out if user 1000@default is talking to someone or not. Currently I use "show channels like 1000" and then parse it for channels like sofia/internal/1000 or something like this. but as I mentioned, looking at mod_sofia code I see there is a table named sip_dialogs which contains info that I need but there is no api (or I donno about it) to show sip dialogs. I need some way to get that info if it is possible thanx
As stated by MC, mod_limit fulfills that role as a side effect. -BDF On May 22, 2012 8:56 AM, "babak yakhchali" <babak.freeswitch@gmail.com> wrote:
For example I need to find out if user 1000@default is talking to someone or not. Currently I use "show channels like 1000" and then parse it for channels like sofia/internal/1000 or something like this. but as I mentioned, looking at mod_sofia code I see there is a table named sip_dialogs which contains info that I need but there is no api (or I donno about it) to show sip dialogs. I need some way to get that info if it is possible thanx
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
http://wiki.freeswitch.org/wiki/Limit On May 22, 2012 11:25 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:
As stated by MC, mod_limit fulfills that role as a side effect.
-BDF On May 22, 2012 8:56 AM, "babak yakhchali" <babak.freeswitch@gmail.com> wrote:
For example I need to find out if user 1000@default is talking to someone or not. Currently I use "show channels like 1000" and then parse it for channels like sofia/internal/1000 or something like this. but as I mentioned, looking at mod_sofia code I see there is a table named sip_dialogs which contains info that I need but there is no api (or I donno about it) to show sip dialogs. I need some way to get that info if it is possible thanx
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
On Tue, May 22, 2012 at 8:30 AM, Brian Foster <bdfoster@endigotech.com>wrote:
http://wiki.freeswitch.org/wiki/Limit On May 22, 2012 11:25 AM, "Brian Foster" <bdfoster@endigotech.com> wrote:
As stated by MC, mod_limit fulfills that role as a side effect.
-BDF
FYI, I updated the limit wiki page to line up with what's in the source code, namely that if you set max to zero or a negative value that the limit is not a "limit" but basically just a counter. -MC
participants (3)
-
babak yakhchali
-
Brian Foster
-
Michael Collins