Hi all! I can't get SEMS 1.5.0 registered using reg_agent. SIP flow is OK but right after when SEMS received a "200 OK" response the reg_agent modules goes to the registration cycle again. In 1.4.3 verion this configuration works good. Here are my configs and log:
/usr/local/etc/sems/sems.conf: media_ip=lo sip_ip=lo sip_port=5080 rtp_low_port=10000 rtp_high_port=60000 plugin_path=/usr/local/lib/sems/plug-in/ load_plugins=uac_auth;registrar_client;reg_agent application = $(apphdr) plugin_config_path=/usr/local/etc/sems/etc/ fork=yes stderr=no loglevel=2 log_sessions=yes log_events=yes use_default_signature=yes log_raw_messages=yes log_parsed_messages=yes /usr/local/etc/sems/etc/reg_agent.conf: domain=mydomain user=sems pwd=mypass display_name=sems auth_user=sems log: --++-- SIP/2.0 200 OK Via: SIP/2.0/UDP 127.0.0.1:5080;received=127.0.0.1;branch=z9hG4bKpbscHa0r;rport=5080 ….... CSeq: 51 REGISTER Call-ID: 03EAA451-50643E0200039CCF-9509F700 Contact: <sip:[email protected]:5080>;expires=3600 Server: OpenSIPS (1.8.1-tls (x86_64/linux)) Content-Length: 0 --++-- [#7f2f92df9700/11836] [parse_via_params, parse_via.cpp:525] DEBUG: parsed branch: z9hG4bKpbscHa0r [#7f2f92df9700/11836] [parse_via_params, parse_via.cpp:548] DEBUG: has_rport: 1 [#7f2f9509f700/11826] [send_request, trans_layer.cpp:992] DEBUG: update_uac_request tt->_t =(nil) [#7f2f9509f700/11826] [update_uac_request, trans_layer.cpp:1530] DEBUG: update_uac_request(t=0x7f2f6c008d20) [#7f2f9509f700/11826] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type E at time=643 (repeated=0) [#7f2f9509f700/11826] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type F at time=2218 (repeated=0) [#7f2f92df9700/11836] [received_msg, trans_layer.cpp:1288] DEBUG: Reply matched an existing transaction [#7f2f92df9700/11836] [update_uac_reply, trans_layer.cpp:1339] DEBUG: update_uac_reply(reply code = 200, trans=0x7f2f6c008d20) [#7f2f92df9700/11836] [reset_timer, sip_trans.cpp:140] DEBUG: Clearing old timer of type E (this=0x7f2f6c008bd0) [#7f2f92df9700/11836] [reset_timer, sip_trans.cpp:140] DEBUG: Clearing old timer of type F (this=0x7f2f6c008c10) [#7f2f92df9700/11836] [reset_timer, sip_trans.cpp:188] DEBUG: New timer of type K at time=868 (repeated=0) [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:606] DEBUG: Received reply: 200 OK [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:607] DEBUG: reply.callid = <03EAA451-50643E0200039CCF-9509F700> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:608] DEBUG: reply.from_tag = <1579EC72-50643E0200039B8C-93702700> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:609] DEBUG: reply.to_tag = <cb89901742d7fa34dfcce4fffa472cde.b560> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:610] DEBUG: reply.contact = <<sip:[email protected]:5080>;expires=3600> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:611] DEBUG: reply.to_uri = <sip:[email protected]:5080> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:612] DEBUG: cseq = <51> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:613] DEBUG: reply.route = <> [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:614] DEBUG: hdrs = <Server: OpenSIPS (1.8.1-tls (x86_64/linux)) > [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:615] DEBUG: body-ct = <> [#7f2f92df9700/11836] [postEvent, AmEventQueue.cpp:53] DEBUG: AmEventQueue: trying to post event [#7f2f92df9700/11836] [postEvent, AmEventQueue.cpp:64] DEBUG: AmEventQueue: event posted [#7f2f92df9700/11836] [handle_sip_reply, SipCtrlInterface.cpp:621] DEBUG: ^^ M [03EAA451-50643E0200039CCF-9509F700|1579EC72-50643E0200039B8C-93702700] ru SIP reply 200 OK handled ^^ [#7f2f9509f700/11826] [onSipReply, UACAuth.cpp:204] DEBUG: authenticated request successfully sent. [#7f2f9509f700/11826] [processEvents, AmEventQueue.cpp:83] DEBUG: event processed (15AmSipReplyEvent) [#7f2f9509f700/11826] [processEvents, AmEventQueue.cpp:79] DEBUG: before processing event (15AmSipReplyEvent) [#7f2f9509f700/11826] [get_reg, SIPRegistrarClient.cpp:254] DEBUG: get registration '1579EC72-50643E0200039B8C-93702700' [#7f2f9509f700/11826] [get_reg, SIPRegistrarClient.cpp:262] DEBUG: get registration : res = '139841652153952' (this = 23039968) [#7f2f9509f700/11826] [onRxReply, AmSipDialog.cpp:387] DEBUG: onRxReply(rep = 200 OK): transaction found! [#7f2f9509f700/11826] [onSipReply, AmSipRegistration.cpp:291] DEBUG: positive reply to REGISTER! [#7f2f9509f700/11826] [dump, AmUriParser.cpp:445] DEBUG: --- Uri Info --- [#7f2f9509f700/11826] [dump, AmUriParser.cpp:446] DEBUG: uri '<sip:[email protected]:5080> ' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:447] DEBUG: display_name 'Contact:' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:448] DEBUG: uri_user 'sems' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:449] DEBUG: uri_host '127.0.0.1' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:450] DEBUG: uri_port '5080' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:451] DEBUG: uri_hdr '' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:452] DEBUG: uri_param '' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:460] DEBUG: -------------------- [#7f2f9509f700/11826] [dump, AmUriParser.cpp:445] DEBUG: --- Uri Info --- [#7f2f9509f700/11826] [dump, AmUriParser.cpp:446] DEBUG: uri '<sip:[email protected]:5080>' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:447] DEBUG: display_name '' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:448] DEBUG: uri_user 'sems' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:449] DEBUG: uri_host '127.0.0.1' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:450] DEBUG: uri_port '5080' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:451] DEBUG: uri_hdr '' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:452] DEBUG: uri_param '' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:458] DEBUG: param 'expires'='3600' [#7f2f9509f700/11826] [dump, AmUriParser.cpp:460] DEBUG: -------------------- [#7f2f9509f700/11826] [onSipReply, AmSipRegistration.cpp:318] DEBUG: contact found [#7f2f9509f700/11826] [onSipReply, AmSipRegistration.cpp:325] DEBUG: got an expires of 3600 [#7f2f9509f700/11826] [onSipReply, AmSipRegistration.cpp:330] DEBUG: posting SIPRegistrationEvent to 'reg_agent' [#7f2f9509f700/11826] [processEvents, AmEventQueue.cpp:83] DEBUG: event processed (15AmSipReplyEvent) [#7f2f931fd700/11832] [trans_timer_cb, sip_trans.cpp:157] DEBUG: Transaction timer expired: type=K, trans=0x7f2f6c007890, eta=868, t=868 [#7f2f931fd700/11832] [reset_timer, sip_trans.cpp:140] DEBUG: Clearing old timer of type K (this=0x160a540) [#7f2f931fd700/11832] [trans_timer_cb, sip_trans.cpp:157] DEBUG: Transaction timer expired: type=K, trans=0x7f2f6c008d20, eta=868, t=868 [#7f2f931fd700/11832] [reset_timer, sip_trans.cpp:140] DEBUG: Clearing old timer of type K (this=0x7f2f780011b0) [#7f2f93702700/11827] [run, RegistrationAgent.cpp:190] DEBUG: Registration 0 does not exist or timeout. Creating registration. [#7f2f93702700/11827] [create_registration, RegistrationAgent.cpp:131] DEBUG: calling createRegistration [#7f2f93702700/11827] [postEvent, AmEventQueue.cpp:53] DEBUG: AmEventQueue: trying to post event [#7f2f93702700/11827] [postEvent, AmEventQueue.cpp:64] DEBUG: AmEventQueue: event posted [#7f2f9509f700/11826] [processEvents, AmEventQueue.cpp:79] DEBUG: before processing event (23SIPNewRegistrationEvent) [#7f2f9509f700/11826] [initFromLocalRequest, AmSipDialog.cpp:298] DEBUG: dialog callid is empty, updating from UACRequest [#7f2f9509f700/11826] [initFromLocalRequest, AmSipDialog.cpp:301] DEBUG: local_tag = 5F995895-50643E0C00039C6E-93702700 [#7f2f9509f700/11826] [onNewRegistration, SIPRegistrarClient.cpp:200] DEBUG: enabling UAC Auth for new registration. [#7f2f9509f700/11826] [onNewRegistration, SIPRegistrarClient.cpp:208] DEBUG: arg type is 5 [#7f2f9509f700/11826] [add_reg, SIPRegistrarClient.cpp:306] DEBUG: adding registration '5F995895-50643E0C00039C6E-93702700' (this = 23039968) [#7f2f9509f700/11826] [onSendRequest, UACAuth.cpp:241] DEBUG: adding 50 to list of sent requests. [#7f2f9509f700/11826] [parse_sip_uri, parse_uri.cpp:332] DEBUG: Converted URI port () to int (5060) Thx in advance! _______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
