[Freeswitch-users] XML encoding attribute ?

Antonio Teixeira eagle.antonio at gmail.com
Fri May 3 14:25:14 MSD 2013


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 at gmail.com 
> <mailto:eagle.antonio at 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 at freeswitch.org  <mailto:consulting at freeswitch.org>
>>     http://www.freeswitchsolutions.com
>>
>>     
>>     
>>
>>     Official FreeSWITCH Sites
>>     http://www.freeswitch.org
>>     http://wiki.freeswitch.org
>>     http://www.cluecon.com
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at 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 at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130503/326252b9/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list