miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QueryStateVariable

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Thu Jun 06, 2013 8:32 pm    Post subject: QueryStateVariable Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Thu Jun 06, 2013 9:21 pm    Post subject: Reply with quote

isn't QueryStateVariable deprecated ?
it was only added to be compatible with old windows stuff...

Please provide the log
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Thu Jun 06, 2013 10:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Fri Jun 07, 2013 8:44 am    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Fri Jun 07, 2013 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Sat Jun 08, 2013 8:24 am    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Wed Jun 12, 2013 5:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Thu Jun 13, 2013 11:56 am    Post subject: Reply with quote

RequestConnection() / ForceTermination() are not supported by miniupnpd.
They are implemented, but return 606 Action not authorized
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Fri Jun 14, 2013 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Fri Jun 14, 2013 1:05 am    Post subject: Reply with quote

it looks like it should be added to the SendSSDPNotify...
Back to top
View user's profile Send private message
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Sat Jun 15, 2013 1:00 am    Post subject: Reply with quote

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
View user's profile Send private message
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Sat Jun 15, 2013 2:15 am    Post subject: Reply with quote

took awhile, but I figure it out Smile
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1452

PostPosted: Sat Jun 15, 2013 12:56 pm    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Mon Jun 17, 2013 4:31 pm    Post subject: Reply with quote

exactly what i did Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.