11-25-2014 03:29 AM - editado 03-21-2019 08:27 AM
Hello Guys,
I made a XML application which runs just fine on a SPA 525 but not on the SPA 502 (have not tested on other 50X phones).
The issue is that the URL I return in a MenuItem for the tag <url> gets cut by the phone when it request it.
The Flow is
Phone Requests
and gets in return
| <?xml version="1.0" encoding="UTF-8"?> | |
| <CiscoIPPhoneMenu><Title>Bla BLa</Title> | |
| <Prompt>Bla Bla Bla</Prompt><MenuItem> | |
| <Name>Name1</Name> | |
| <URL>http://192.168.9.207:80/ | |
| </MenuItem> | |
| <MenuItem> | |
| <Name>Name1</Name> | |
| <URL>http://192.168.9.207:80/ | |
| </MenuItem> | |
| <MenuItem> | |
| <Name>Name3</Name> | |
| <URL>http://192.168.9.207:80/ | |
| </MenuItem> | |
| <SoftKeyItem><Name>Select</ |
Which ever entry i select now, i only see the request from the phone for http://192.168.9.207:80/
All Arguments are cut. The this play then writes
XML format error or invalid application
¡Resuelto! Ir a solución.
el 11-25-2014 11:26 AM
Note that there is XML Phone Applications space dedicated to XML Phone Applications questions.
But it seems to be rather obvious issue. '&' is not allowed char in URL (it is generic rule, nothing special for SPA502). Such special char needs to be escaped accordingly. So replace all occurrences of '&' by '&'. It should help.
By the way, it is mentioned in documentation.
Rate useful advices. It will help others to search solutions.
el 11-25-2014 11:26 AM
Note that there is XML Phone Applications space dedicated to XML Phone Applications questions.
But it seems to be rather obvious issue. '&' is not allowed char in URL (it is generic rule, nothing special for SPA502). Such special char needs to be escaped accordingly. So replace all occurrences of '&' by '&'. It should help.
By the way, it is mentioned in documentation.
Rate useful advices. It will help others to search solutions.
Descubra y salve sus notas favoritas. Vuelva a encontrar las respuestas de los expertos, guías paso a paso, temas recientes y mucho más.
¿Es nuevo por aquí? Empiece con estos tips. Cómo usar la comunidad Guía para nuevos miembros