I have modified my dialplan configuration to apply url_encode() to the destination number I want to bridge to. <action application="bridge" data="sofia/gateway/voip-line1/${url_encode(${destination_number})}" /> So sofia receive a correctly escaped URI. Thanks. Giovanni -----Original Message----- From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Visciano Giovanni Sent: martedì 22 novembre 2011 14.57 To: freeswitch-dev@lists.freeswitch.org Subject: [Freeswitch-dev] Sofia - RFC2396 URI escape According to RFC2396 a sip URI should not contain reserved character in uri syntax (ex: #<>"). It seems sofia does not apply the escape function. For example using the cli to originate a call:
originate sofia/external/*2<1#@192.168.1.45 55
Result in: INVITE sip:*2<1#@192.168.1.45 SIP/2.0 Via: SIP/2.0/UDP 138.132.50.77:5080;rport;branch=z9hG4bK6KDeZ78yH4tFS Max-Forwards: 70 Regards Giovanni Internet Email Confidentiality Footer ----------------------------------------------------------------------------------------------------- La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto. This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred. ----------------------------------------------------------------------------------------------------- _________________________________________________________________________ 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-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org