good evening, trying the git version of sems, I have problems with auth_b2b:
this is what I expected (based on the .conf): #Caller SEMS auth_b2b 123@domainb # | | | # | INVITE bob@domaina | | # | From: alice@domaina | | # | To: bob@domaina | | # | P-App-Param:u=user;d=domainb;p=passwd | # |-------------------->| | # | |INVITE bob@domainb | # | |From: user@domainb | # | |To: bob@domainb | # | |----------------------->| # | | | # | | 401 Unauthorized | (401 instead of 407) # | |<---------------------- | # | | | # | | | # | | INVITE w/ auth | # | |----------------------->| # | | | # | | 100 trying | # | 100 trying |<---------------------- | # |<--------------------| | # | | 183 Session progress | (added) # |<--------------------|<-----------------------| # | | | # | | 200 OK | # | 200 OK |<---------------------- | # |<--------------------| | # | | | # | ACK | | # |-------------------->| ACK | # | |----------------------->| and how it failed instead: #Caller SEMS auth_b2b 123@domainb # | | | # | INVITE bob@domaina | | # | From: alice@domaina | | # | To: bob@domaina | | # | P-App-Param:u=user;d=domainb;p=passwd | # |-------------------->| | # | 100 Connecting | | # |<--------------------| | # | | | # | |INVITE bob@domainb | # | |From: user@domainb | # | |To: bob@domainb | # | |----------------------->| # | | | # | | 401 Unauthorized | # | |<---------------------- | # | | | # | | ACK | # | |----------------------->| # | | | # | | INVITE w/ auth | # | |----------------------->| # | | | # | 487 Request terminated | # |<--------------------| | # | | | # | ACK | | # |-------------------->| | # | | 100 trying | # | |<---------------------- | # | | | # | | 183 Session progress | # | |<---------------------- | # | | | # | | 200 OK | # | |<---------------------- | # | | | # | | 200 OK | # | |<---------------------- | # | | | # | | 200 OK | # | |<---------------------- | here is the relevant part in the debug output, after the 401 reply: [#f62ffb70/28628] [onRxReply, AmBasicSipDialog.cpp:392] DEBUG: onRxReply(rep = 401 Unauthorized): transaction found! [#f62ffb70/28628] [setStatus, AmBasicSipDialog.cpp:80] DEBUG: setting SIP dialog status: Trying->Disconnected [#f62ffb70/28628] [onSipReply, SBCCallLeg.cpp:498] DEBUG: onSipReply: 401 Unauthorized (fwd=1) [#f62ffb70/28628] [onSipReply, SBCCallLeg.cpp:499] DEBUG: onSipReply: content-type = [#f62ffb70/28628] [onSipReply, UACAuth.cpp:135] DEBUG: SIP reply with code 401 cseq 10 . [#f62ffb70/28628] [onSipReply, UACAuth.cpp:141] DEBUG: UACAuth - processing with reply code 401 auth... [#f62ffb70/28628] [onSendRequest, SBCCallLeg.cpp:541] DEBUG: auth->onSendRequest cseq = 11 [#f62ffb70/28628] [onSendRequest, UACAuth.cpp:241] DEBUG: adding 11 to list of sent requests. [#f62ffb70/28628] [setStatus, AmBasicSipDialog.cpp:80] DEBUG: setting SIP dialog status: Disconnected->Trying [#f62ffb70/28628] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port (5060) to int (5060) [#f62ffb70/28628] [set_next_hop, trans_layer.cpp:735] DEBUG: next_hop:next_port is <sip.freevoipdeal.com:5060> [#f62ffb70/28628] [set_destination_ip, trans_layer.cpp:746] DEBUG: checking whether 'sip.freevoipdeal.com' is IP address... [#f62ffb70/28628] [set_destination_ip, trans_layer.cpp:788] DEBUG: set destination to sip.freevoipdeal.com:5060 [#f62ffb70/28628] [send_request, trans_layer.cpp:943] DEBUG: send_request to R-URI <sip:[email protected]:5060> [#f62ffb70/28628] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port (5060) to int (5060) [#f62ffb70/28628] [parse_via_params, parse_via.cpp:525] DEBUG: parsed branch: z9hG4bKqyd61att [#f62ffb70/28628] [parse_via_params, parse_via.cpp:548] DEBUG: has_rport: 1 [#f62ffb70/28628] [send_request, trans_layer.cpp:1013] DEBUG: Sending to 77.72.174.128:5060 <INVITE sip:[email protected]:506...> [#f62ffb70/28628] [send, udp_trsp.cpp:245] DEBUG: send msg ... [#f62ffb70/28628] [send_request, trans_layer.cpp:1029] DEBUG: update_uac_request tt->_t =(nil) [#f62ffb70/28628] [update_uac_request, trans_layer.cpp:1633] DEBUG: update_uac_request(t=0x97c7e38) [#f62ffb70/28628] [reset_timer, sip_trans.cpp:216] DEBUG: New timer of type A at time=3864 (repeated=0) [#f62ffb70/28628] [reset_timer, sip_trans.cpp:216] DEBUG: New timer of type B at time=5439 (repeated=0) [#f62ffb70/28628] [send_request, trans_layer.cpp:1038] DEBUG: logger = (nil) [#f62ffb70/28628] [onSipReply, UACAuth.cpp:204] DEBUG: authenticated request successfully sent. [#f62ffb70/28628] [onSipReply, SBCCallLeg.cpp:510] DEBUG: uac_auth consumed reply with cseq 10 and resent with cseq 11; updating relayed_req map [#f62ffb70/28628] [updateUACTransCSeq, AmB2BSession.cpp:418] DEBUG: updated relayed_req (UAC trans): CSeq 10 -> 11 [#f62ffb70/28628] [updateUACTransCSeq, AmB2BSession.cpp:423] DEBUG: updated est_invite_cseq: CSeq 10 -> 11 [#f62ffb70/28628] [onSipReply, CallLeg.cpp:814] DEBUG: 754975A5-519A80B10008BED7-F63FFB70: SIP reply 401/10 INVITE (to locally generated request) received in NoReply state [#f62ffb70/28628] [onSipReply, AmB2BSession.cpp:436] DEBUG: onSipReply: INVITE -> 401 Unauthorized (fwd=false), c-t= [#f62ffb70/28628] [onSipReply, AmSession.cpp:852] DEBUG: Dialog status stays Trying (stopped=false) [#f62ffb70/28628] [onSipReply, AmB2BSession.cpp:489] DEBUG: relaying B2B SIP reply 401 Unauthorized [#f62ffb70/28628] [inplaceHeaderFilter, HeaderFilter.cpp:197] DEBUG: applying 1 header filters [#f62ffb70/28628] [relayEvent, SBCCallLeg.cpp:420] DEBUG: filtering body for reply 'INVITE' (c/t '') [#f62ffb70/28628] [filterSdp, SBCCallLeg.cpp:1334] DEBUG: filtering body [#f62ffb70/28628] [relayEvent, AmB2BSession.cpp:519] DEBUG: AmB2BSession::relayEvent: to other_id='28887BB3-519A80B10008960C-F67FFB70' [#f62ffb70/28628] [processingCycle, AmSession.cpp:397] DEBUG: ^^ S [05B57BC2-519A80B10008BEE5-F63FFB70|754975A5-519A80B10008BED7-F63FFB70] Trying, running, 1 UACTransPending, 0 usages ^^ [#f63ffb70/28627] [processingCycle, AmSession.cpp:378] DEBUG: vv S [V8JGkQmMoIcBvw56NZaPLOJrnvQ3Io|28887BB3-519A80B10008960C-F67FFB70] Early, running, 0 UACTransPending, 0 usages vv [#f63ffb70/28627] [onB2BReply, CallLeg.cpp:251] DEBUG: 28887BB3-519A80B10008960C-F67FFB70: B2B SIP reply 401/0 INVITE received in NoReply state [#f63ffb70/28627] [onB2BReply, CallLeg.cpp:282] DEBUG: established CSeq: 501180, forward: no [#f63ffb70/28627] [updateCallStatus, CallLeg.cpp:976] DEBUG: A leg 28887BB3-519A80B10008960C-F67FFB70 changing status from NoReply to Disconnected [#f63ffb70/28627] [terminateOtherLeg, CallLeg.cpp:113] DEBUG: trying to terminate other leg in Disconnected state -> terminating the others as well [#f63ffb70/28627] [updateCallStatus, CallLeg.cpp:976] DEBUG: A leg 28887BB3-519A80B10008960C-F67FFB70 changing status from Disconnected to Disconnected [#f63ffb70/28627] [reply, AmBasicSipDialog.cpp:487] DEBUG: reply: transaction found! [#f63ffb70/28627] [setStatus, AmBasicSipDialog.cpp:80] DEBUG: setting SIP dialog status: Early->Disconnected [#f63ffb70/28627] [send_reply, trans_layer.cpp:266] DEBUG: reply_len = 557 [#f63ffb70/28627] [is_opt_set, transport.cpp:63] DEBUG: trsp_socket::socket_options = 0x0 [#f63ffb70/28627] [is_opt_set, transport.cpp:63] DEBUG: trsp_socket::socket_options = 0x0 [#f63ffb70/28627] [send_reply, trans_layer.cpp:439] DEBUG: Sending to 77.180.71.227:5060 <SIP/2.0 487 Request terminated Record-Route: <sip...> [#f63ffb70/28627] [send, udp_trsp.cpp:245] DEBUG: send msg ... Sadly I don't understand the code. I tried, but there are so many classes I don't know what's going on. _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
