View previous topic :: View next topic |
Author |
Message |
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Thu Jun 06, 2013 8:32 pm Post subject: QueryStateVariable |
|
|
Since QueryStateVariable, any idea of how the state variables are supposed to be sent. I am failing a ForceTermination test due to this...
Added in my own code to bring up my connection |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Jun 06, 2013 9:21 pm Post subject: |
|
|
isn't QueryStateVariable deprecated ?
it was only added to be compatible with old windows stuff...
Please provide the log _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Thu Jun 06, 2013 10:43 pm Post subject: |
|
|
yeah it is deprecated, but for some reason the certification test is looking for the state variable when running the RequestConnection service... it might be a tool issue I'll contact the upnp.org group |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Fri Jun 07, 2013 8:44 am Post subject: |
|
|
anyway, there is a QueryStateVariable() method in upnpsoap.c
It handles PortMappingNumberOfEntries and ConnectionStatus, and ConnectionType and LastConnectionError are commented out.
you can easily add more. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Fri Jun 07, 2013 4:42 pm Post subject: |
|
|
how can you tell which state variables it is taking care of? I am not able to trace the function calls.
and connectionStatus is the one I'm trying to get to work for the certification test |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sat Jun 08, 2013 8:24 am Post subject: |
|
|
twear wrote: | how can you tell which state variables it is taking care of? I am not able to trace the function calls. |
just have a look into QueryStateVariable() method in upnpsoap.c
This part of the code is quite simple ! _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Wed Jun 12, 2013 5:31 pm Post subject: |
|
|
So I'm still investigating what exactly is going wrong, but from talking to someone at upnp.org.... It looks like there needs to be an event message sent out after RequestConnection. Is there a service which does something similar that I can look at? |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Jun 13, 2013 11:56 am Post subject: |
|
|
RequestConnection() / ForceTermination() are not supported by miniupnpd.
They are implemented, but return 606 Action not authorized _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Fri Jun 14, 2013 12:57 am Post subject: |
|
|
Yeah, so I implemented them into my backhaul...
but therequestConnection test is giving an error, apparently the connection status isn't being returned (it's null),. Not sure if you would know anything about this.
snippet of test case:
Quote: | 30.185s INFO: Checking responses status codes...
30.185s DEBUG: Action "CHECK_ACTION_OK_RESPONSE_SYNTAX" result: PASSED
30.185s DEBUG: Executing "CHECK_EVENT_MESSAGE_BODY" action
30.187s INFO: Checking event message body...
30.187s DEBUG: Checking event message body result: NOTRUN
30.187s DEBUG: Action "CHECK_EVENT_MESSAGE_BODY" result: EXECUTED
30.187s DEBUG: Step "step1" result: PASSED
30.187s DEBUG: Executing "statusCheck_Connected" test step
30.187s INFO: Checking if state variable 'ConnectionStatus' equals 'Connected'.
30.188s DEBUG: Exception occurs during "load" parameter value selection. Requested path: step1/event/request/ConnectionStatus Exception details: Missing event
30.192s ERROR: Value or regexp is null
30.192s DEBUG: Action "IS_MATCH" result: FAILED
30.192s DEBUG: Step "statusCheck_Connected" result: FAILED
|
|
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Fri Jun 14, 2013 1:05 am Post subject: |
|
|
it looks like it should be added to the SendSSDPNotify... |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Sat Jun 15, 2013 1:00 am Post subject: |
|
|
it looks like the notify events are never being sent out... At least I never see them in wireshark.
where does notifylist get populated? |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Sat Jun 15, 2013 2:15 am Post subject: |
|
|
took awhile, but I figure it out |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sat Jun 15, 2013 12:56 pm Post subject: |
|
|
I think you have to make sure that upnp_event_var_change_notify(EWanIPC); is called when the connection status is changed. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
twear
Joined: 01 Nov 2012 Posts: 80
|
Posted: Mon Jun 17, 2013 4:31 pm Post subject: |
|
|
exactly what i did |
|
Back to top |
|
|
|