Direcotry Status with mod_xml_curl
Hi, I have been working with asterisk previously, recently came over Freeswitch platform. I dig up for the similar fucntionality of asteriks-realtime and found MOD_XML_CURL as the nearest match for dynamic directory(extension) creation. One good thing about asterisk-realtime was, it was compact in a single table and direct conversation with Asterisk and DB is possible , whereas in Freeswitch its through Webserver and curl requests. Watever, i accepted that! but one more thing i am missing is the status of SIP Registration (registered or not). Again, in asterisk realtime i can see the RTP port assigned to extension when it registers, this way i can see the current status reading the DB , and port number. Now the question is , how can i see this with mod_xml_curl ? and also, if any one can help me with the above mentioned grudges and crushes! -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Direcotry-Status-with-mod-xml-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hello, You want to use mod_event_socket to retrieve the registration status of a user. See the following; http://wiki.freeswitch.org/wiki/Event_Socket Hope this helps. Cal On Mon, Jan 28, 2013 at 12:10 PM, mehroz <mehroz.ashraf85@gmail.com> wrote:
Hi,
I have been working with asterisk previously, recently came over Freeswitch platform.
I dig up for the similar fucntionality of asteriks-realtime and found MOD_XML_CURL as the nearest match for dynamic directory(extension) creation. One good thing about asterisk-realtime was, it was compact in a single table and direct conversation with Asterisk and DB is possible , whereas in Freeswitch its through Webserver and curl requests. Watever, i accepted that! but one more thing i am missing is the status of SIP Registration (registered or not).
Again, in asterisk realtime i can see the RTP port assigned to extension when it registers, this way i can see the current status reading the DB , and port number.
Now the question is , how can i see this with mod_xml_curl ? and also, if any one can help me with the above mentioned grudges and crushes!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Direcotry-Status-with-mod-xml-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ 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
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
It's also possible to store the information in a ODBC database (core-db-dsn) and mod_sofia's odbc-dsn profile param. You can then query (read-only!) the registration DB tables directory. If you want to interact in realtime (ie no polling) collecting events and running async api commands via ESL is the way to go. It's similar to Asterisk's AMI and the events are very powerful. -Steve On 28 January 2013 17:07, Cal Leeming [Simplicity Media Ltd] < cal.leeming@simplicitymedialtd.co.uk> wrote:
Hello,
You want to use mod_event_socket to retrieve the registration status of a user.
See the following; http://wiki.freeswitch.org/wiki/Event_Socket
Hope this helps.
Cal
On Mon, Jan 28, 2013 at 12:10 PM, mehroz <mehroz.ashraf85@gmail.com>wrote:
Hi,
I have been working with asterisk previously, recently came over Freeswitch platform.
I dig up for the similar fucntionality of asteriks-realtime and found MOD_XML_CURL as the nearest match for dynamic directory(extension) creation. One good thing about asterisk-realtime was, it was compact in a single table and direct conversation with Asterisk and DB is possible , whereas in Freeswitch its through Webserver and curl requests. Watever, i accepted that! but one more thing i am missing is the status of SIP Registration (registered or not).
Again, in asterisk realtime i can see the RTP port assigned to extension when it registers, this way i can see the current status reading the DB , and port number.
Now the question is , how can i see this with mod_xml_curl ? and also, if any one can help me with the above mentioned grudges and crushes!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Direcotry-Status-with-mod-xml-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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
Thanks guys. I guess using mod_sofia's odbc-dsn param is what helped me out. ODBC using MySQL engine to store registration information in DB (that was already created when settting up xml_curl DB). It already had tables like "Sip_registration" and "SIP_presence" and some others too. However, this is not exactly what asterisk-realtime is about :) as i had to play with ODBC, Mysql, configuring 4-5 XML files, but surely a lot helpful if you want to query that user is online or not (YES, if the record exists). For those still lost in solution, this post is also helpful http://freeswitch-users.2379917.n2.nabble.com/Clustering-storing-registratio... -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Direcotry-Status-with-mod-xml-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Ah I didn't know about this - thanks :) Cal On Mon, Jan 28, 2013 at 5:45 PM, Steven Ayre <steveayre@gmail.com> wrote:
It's also possible to store the information in a ODBC database (core-db-dsn) and mod_sofia's odbc-dsn profile param.
You can then query (read-only!) the registration DB tables directory.
If you want to interact in realtime (ie no polling) collecting events and running async api commands via ESL is the way to go. It's similar to Asterisk's AMI and the events are very powerful.
-Steve
On 28 January 2013 17:07, Cal Leeming [Simplicity Media Ltd] < cal.leeming@simplicitymedialtd.co.uk> wrote:
Hello,
You want to use mod_event_socket to retrieve the registration status of a user.
See the following; http://wiki.freeswitch.org/wiki/Event_Socket
Hope this helps.
Cal
On Mon, Jan 28, 2013 at 12:10 PM, mehroz <mehroz.ashraf85@gmail.com>wrote:
Hi,
I have been working with asterisk previously, recently came over Freeswitch platform.
I dig up for the similar fucntionality of asteriks-realtime and found MOD_XML_CURL as the nearest match for dynamic directory(extension) creation. One good thing about asterisk-realtime was, it was compact in a single table and direct conversation with Asterisk and DB is possible , whereas in Freeswitch its through Webserver and curl requests. Watever, i accepted that! but one more thing i am missing is the status of SIP Registration (registered or not).
Again, in asterisk realtime i can see the RTP port assigned to extension when it registers, this way i can see the current status reading the DB , and port number.
Now the question is , how can i see this with mod_xml_curl ? and also, if any one can help me with the above mentioned grudges and crushes!
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Direcotry-Status-with-mod-xml-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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
_________________________________________________________________________ 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
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
participants (3)
-
Cal Leeming [Simplicity Media Ltd]
-
mehroz
-
Steven Ayre