UPnP problem

F

Franz Edler

My Windows XP PC connects to the Internet via ISDN (dial
up). I also have an internal LAN (192.168.0.xx) and I use
Internet Connection Sharing on the PC. Everything works
fine e.g. Web browsing on a second PC.

When I now connect a VoIP phone to my PC I expect that
the Windows XP PC acts as a Internet Gateway Device
according to UPnP. Indeed, when I activate a VoIP phone I
can see (via a protocol sniffer) that the VoIP phone
detects the Internet Gateway Device.
After a SOAP action "GetExternalIPAddress" the next step
is SOAP action "AddPortMapping". But then I always get an
internal server error 501 "action failed".

What can I do?

Franz

Details of the sniffed protocol are below:

POST /upnphost/udhisapi.dll?control=uuid:f4d719c0-96a8-
4e11-a7d0-419ac55c48c6+urn:upnp-org:serviceId:WANPPPConn1
HTTP/1.1
Host: 192.168.0.1:2869
Content-Length: 731
Content-Type: text/xml; charset="utf-8"
SOAPAction: "urn:schemas-upnp-
org:service:WANPPPConnection:1#AddPortMapping"

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
g/">
<SOAP-ENV:Body>
<u:AddPortMapping xmlns:u="urn:schemas-upnp-
org:service:WANPPPConnection:1">
<NewRemoteHost></NewRemoteHost>
<NewExternalPort>60124</NewExternalPort>
<NewProtocol>UDP</NewProtocol>
<NewInternalPort>5060</NewInternalPort>
<NewInternalClient>192.168.0.40</NewInternalClient>
<NewEnabled>1</NewEnabled>
<NewPortMappingDescription>s0EBLS
(192.168.0.40:5060) 60124 UDP</NewPortMappingDescription>
<NewLeaseDuration>0</NewLeaseDuration>
</u:AddPortMapping>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.0 500 Internal Server Error
Date: Thu, 25 Dec 2003 14:18:26 GMT
Connection: close
Server: Microsoft-Windows-NT/5.1 UPnP/1.0 UPnP-Device-
Host/1.0
Content-Length: 503
Content-Type: text/xml; charset="utf-8"
EXT:

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/"
SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodin
g/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode xmlns="">501</errorCode>
<errorDescription xmlns="">Action
Failed</errorDescription>
</UPnPError>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top