XML encoding attribute ?
Hi I have a questione regarding XML output in event socket or cli. Example : "+" in the fs_cli when issuing "conference xml_list" returns <caller_id_name>*%2B*4726262626</caller_id_name> When in fact my caller_id_name is "+4726262626". The printout shows no encoding attribute : <?xml version="1.0"?> I'm I correct to assume that if I can get encoding in utf-8, the "+" will be "+" and not "*%2B"* in the listing ? Does anybody know how I can accomplish this ? Im running ubuntu server 10.04 / FreeSWITCH Version 1.2.8+git~20130412T165647Z~3fde0e453e (git 3fde0e4 2013-04-12 16:56:47Z) best regards Torstein
FS Events Are _URL Encoded_ So *%2B = "+" * http://www.degraeve.com/reference/urlencoding.php *Regards A/t * On 5/3/13 10:44 AM, Torstein Knutsen wrote:
Hi
I have a questione regarding XML output in event socket or cli. Example : "+" in the fs_cli when issuing "conference xml_list" returns <caller_id_name>*%2B*4726262626</caller_id_name> When in fact my caller_id_name is "+4726262626".
The printout shows no encoding attribute : <?xml version="1.0"?>
I'm I correct to assume that if I can get encoding in utf-8, the "+" will be "+" and not "*%2B"* in the listing ?
Does anybody know how I can accomplish this ? Im running ubuntu server 10.04 / FreeSWITCH Version 1.2.8+git~20130412T165647Z~3fde0e453e (git 3fde0e4 2013-04-12 16:56:47Z)
best regards Torstein
_________________________________________________________________________ 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
Hi Thanks for your spport. So that means that there is no way around "conference xml_list" displaying %2B in my googling around for this I found many printouts where the encoding attribute in the XML was present, I was wondering if that had something to do with it (as it's missing in my installation) .. br Torstein On 3 May 2013 11:49, Antonio Teixeira <eagle.antonio@gmail.com> wrote:
FS Events Are *URL Encoded* So
*%2B = "+" * http://www.degraeve.com/reference/urlencoding.php
*Regards A/t *
On 5/3/13 10:44 AM, Torstein Knutsen wrote:
Hi
I have a questione regarding XML output in event socket or cli. Example : "+" in the fs_cli when issuing "conference xml_list" returns <caller_id_name>*%2B*4726262626</caller_id_name> When in fact my caller_id_name is "+4726262626".
The printout shows no encoding attribute : <?xml version="1.0"?>
I'm I correct to assume that if I can get encoding in utf-8, the "+" will be "+" and not "*%2B"* in the listing ?
Does anybody know how I can accomplish this ? Im running ubuntu server 10.04 / FreeSWITCH Version 1.2.8+git~20130412T165647Z~3fde0e453e (git 3fde0e4 2013-04-12 16:56:47Z)
best regards Torstein
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ 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
Sincerely i don't know BUT you are probably using esl to make that request. You could use your native language functions. Like for PHP http://php.net/manual/en/function.urldecode.php OR Use the FS APi http://wiki.freeswitch.org/wiki/Mod_commands#url_decode Workflow : eslData = esl.Query(conference xml_list) eslCleanData = url.decode(eslData) ..... A/t:) On 5/3/13 11:13 AM, Torstein Knutsen wrote:
Hi
Thanks for your spport.
So that means that there is no way around "conference xml_list" displaying %2B in my googling around for this I found many printouts where the encoding attribute in the XML was present, I was wondering if that had something to do with it (as it's missing in my installation) ..
br Torstein
On 3 May 2013 11:49, Antonio Teixeira <eagle.antonio@gmail.com <mailto:eagle.antonio@gmail.com>> wrote:
FS Events Are _URL Encoded_ So
*%2B = "+" * http://www.degraeve.com/reference/urlencoding.php
*Regards A/t *
On 5/3/13 10:44 AM, Torstein Knutsen wrote:
Hi
I have a questione regarding XML output in event socket or cli. Example : "+" in the fs_cli when issuing "conference xml_list" returns <caller_id_name>*%2B*4726262626</caller_id_name> When in fact my caller_id_name is "+4726262626".
The printout shows no encoding attribute : <?xml version="1.0"?>
I'm I correct to assume that if I can get encoding in utf-8, the "+" will be "+" and not "*%2B"* in the listing ?
Does anybody know how I can accomplish this ? Im running ubuntu server 10.04 / FreeSWITCH Version 1.2.8+git~20130412T165647Z~3fde0e453e (git 3fde0e4 2013-04-12 16:56:47Z)
best regards Torstein
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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 <mailto: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 <mailto: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 (2)
-
Antonio Teixeira
-
Torstein Knutsen