[OpenSIPS-Devel] [ opensips-Bugs-2989001 ] consume_credentials problem

SourceForge.net noreply at sourceforge.net
Wed May 26 11:53:46 CEST 2010


Bugs item #2989001, was opened at 2010-04-18 17:56
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2989001&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.6.x
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Richard Revels (rrevels)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: consume_credentials problem

Initial Comment:
consume_credentials doesn't appear to work correctly for sequential requests.  I am just yanking the auth header for now but it seems like something that should be looked into.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-05-26 12:53

Message:
Thanks for the trace - I see the problem is for ACK and checking the code,
I see that ACK and CANCEL requests are not actually authenticated - simply
accepted. As no auth is done, "consume_credentials" has no idea what
credentials to remove from the message.

So, in script, you should differently deal (from auth pov) with ACKs and
CANCELs

Regards,
Bogdan



----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-04-28 20:52

Message:
So, actually there is no bug, right ?

----------------------------------------------------------------------

Comment By: Richard Revels (rrevels)
Date: 2010-04-20 17:15

Message:
No.  I noticed that in the docs and put an if() block in my BYE handler to
try auth and consume credentials if it passed.  Otherwise, mangle the
packet in other ways and send it on its way.  : >

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-04-20 13:34

Message:
the consume_credentials() will not remove any credentials that were not
used during an auth. So, if you do not do auth, you cannot remove them...
Is this your case?

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2989001&group_id=232389



More information about the Devel mailing list