Stefan Sayer writes: > > one of the applications is when sems sbc sits between outside world and > > a sems application, such as voicemail: > > > > ua - public internet - proxy - sems sbc - sems application > > > > when session timer is on, re-invites to ua should use proxy and > > re-invites to sems app should go direct.
> this looks more like you would use next_hop directly, doesn't it? stefan, i cannot use next_hop in the above situation, because i don't know ip of sems application host, only its domain name. but i got routing working ok by passing from proxy to sems sbc header P-Call-Control: ctl;outbound_proxy=sip:as.test.fi:5090 the problem that remains is that when sems sbc sends session timer re-invite to sems application, it responds with '491 request pending' and sends bye after that. debug is below starting from sems application receiving in-dialog bye. -- juha Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [run, udp_trsp.cpp:213] DEBUG: vv M [|] u recvd msg via UDP vv#012--++--#012INVITE sip:127.0.0.1:5090 SIP/2.0#015#012Via: SIP/2.0/UDP 127.0.0.1:5090;branch=z9hG4bKCEnNsa5y;rport#015#012From: <sip:[email protected]>;tag=5623354F-4F4BD7C5000880EB-B5506B70#015#012To: "Juha Heinanen" <sip:[email protected]>;tag=607D68F1-4F4BD7C500087A7C-B5405B70#015#012CSeq: 10 INVITE#015#012Call-ID: 69779443-4F4BD7C500087A99-B5405B70#015#012Contact: <sip:[email protected]:5090>#015#012User-Agent: Sip Express Media Server (1.5.0 (x86/linux))#015#012Max-Forwards: 70#015#012Require: 100rel#015#012Supported: timer#015#012Session-Expires: 90#015#012Min-SE: 90#015#012Content-Type: application/sdp#015#012Content-Length: 443#015#012#015#012v=0#015#012o=sems 1 1 IN IP4 192.98.102.10#015#012s=sems#015#012c=IN IP4 192.98.102.10#015#012t=0 0#015#012m=audio 40000 RTP/AVP 101 102 8 0 3 2 9 96 97 98 99 100#015#012a=rtpmap:101 iLBC/8000#015#012a=rtpmap:102 speex/8000 #015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:3 GSM/8000#015#012a=rtpmap:2 G721/8000#015#012a=rtpmap:9 g722/8000#015#012a=rtpmap:96 telephone-event/8000#015#012a=rtpmap:97 G726-32/8000#015#012a=rtpmap:98 G726-24/8000#015#012a=rtpmap:99 G726-40/8000#015#012a=rtpmap:100 G726-16/8000#015#012a=sendrecv#015#012--++-- Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port (5090) to int (5090) Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [parse_via_params, parse_via.cpp:525] DEBUG: parsed branch: z9hG4bKCEnNsa5y Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [parse_via_params, parse_via.cpp:548] DEBUG: has_rport: 1 Feb 27 21:22:26 sip sems[15646]: [#0xb5102b70] [send_request, trans_layer.cpp:965] DEBUG: update_uac_request tt->_t =(nil) Feb 27 21:22:26 sip sems[15646]: [#0xb5102b70] [update_uac_request, trans_layer.cpp:1493] DEBUG: update_uac_request(t=0x8ad6380) Feb 27 21:22:26 sip sems[15646]: [#0xb5102b70] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type A at time=4858 (repeated=0) Feb 27 21:22:26 sip sems[15646]: [#0xb5102b70] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type B at time=6433 (repeated=0) Feb 27 21:22:26 sip sems[15646]: [#0xb5102b70] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type M at time=5233 (repeated=0) Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [match_request, trans_table.cpp:68] DEBUG: Matching INVITE request Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [match_request, trans_table.cpp:87] DEBUG: do_3261_match = 1 Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port (5090) to int (5090) Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [parse, AmMimeBody.cpp:566] DEBUG: saving single-part body Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [sip_msg2am_request, SipCtrlInterface.cpp:448] DEBUG: MIME body successfully parsed Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:571] DEBUG: Received new request from <127.0.0.1:5090> on intf #0 Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:575] DEBUG: req.method = <INVITE> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:578] DEBUG: req.r_uri = <sip:127.0.0.1:5090> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:579] DEBUG: req.from_uri = <sip:[email protected]:5090> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:580] DEBUG: req.from = <<sip:[email protected]>> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:581] DEBUG: req.to = <"Juha Heinanen" <sip:[email protected]>;tag=607D68F1-4F4BD7C500087A7C-B5405B70> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:582] DEBUG: req.callid = <69779443-4F4BD7C500087A99-B5405B70> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:583] DEBUG: req.from_tag = <5623354F-4F4BD7C5000880EB-B5506B70> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:584] DEBUG: req.to_tag = <607D68F1-4F4BD7C500087A7C-B5405B70> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:585] DEBUG: cseq = <10> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:586] DEBUG: req.route = <> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:587] DEBUG: hdrs = <User-Agent: Sip Express Media Server (1.5.0 (x86/linux))#015#012Max-Forwards: 70#015#012Require: 100rel#015#012Supported: timer#015#012Session-Expires: 90#015#012Min-SE: 90#015#012> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:588] DEBUG: body-ct = <application/sdp> Feb 27 21:22:26 sip sems[15646]: [#0xb5506b70] [handle_sip_request, SipCtrlInterface.cpp:594] DEBUG: ^^ M [69779443-4F4BD7C500087A99-B5405B70|607D68F1-4F4BD7C500087A7C-B5405B70] Ru SIP request INVITE handled ^^ Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [processingCycle, AmSession.cpp:401] DEBUG: vv S [69779443-4F4BD7C500087A99-B5405B70|607D68F1-4F4BD7C500087A7C-B5405B70] Connected, running, 0 UACTransPending vv Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [process, AmSession.cpp:752] DEBUG: AmSession processing event Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [onRxRequest, AmSipDialog.cpp:108] DEBUG: AmSipDialog::onRxRequest(req = INVITE) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [updateTimer, SessionTimer.cpp:313] DEBUG: using actual session interval 90 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [updateTimer, SessionTimer.cpp:326] DEBUG: session refresher will be local UAS. Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [removeTimer, AmSession.cpp:1268] DEBUG: removing timer -2 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [removeTimer, AmSession.cpp:1268] DEBUG: removing timer -1 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [setTimers, SessionTimer.cpp:384] DEBUG: Setting session interval timer: 90s, tag '607D68F1-4F4BD7C500087A7C-B5405B70' Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [setTimer, AmSession.cpp:1260] DEBUG: setting timer -1 with timeout 90.000000 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [setTimers, SessionTimer.cpp:391] DEBUG: Setting session refresh timer: 45s, tag '607D68F1-4F4BD7C500087A7C-B5405B70' Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [setTimer, AmSession.cpp:1260] DEBUG: setting timer -2 with timeout 45.000000 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [relayEvent, AmB2BSession.cpp:585] DEBUG: AmB2BSession::relayEvent: to other_id='7DCE3781-4F4BD7C5000871DF-B5708B70' Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [processingCycle, AmSession.cpp:419] DEBUG: ^^ S [69779443-4F4BD7C500087A99-B5405B70|607D68F1-4F4BD7C500087A7C-B5405B70] Connected, running, 0 UACTransPending ^^ Feb 27 21:22:26 sip sems[15646]: [#0xb5405b70] [processingCycle, AmSession.cpp:401] DEBUG: vv S [[email protected]|7DCE3781-4F4BD7C5000871DF-B5708B70] Connected, running, 1 UACTransPending vv Feb 27 21:22:26 sip sems[15646]: [#0xb5405b70] [onB2BEvent, AmB2BSession.cpp:138] DEBUG: AmB2BSession::onB2BEvent Feb 27 21:22:26 sip sems[15646]: [#0xb5405b70] [onB2BEvent, AmB2BSession.cpp:148] DEBUG: B2BSipRequest: INVITE (fwd=true) Feb 27 21:22:26 sip sems[15646]: [#0xb5405b70] [relayEvent, AmB2BSession.cpp:585] DEBUG: AmB2BSession::relayEvent: to other_id='607D68F1-4F4BD7C500087A7C-B5405B70' Feb 27 21:22:26 sip sems[15646]: [#0xb5405b70] [processingCycle, AmSession.cpp:419] DEBUG: ^^ S [[email protected]|7DCE3781-4F4BD7C5000871DF-B5708B70] Connected, running, 1 UACTransPending ^^ Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [processingCycle, AmSession.cpp:401] DEBUG: vv S [69779443-4F4BD7C500087A99-B5405B70|607D68F1-4F4BD7C500087A7C-B5405B70] Connected, running, 0 UACTransPending vv Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [onB2BEvent, AmB2BSession.cpp:138] DEBUG: AmB2BSession::onB2BEvent Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [onB2BEvent, AmB2BSession.cpp:190] DEBUG: B2BSipReply: 491 Request Pending (fwd=true) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [onB2BEvent, AmB2BSession.cpp:192] DEBUG: B2BSipReply: content-type = Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [reply, AmSipDialog.cpp:716] DEBUG: reply: transaction found! Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [parse_extensions, parse_extensions.cpp:74] DEBUG: mask of parsed extensions: 0x1. Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [send_reply, trans_layer.cpp:259] DEBUG: reply_len = 326 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [is_opt_set, transport.cpp:60] DEBUG: trsp_socket::socket_options = 0x0 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [send_reply, trans_layer.cpp:437] DEBUG: Sending to 127.0.0.1:5090 <SIP/2.0 491 Request Pending#015#012Via: SIP/2.0/UDP 127....> Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [send, transport.cpp:109] DEBUG: send msg#012--++--#012SIP/2.0 491 Request Pending#015#012Via: SIP/2.0/UDP 127.0.0.1:5090;branch=z9hG4bKCEnNsa5y;rport=5090#015#012From: <sip:[email protected]>;tag=5623354F-4F4BD7C5000880EB-B5506B70#015#012To: "Juha Heinanen" <sip:[email protected]>;tag=607D68F1-4F4BD7C500087A7C-B5405B70#015#012CSeq: 10 INVITE#015#012Call-ID: 69779443-4F4BD7C500087A99-B5405B70#015#012Content-Length: 0#015#012#015#012--++-- Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [update_uas_reply, trans_layer.cpp:1549] DEBUG: update_uas_reply(t=0x8ad64c0) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type G at time=4859 (repeated=0) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type H at time=6434 (repeated=0) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [removeTimer, AmSession.cpp:1268] DEBUG: removing timer -2 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [removeTimer, AmSession.cpp:1268] DEBUG: removing timer -1 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port (5090) to int (5090) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [set_next_hop, trans_layer.cpp:704] DEBUG: next_hop:next_port is <127.0.0.1:5090> Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [set_destination_ip, trans_layer.cpp:715] DEBUG: checking whether '127.0.0.1' is IP address... Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [set_destination_ip, trans_layer.cpp:757] DEBUG: set destination to 127.0.0.1:5090 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [send_request, trans_layer.cpp:884] DEBUG: send_request to R-URI <sip:[email protected]:5090> Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port (5090) to int (5090) Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [parse_via_params, parse_via.cpp:525] DEBUG: parsed branch: z9hG4bKzfoYLapu Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [parse_via_params, parse_via.cpp:548] DEBUG: has_rport: 1 Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [send_request, trans_layer.cpp:953] DEBUG: Sending to 127.0.0.1:5090 <BYE sip:[email protected]:5090 SIP/2.0#015#012Via: ...> Feb 27 21:22:26 sip sems[15646]: [#0xb5304b70] [send, transport.cpp:109] DEBUG: send msg#012--++--#012BYE sip:[email protected]:5090 SIP/2.0#015#012Via: SIP/2.0/UDP 127.0.0.1:5090;branch=z9hG4bKzfoYLapu;rport#015#012From: "Juha Heinanen" <sip:[email protected]>;tag=607D68F1-4F4BD7C500087A7C-B5405B70#015#012To: <sip:[email protected]>;tag=5623354F-4F4BD7C5000880EB-B5506B70#015#012CSeq: 11 BYE#015#012Call-ID: 69779443-4F4BD7C500087A99-B5405B70#015#012Content-Length: 0#015#012#015#012--++-- _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
