Hi, I'm trying auth_b2b but I don't get it working. I try to get working the following scenario:
UA <----> OpenSIPS <-----> SEMS (SIP stack) <------> Asterisk gateway The aim is that SEMS, acting as a B2BUA, sends an INVITE to Asterisk, receives a 401 and re-sends the INVITE with authentication. 1) OpenSIPS sends the INVITE to SEMS: # OpenSIPS ---> SEMS INVITE sip:[EMAIL PROTECTED] SIP/2.0 To: <sip:[EMAIL PROTECTED]> From: "Alice" <sip:[EMAIL PROTECTED]>;tag=avpnu P-App-Name: auth_b2b P-App-Param:u=sems;d=asterisk;p=password 2) SEMS generate the INVITE and send to Asterisk: # SEMS ---> Asterisk INVITE sip:[EMAIL PROTECTED] SIP/2.0 From: sip:[EMAIL PROTECTED];tag=03558378-49187C98000F2716-4302F960 To: <sip:[EMAIL PROTECTED]> 3) Asterisk replies 401: # Asterisk ---> SEMS SIP/2.0 401 Unauthorized From: sip:[EMAIL PROTECTED];tag=03558378-49187C98000F2716-4302F960 To: <sip:[EMAIL PROTECTED]>;tag=as65c5313c WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="6d33feb1" 4) But now, instead of resending the INVITE with credentials, SEMS replies the 401 to OpenSIPS: # SEMS ---> OpenSIPS SIP/2.0 401 Unauthorized To: <sip:[EMAIL PROTECTED]>;tag=4A702FAC-49187C98000F2506-40706960 From: "Alice" <sip:[EMAIL PROTECTED]>;tag=avpnu WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="6d33feb1" Why? Is auth_b2b supposed to work? Thanks. -- Iñaki Baz Castillo _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
