cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
559
Views
0
Helpful
1
Replies

SPA 50X and XML Application URL

3cxcisco08
Level 1
Level 1

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/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123&extensionstatus=yes</URL>
 </MenuItem>
 <MenuItem>
 <Name>Name1</Name>
 <URL>http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123&presenceinfo=yes</URL>
 </MenuItem>
 <MenuItem>
 <Name>Name3</Name>
 <URL>http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102&model=SPA123&fwdrules=yes</URL>
 </MenuItem>
 <SoftKeyItem><Name>Select</Name><URL>SoftKey:Select</URL><Position>1</Position></SoftKeyItem><SoftKeyItem><Name>Exit</Name><URL>Key:Services</URL><Position>2</Position></SoftKeyItem></CiscoIPPhoneMenu>

 

Which ever entry i select now, i only see the request from the phone for http://192.168.9.207:80/MyPhoneBridge/myphonebridge.aspx?extension=102 
All Arguments are cut. The this play then writes

XML format error or invalid application

 

 

1 Accepted Solution

Accepted Solutions

Dan Lukes
VIP Alumni
VIP Alumni

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 '&amp;'. It should help.

By the way, it is mentioned in documentation.

Rate useful advices. It will help others to search solutions.

 

 

 

View solution in original post

1 Reply 1

Dan Lukes
VIP Alumni
VIP Alumni

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 '&amp;'. It should help.

By the way, it is mentioned in documentation.

Rate useful advices. It will help others to search solutions.