Dear SEMS experts:
I've spent several days studying SEMS presentations in kamailio world 2014, and 
saw the reg caching features very attractive. After several trial of 
installation, I found the code from github seems have more new features 
including sbc's reg_caching. After successful compilation and deployment as 
following, it looks like the reg_caching feature work as expected.
However, when I tried to make a call between phones registered through 
sbc(192.168.131.1/192.168.131.128) with active sbc profile use 
transparent.sbcprofile.conf.I always got a 404 error from sems sbc, I can not 
understand why it does not relay the invitation request to the kamailio 
server(which is the target registrar server with address 192.168.130.126:5060), 
and just send out 404 to phones.
Here attached all my configuration files and logs.
Any help or hint will be highly appreciated.
root@debian-64:/usr/local/etc/sems/etc# ifconfigeth0      Link encap:Ethernet  
HWaddr 00:0c:29:b6:85:a1            inet addr:192.168.131.1  
Bcast:192.168.131.255  Mask:255.255.252.0          inet6 addr: 
fe80::20c:29ff:feb6:85a1/64 Scope:Link          UP BROADCAST RUNNING MULTICAST  
MTU:1500  Metric:1          RX packets:1348470 errors:0 dropped:0 overruns:0 
frame:0          TX packets:81360 errors:0 dropped:0 overruns:0 carrier:0       
   collisions:0 txqueuelen:1000           RX bytes:138008044 (131.6 MiB)  TX 
bytes:21608738 (20.6 MiB)
eth1      Link encap:Ethernet  HWaddr 00:0c:29:b6:85:ab            inet 
addr:192.168.131.128  Bcast:192.168.131.255  Mask:255.255.252.0          inet6 
addr: fe80::20c:29ff:feb6:85ab/64 Scope:Link          UP BROADCAST RUNNING 
MULTICAST  MTU:1500  Metric:1          RX packets:1305531 errors:0 dropped:0 
overruns:0 frame:0          TX packets:1645 errors:0 dropped:0 overruns:0 
carrier:0          collisions:0 txqueuelen:1000           RX bytes:99699070 
(95.0 MiB)  TX bytes:420923 (411.0 KiB)
Thanks and Best RegardsYanchong Wang
                                          
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [run, udp_trsp.cpp:352] 
DEBUG: vv M [|] u recvd msg via UDP from 192.168.131.182:9960 vv.--++--.INVITE 
sip:[email protected] SIP/2.0..To: <sip:[email protected]>..From: 
phone03<sip:[email protected]>;tag=8177120b..Via: SIP/2.0/UDP 
192.168.131.182:9960;branch=z9hG4bK-d87543-1061629715-1--d87543-;rport..Call-ID:
 cc0b8d5096719662..CSeq: 1 INVITE..Contact: 
<sip:[email protected]:9960>..Max-Forwards: 70..Allow: INVITE, ACK, CANCEL, 
OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO..Content-Type: 
application/sdp..User-Agent: eyeBeam release 3004t stamp 16741..Content-Length: 
228....v=0..o=- 25816165 25816220 IN IP4 192.168.131.182..s=eyeBeam..c=IN IP4 
192.168.131.182..t=0 0..m=audio 6164 RTP/AVP 100 6 0 8 3 18 5 101..a=fmtp:101 
0-15..a=rtpmap:100 speex/16000..a=rtpmap:101 
telephone-event/8000..a=sendrecv..--++--
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [parse_sip_uri, 
parse_uri.cpp:338] DEBUG:  Converted URI port () to int (5060)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [parse_via_params, 
parse_via.cpp:521] DEBUG:  parsed branch: z9hG4bK-d87543-1061629715-1--d87543-
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [parse_via_params, 
parse_via.cpp:544] DEBUG:  has_rport: 1
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [match_request, 
trans_table.cpp:99] DEBUG:  Matching INVITE request
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [parse_sip_uri, 
parse_uri.cpp:338] DEBUG:  Converted URI port (9960) to int (9960)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [parse, 
AmMimeBody.cpp:588] DEBUG:  saving single-part body
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [sip_msg2am_request, 
SipCtrlInterface.cpp:606] DEBUG:  MIME body successfully parsed
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:765] DEBUG:  Received new request from 
<192.168.131.182:9960/udp> on intf #0
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:769] DEBUG:  req.method = <INVITE>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:772] DEBUG:  req.r_uri = <sip:[email protected]>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:773] DEBUG:  req.from_uri = 
<sip:[email protected]:9960>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:774] DEBUG:  req.from = <phone03 <sip:[email protected]>>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:775] DEBUG:  req.to = <<sip:[email protected]>>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:776] DEBUG:  req.callid = <cc0b8d5096719662>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:777] DEBUG:  req.from_tag = <8177120b>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:778] DEBUG:  req.to_tag = <>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:779] DEBUG:  cseq = <1>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:780] DEBUG:  req.route = <>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:781] DEBUG:  hdrs = <Allow: INVITE, ACK, CANCEL, OPTIONS, 
BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO..User-Agent: eyeBeam release 3004t 
stamp 16741..>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:782] DEBUG:  body-ct = <application/sdp>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handleSipMsg, 
AmSipDispatcher.cpp:105] DEBUG:  method: `INVITE' [6].
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [getActiveProfileMatch, 
SBC.cpp:278] DEBUG:  active profile = transparent
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [getActiveProfileMatch, 
SBC.cpp:290] DEBUG:  using call profile 'transparent' (from matching 
active_profile rule 'transparent')
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [AmSession, 
AmSession.cpp:86] DEBUG:  dlg = 0x2089b80
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [setOAEnabled, 
AmSipDialog.cpp:210] DEBUG:  enabling offer_answer on SIP dialog ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [setRel100State, 
AmSipDialog.cpp:204] DEBUG:  setting 100rel state for '' to 3
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [onInvite, SBC.cpp:336] 
DEBUG:  uac auth enabled for caller session.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [setLocalTag, 
AmSession.cpp:226] DEBUG:  AmSession::setLocalTag() - session id set to 
5B2A8A70-541015A8000D22B8-2EEDD700
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192eedd700] [handle_sip_request, 
SipCtrlInterface.cpp:788] DEBUG:  ^^ M [cc0b8d5096719662|] Ru SIP request 
INVITE handled ^^
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [_start, 
AmThread.cpp:65] DEBUG:  Thread 139746120353536 is starting.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [run, AmSession.cpp:264] 
DEBUG:  startup session
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [run, AmSession.cpp:268] 
DEBUG:  running session event loop
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [processingCycle, 
AmSession.cpp:373] DEBUG:  vv S [|5B2A8A70-541015A8000D22B8-2EEDD700] 
Disconnected, running, 0 UACTransPending, 0 usages vv
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [process, 
AmSession.cpp:659] DEBUG:  AmSession processing event
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onRxRequest, 
AmBasicSipDialog.cpp:308] DEBUG:  AmBasicSipDialog::onRxRequest(req = INVITE)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setOutboundInterface, 
AmBasicSipDialog.cpp:152] DEBUG:  setting outbound interface to 0
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setStatus, 
AmBasicSipDialog.cpp:84] DEBUG:  setting SIP dialog status: Disconnected->Trying
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onRxSdp, 
AmOfferAnswer.cpp:215] DEBUG:  entering onRxSdp(), oa_state=None
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [parse_sdp_line_ex, 
AmSdp.cpp:567] DEBUG:  parsing SDP message...
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [parse_sdp_connection, 
AmSdp.cpp:796] DEBUG:  SDP: got session level connection: IP4 192.168.131.182
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [parse_sdp_media, 
AmSdp.cpp:939] DEBUG:  SDP: got media: port 6164, payloads: 100 6 0 8 3 18 5 101
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setState, 
AmOfferAnswer.cpp:69] DEBUG:  setting SIP dialog O/A status: None->OfferRecved
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onRxSdp, 
AmOfferAnswer.cpp:265] DEBUG:  oa_state: None -> OfferRecved
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onSipRequest, 
CallLeg.cpp:925] DEBUG:  5B2A8A70-541015A8000D22B8-2EEDD700: SIP request 1 
INVITE received in Disconnected state
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onSipRequest, 
CallLeg.cpp:934] DEBUG:  handling request INVITE in disconnected state
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onSipRequest, 
AmSession.cpp:709] DEBUG:  onSipRequest: method = INVITE
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onInvite, 
SBCCallLeg.cpp:820] DEBUG:  processing initial INVITE sip:[email protected]
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [applySSTCfg, 
SBCCallLeg.cpp:276] DEBUG:  Enabling SIP Session Timers
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setSessionExpires, 
SessionTimer.cpp:508] DEBUG:  setSessionExpires(120)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setMinimumTimer, 
SessionTimer.cpp:516] DEBUG:  setMinimumTimer(90)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setSessionExpires, 
SessionTimer.cpp:508] DEBUG:  setSessionExpires(120)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setMinimumTimer, 
SessionTimer.cpp:516] DEBUG:  setMinimumTimer(90)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [configure, 
SessionTimer.cpp:208] DEBUG:  Configured session with EnableSessionTimer = yes, 
SessionExpires = 120, MinimumTimer = 90
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [updateTimer, 
SessionTimer.cpp:314] DEBUG:  using actual session interval 120
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [updateTimer, 
SessionTimer.cpp:327] DEBUG:  session refresher will be local UAS.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [removeTimer, 
AmSession.cpp:1248] DEBUG:  removing timer -2
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [removeTimer, 
AmSession.cpp:1248] DEBUG:  removing timer -1
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setTimers, 
SessionTimer.cpp:385] DEBUG:  Setting session interval timer: 120s, tag 
'5B2A8A70-541015A8000D22B8-2EEDD700'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setTimer, 
AmSession.cpp:1240] DEBUG:  setting timer -1 with timeout 120.000000
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setTimers, 
SessionTimer.cpp:392] DEBUG:  Setting session refresh timer: 60s, tag 
'5B2A8A70-541015A8000D22B8-2EEDD700'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setTimer, 
AmSession.cpp:1240] DEBUG:  setting timer -2 with timeout 60.000000
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [reply, 
AmBasicSipDialog.cpp:583] DEBUG:  reply: transaction found!
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setStatus, 
AmBasicSipDialog.cpp:84] DEBUG:  setting SIP dialog status: Trying->Early
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [send_reply, 
trans_layer.cpp:410] DEBUG:  reply_len = 321
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [is_opt_set, 
transport.cpp:76] DEBUG:  trsp_socket::socket_options = 0x2
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [is_opt_set, 
transport.cpp:76] DEBUG:  trsp_socket::socket_options = 0x2
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [send_reply, 
trans_layer.cpp:585] DEBUG:  Sending to 192.168.131.182:9960 <SIP/2.0 100 
Connecting..To: <sip:[email protected]...>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [send, udp_trsp.cpp:259] 
DEBUG: send  msg to 192.168.131.182:9960.--++--.SIP/2.0 100 Connecting..To: 
<sip:[email protected]>..From: 
phone03<sip:[email protected]>;tag=8177120b..Via: SIP/2.0/UDP 
192.168.131.182:9960;branch=z9hG4bK-d87543-1061629715-1--d87543-;rport=9960..Call-ID:
 cc0b8d5096719662..CSeq: 1 INVITE..Server: Sip Express Media Server (1.6.0 
(x86_64/linux))..Content-Length: 0....--++--
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [update_uas_reply, 
trans_layer.cpp:2126] DEBUG:  update_uas_reply(t=0x2089920)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  ruri pattern replace: '$r' -> 
'sip:[email protected]'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:761] DEBUG:  ruri = 'sip:[email protected]'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  from pattern replace: '$f' -> 'phone03 
<sip:[email protected]>'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:763] DEBUG:  from = 'phone03 <sip:[email protected]>'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  to pattern replace: '$t' -> 
'<sip:[email protected]>'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:764] DEBUG:  to = '<sip:[email protected]>'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  callid pattern replace: '$ci_leg2' -> 
'cc0b8d5096719662_leg2'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:765] DEBUG:  callid = 'cc0b8d5096719662_leg2'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:770] DEBUG:  outbound_proxy = 'sip:192.168.130.126:5060'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:771] DEBUG:  next_hop = '192.168.130.126:5060'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:1640] DEBUG:  transcoder is disabled
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:802] DEBUG:  sst_enabled = 'yes'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  append_headers pattern replace: 'P-Source-IP: 
$si\r\nP-Source-Port: $sp\r\n' -> 'P-Source-IP: 192.168.131.182..P-Source-Port: 
9960..'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:808] DEBUG:  append_headers = 'P-Source-IP: 
192.168.131.182..P-Source-Port: 9960..'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  auth_user pattern replace: '$P(u)' -> ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  auth_pwd pattern replace: '$P(p)' -> ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  auth_aleg_user pattern replace: '$P(au)' -> ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [replaceParameters, 
ParamReplacer.cpp:774] DEBUG:  auth_aleg_pwd pattern replace: '$P(ap)' -> ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:836] DEBUG:  set outbound_interface to 'extern'
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:1750] DEBUG:  aleg.activity_str = ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [evaluate, 
SBCCallProfile.cpp:1754] DEBUG:  bleg.activity_str = ''
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onSipRequest, 
AmSession.cpp:724] ERROR:  404 User not found
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [reply, 
AmBasicSipDialog.cpp:583] DEBUG:  reply: transaction found!
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onReplyOut, 
AmOfferAnswer.cpp:427] DEBUG:  after 404 reply to INVITE: resetting OA state
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setState, 
AmOfferAnswer.cpp:69] DEBUG:  setting SIP dialog O/A status: OfferRecved->None
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [setStatus, 
AmBasicSipDialog.cpp:84] DEBUG:  setting SIP dialog status: Early->Disconnected
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [send_reply, 
trans_layer.cpp:410] DEBUG:  reply_len = 364
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [is_opt_set, 
transport.cpp:76] DEBUG:  trsp_socket::socket_options = 0x2
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [is_opt_set, 
transport.cpp:76] DEBUG:  trsp_socket::socket_options = 0x2
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [send_reply, 
trans_layer.cpp:585] DEBUG:  Sending to 192.168.131.182:9960 <SIP/2.0 404 User 
not found..To: <sip:10022@polylin...>
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [send, udp_trsp.cpp:259] 
DEBUG: send  msg to 192.168.131.182:9960.--++--.SIP/2.0 404 User not found..To: 
<sip:[email protected]>;tag=5B2A8A70-541015A8000D22B8-2EEDD700..From: 
phone03<sip:[email protected]>;tag=8177120b..Via: SIP/2.0/UDP 
192.168.131.182:9960;branch=z9hG4bK-d87543-1061629715-1--d87543-;rport=9960..Call-ID:
 cc0b8d5096719662..CSeq: 1 INVITE..Server: Sip Express Media Server (1.6.0 
(x86_64/linux))..Content-Length: 0....--++--
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [update_uas_reply, 
trans_layer.cpp:2126] DEBUG:  update_uas_reply(t=0x2089920)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [reset_timer, 
sip_trans.cpp:246] DEBUG:  New timer of type G at time=18152 (repeated=0)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [reset_timer, 
sip_trans.cpp:246] DEBUG:  New timer of type H at time=19727 (repeated=0)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onReplySent, 
AmB2BSession.cpp:541] DEBUG:  relayed INVITE failed with 404 User not found
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onReplySent, 
AmB2BSession.cpp:543] DEBUG:  recvd_req.erase(<1,INVITE>)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [onTransFinished, 
CallLeg.cpp:1720] DEBUG:  UAC/UAS transaction finished
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [processingCycle, 
AmSession.cpp:392] DEBUG:  ^^ S 
[cc0b8d5096719662|5B2A8A70-541015A8000D22B8-2EEDD700] Disconnected, stopped, 0 
UACTransPending, 0 usages ^^
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [run, AmSession.cpp:275] 
DEBUG:  session event loop ended, finalizing session
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [finalize, 
AmSession.cpp:456] DEBUG:  running finalize sequence...
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [destroy, 
AmSession.cpp:501] DEBUG:  AmSession::destroy()
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [stop, AmThread.cpp:114] 
DEBUG:  Thread 139746120353536 (139746120353536) calling on_stop, give it a 
chance to clean up.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [on_stop, 
AmSession.cpp:472] DEBUG:  AmSession::stop()
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [clearAudio, 
AmSession.cpp:651] DEBUG:  Audio cleared !!!
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [stop, AmThread.cpp:129] 
DEBUG:  Thread 139746120353536 (139746120353536) finished detach.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [finalize, 
AmSession.cpp:464] DEBUG:  session is stopped.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192ddcc700] [_start, 
AmThread.cpp:68] DEBUG:  Thread 139746120353536 is ending.
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [run, udp_trsp.cpp:352] 
DEBUG: vv M [|] u recvd msg via UDP from 192.168.131.182:9960 vv.--++--.ACK 
sip:[email protected] SIP/2.0..To: 
<sip:[email protected]>;tag=5B2A8A70-541015A8000D22B8-2EEDD700..From: 
phone03<sip:[email protected]>;tag=8177120b..Via: SIP/2.0/UDP 
192.168.131.182:9960;branch=z9hG4bK-d87543-1061629715-1--d87543-;rport..Call-ID:
 cc0b8d5096719662..CSeq: 1 ACK..Content-Length: 0....--++--
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [parse_sip_uri, 
parse_uri.cpp:338] DEBUG:  Converted URI port () to int (5060)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [parse_via_params, 
parse_via.cpp:521] DEBUG:  parsed branch: z9hG4bK-d87543-1061629715-1--d87543-
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [parse_via_params, 
parse_via.cpp:544] DEBUG:  has_rport: 1
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [match_request, 
trans_table.cpp:99] DEBUG:  Matching ACK request
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [match_request, 
trans_table.cpp:118] DEBUG:  do_3261_match = 1
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [process_rcvd_msg, 
trans_layer.cpp:1621] DEBUG:  ACK matched INVITE transaction 0x2089920
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [update_uas_request, 
trans_layer.cpp:2203] DEBUG:  update_uas_request(t=0x2089920)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [reset_timer, 
sip_trans.cpp:188] DEBUG:  Clearing old timer of type G (this=0x2085540)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [reset_timer, 
sip_trans.cpp:188] DEBUG:  Clearing old timer of type H (this=0x2086ad0)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [reset_timer, 
sip_trans.cpp:246] DEBUG:  New timer of type I at time=18378 (repeated=0)
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [process_rcvd_msg, 
trans_layer.cpp:1624] DEBUG:  update_uas_request(bucket,t=0x2089920,msg) = 6
Sep 10 17:11:04 debian-64 sems[15891]: [#7f192f0df700] [process_rcvd_msg, 
trans_layer.cpp:1646] DEBUG:  Absorbing non-200-ACK
Sep 10 17:11:05 debian-64 sems[15891]: [#7f192eddc700] [run, udp_trsp.cpp:352] 
DEBUG: vv M [|] u recvd msg via UDP from 192.168.131.182:9960 vv.--++--...--++--
Sep 10 17:11:05 debian-64 sems[15891]: [#7f192eddc700] [received_msg, 
trans_layer.cpp:1572] DEBUG:  parse_sip_msg returned -7
Sep 10 17:11:05 debian-64 sems[15891]: [#7f192eddc700] [received_msg, 
trans_layer.cpp:1578] DEBUG:  parsing error: Could not parse first line
Sep 10 17:11:05 debian-64 sems[15891]: [#7f192eddc700] [received_msg, 
trans_layer.cpp:1580] DEBUG:  Message was: ".."
# profiles - comma-separated list of call profiles to load
#
# <name>.sbcprofile.conf is loaded from module config 
# path (the path where this file resides)
profiles=transparent,auth_b2b,sst_b2b

# active call profile - comma separated list, first non-empty is used
#
# o active_profile=<profile_name>  always use <profile_name>
#
# o active_profile=$(ruri.user)    use user part of INVITE Request URI
#
# o active_profile=$(paramhdr)     use  "profile" option in P-App-Param header
#
# o any replacement pattern
#
active_profile=transparent;sst_b2b;auth_b2b

# regex_maps - comma-separated list of regex maps to load at startup, for $M()
# 
# regex=>value maps for which names are given here are loaded from 
# this path, e.g. src_ipmap.conf, ruri_map.conf, usermap.conf
#
#regex_maps=src_ipmap,ruri_map,usermap

# load_cc_plugins - semicolon-separated list of call-control plugins to load
#                   here the module names (.so names) must be specified, 
without .so
#                   analogous to load_plugins in sems.conf
#
# e.g. load_cc_plugins=cc_pcalls;cc_ctl
load_cc_plugins=cc_pcalls;cc_ctl

# handle OPTIONS messages in the core? (with limits etc)
# Default: no
#core_options_handling=yes

## RFC4028 Session Timer
# default configuration - can be overridden by call profiles

# - enables the session timer ([yes,no]; default: no)
#
#enable_session_timer=yes

# - set the "Session-Expires" parameter for the session timer.
#
# session_expires=240

# - set the "Min-SE" parameter for the session timer.
#
# minimum_timer=90

# session refresh (Session Timer, RFC4028) method
#
# INVITE                 - use re-INVITE
# UPDATE                 - use UPDATE
# UPDATE_FALLBACK_INVITE - use UPDATE if indicated in Allow, re-INVITE otherwise
#
# Default: UPDATE_FALLBACK_INVITE
#
#session_refresh_method=UPDATE

# accept_501_reply - accept 501 reply as successful refresh? [yes|no]
#
# Default: yes
#
#accept_501_reply=no

# $Id$
#
# sems.conf.sample
#
# Sip Express Media Server (sems)
# 
# sample configuration file
# 
#
# whitespaces (spaces and tabs) are ignored
# comments start with a "#" and may be used inline
# 
# example: option=value # i like this option
#
# @filename includes mod_config_path/filename
# @/absolute/path/to/file includes file

############################################################
# Network configuration

# If only one signaling (SIP) and media (RTP) interface is
# to be used, configure the options
#    sip_ip / sip_port / media_ip/ rtp_low_port /
#    rtp_high_port / public_ip / sig_sock_opts
# If more than one interface is to be used, configure the option
# 'interfaces' and those options for each interface.

############# configuration for single interface ############
# optional parameter: sip_ip=<ip_address>|<device>
#
# - this informs SEMS about the SIP IP where its SIP stack is 
#   bound to or should be bound to. This also sets 
#   the value used for contact header in outgoing calls and 
#   registrations.
# - If neither 'media_ip' nor 'sip_ip' are set, defaults 
#   to first non-loopback interface. If 'media_ip' is set,
#   'sip_ip' defaults to 'media_ip.
#
# Example:
#  sip_ip=10.0.0.34
#  sip_ip=en0

# optional parameter: sip_port=<port_number>
#
# - this informs SEMS about the port where its SIP stack should
#   be bound to.
#   default: 5060
#
sip_port=5060

# optional parameter: media_ip=<ip_address>|<device>
#
# - this informs SEMS about the IP address or interface that
#   SEMS uses to send and receive media.
# - If neither 'media_ip' nor 'sip_ip' are set, defaults
#   to first non-loopback interface. If 'sip_ip' is set,
#   'media_ip' defaults to 'sip_ip.
#
# Examples:
#  media_ip=10.0.0.34
#  media_ip=eth0

# optional parameter: rtp_low_port=<port>
#
# - sets lowest for RTP used port (Default: 1024)
rtp_low_port=10000

# optional parameter: rtp_high_port=<port>
#
# - sets highest for RTP used port (Default: 0xffff)
rtp_high_port=60000

# optional parameter: public_ip=<ip_address>
# 
# - when running SEMS behind certain simple NAT configurations,
#   you can use this parameter to inform SEMS of its public IP
#   address. If this parameter is set, SEMS will write this value
#   into SDP bodies.
#   If this parameter is not set, the local IP address is used.
#   N.B., there is no support for port translation; the local 
#   RTP port is advertised in SDP in either case.
#   
# Example:
#  public_ip=75.101.219.48
#  

# optional parameter: sig_sock_opts=option,option,option,...
#
# - signaling socket options
#      o force_via_address   - force sending replies to 1st Via
# Example:
#  sig_sock_opts=force_via_address

# optional parameter: tcp_connect_timeout=<timeout in millisec>
# Default: 2000 (2 sec)

# optional parameter: tcp_idle_timeout=<timeout in millisec>
# Default: 3600000 (1 hour)

############# configuration for multiple interfaces ############
#   interfaces = <list of interface names>
#
# 'interfaces' must be set if more than one
# interface is to be used for the same purpose (e.g.
# more than one interface for SIP). Configure additional
# interfaces if networks should be bridged or separate
# networks should be served.
#
# For each interface, a set of parameters suffixed with the
# interface name should be configured.
#
# Please note that for each additional interface,
# 'sip_ip_[if_name]' is mandatory (but can be the interface
# name, then the first assigned IP is used). The other
# parameters are optional. 'media_ip_[if_name]'
# is derived from 'sip_ip_[if_name]' if not set.
# 'public_ip_[ip_name]' is also based on 'sip_ip_[if_name]'
# if not set explicitly.
# 
# Example:
  interfaces=intern,extern
#  
  sip_ip_intern=192.168.131.1
  sip_port_intern=5060
  media_ip_intern=eth0
  rtp_low_port_intern=2000
  rtp_high_port_intern=5000
#
  sip_ip_extern=192.168.131.128
  sip_port_extern=5060
#  media_ip_extern=213.192.59.73
  rtp_low_port_extern=2000
  rtp_high_port_extern=5000
#  public_ip_extern=213.192.35.73
#  sig_sock_opts_extern=force_via_address
#  tcp_connect_timeout_extern=1000
#  tcp_idle_timeout_extern=900000
############# other network configuration ############################## 

# NAT handling for SIP:sip_nat_handling={yes|no}
#
# Learn remote next hop address from the source of the address where
# requests are received from.
# This option does not apply to the sbc module.
#
# default: no
#
#sip_nat_handling=yes

# NAT handling for RTP: force_symmetric_rtp={yes|no}
#
# Force comedia style "symmetric RTP" NAT handling, i.e.
# learn remote RTP address from where RTP packets come from
# (This option does not apply to the sbc module's RTP relay)
#
# default: no
#
#force_symmetric_rtp=yes

# optional parameter: outbound_proxy=uri
#
# - this sets an outbound proxy for dialogs and registrations initiated 
#   by SEMS.  A preloaded Route header containing the uri is added to
#   each initial request.  The request is then sent to destination obtained
#   by resolving the uri. If outbound_proxy is not set (default setting),
#   no preloaded Route header is added and request is sent to destination
#   obtained by resolving r-uri.  Resolving is done by SIP stack with DNS
#   if uri contains domain name. Warning: If uri can not be resolved, no  
#   requests will be sent out at all!
#  
#   default: empty
#
# Example:
#   outbound_proxy=sip:proxy.mydomain.net

# optional parameter: force_outbound_proxy={yes|no}
#
# - forces SEMS to set outbound_proxy for any requests (not just for
#   registrations and dialog initiating requests). See above what setting
#   of outbound_proxy means.  This option will only have an effect if the
#   outbound_proxy option has been set, and it will break 3261 compatibility
#   in some cases; better use next_hop.
#
#   default: no
#
# Example:
#   force_outbound_proxy=yes

# optional parameter: next_hop=address[:port]
# - if this is set, all outgoing requests will be sent to
#   this address (IP address or domain name), regardless of R-URI etc.
#
# Examples:
#   next_hop=192.168.5.1
#   next_hop=foo.example.com:5080

# optional parameter: next_hop_1st_req={yes|no}
# - if set to yes, next_hop behavior (routing without pre-loaded route set)
#   applies only to initial request.  Subsequent requests are routed
#   normally based on route set learned from reply to initial request.
#
#   default: no
#
# Example:
#   next_hop_1st_req=yes

# optional parameter:next_hop_for_replies
# - use next_hop for replies, too?
#
#next_hop_for_replies=yes

############################################################
# modules and application configuration
#
# Configuration of plugin (module) loading:
# - if load_plugins is set, only those are loaded.
# - if load_plugins is not set, all modules in the plugin_path
#   directory are loaded, except those which are listed 
#   in exclude_plugins.
#

# optional parameter: plugin_path=<path>
# 
# - sets the path to the plug-ins' binaries
# - may be absolute or relative to CWD
plugin_path=/usr/local/lib/sems/plug-in/

# optional parameter: load_plugins=<modules list>
# 
# semicolon-separated list of modules to load.
# If empty, all modules in plugin_path are loaded.
#
# example for announcement with only g711 and ilbc codecs  
# load_plugins=wav;ilbc;announcement
#load_plugins=wav;isac;l16;speex;g722;gsm;ilbc;webconference
load_plugins=monitoring;session_timer;sbc;xmlrpc2di;uac_auth;stats;reg_agent;registrar_client

# optional parameter: exclude_plugins=<modules list>
#
# semicolon-separated list of modules to exclude from loading
# ('blacklist'). If empty, all modules in plugin_path are loaded.
# This has only effect it load_plugins is not set.
#
# o precoded_announce: no precoded sample files present
# o py_sems: conflicts with ivr (in some cases)
# o db_reg_agent: needs DB tables
# o cc_* : sbc call control modules (loaded from sbc.conf)
exclude_plugins=precoded_announce;py_sems;db_reg_agent;cc_call_timer;cc_ctl;cc_pcalls;cc_prepaid;cc_prepaid_xmlrpc;cc_rest;cc_syslog_cdr

# optional: load_plugins_rtld_global=<modules list>
#
# load these plugins with RTLD_GLOBAL (by default py_sems,
# dsm, ivr, sbc, diameter_client, registrar_client, uac_auth)
#
#load_plugins_rtld_global=myapp

# optional parameter: application
# 
# This controls which application is to be executed for incoming calls
# is no explicit application requested (outgoing calls)
#
# This can be one of 
#    $(ruri.user)       - user part of ruri is taken as application,
#                         e.g. sip:announcement@host
#    $(ruri.param)      - uri parameter "app", e.g. 
#                         sip:[email protected];app=announcement
#    $(apphdr)          - the value of the P-App-Name header is used
#
#    $(mapping)         - regex=>application mapping is read from
#                         app_mapping.conf (see app_mapping.conf)
#    <application name> - application name configured here, e.g.
#                         application=announcement
#   
# examples:
# application = conference
# application = $(mapping)
# application = $(ruri.user)
# application = $(ruri.param)
# application = $(apphdr)
application=sbc

# parameter: plugin_config_path=<path>
#
# - in this path configuration files of the applications 
#   (e.g. announcement.conf) are searched
plugin_config_path=/usr/local/etc/sems/etc/

# optional parameter: exclude_payloads=<payload list>
#
# semicolon-separated list of payloads to exclude from loading
# ('blacklist'). 
# 
# For example, to only use low bandwidth codecs:
#  exclude_payloads=PCMU;PCMA;G726-40;G726-32;G721;L16
# or, to use only codecs which are not CPU-intensive:
#  exclude_payloads=iLBC;speex;
# only use G711 (exclude everything else):
#  exclude_payloads=iLBC;speex;G726-40;G726-32;G721;G726-24;G726-16;GSM;L16

############################################################
# logging and running

# optional parameter: fork={yes|no}
# 
# - specifies if sems should run in daemon mode (background)
#   (fork=no is the same as -E)
fork=yes

# optional parameter: stderr={yes|no}
#
# - debug mode: do not fork and log to stderr
#   (stderr=yes is the same as -E)
stderr=no

# optional parameter: loglevel={0|1|2|3}
#
# - sets log level (error=0, warning=1, info=2, debug=3)
#   (same as -D)
loglevel=2

# optional parameter: syslog_facility={DAEMON|USER|LOCAL[0-7]}
#
# - sets the log facility that is used for syslog. Using this,
#   the log can for example be filtered into a special file 
#   by the syslog daemon.
#
# Default: DAEMON
#
# Example:
# syslog_facility=LOCAL0

# optional parameter: log_sessions=[yes|no]
# 
# Default: no
# 
# If log_sessions=yes is set, INFO level log messages are generated
# for each session when it is started and stopped.
#
# log_sessions=yes

# optional parameter: log_events=[yes|no]
# 
# Default: no
# 
# If log_eventy=yes is set, generic DBG level log messages are 
# generated for each event that is posted into an event queue.
#
# log_events=yes

# optional parameter: max_shutdown_time=<time in seconds>
#
# Limit on server shutdown time (time to send/resend BYE
# to active calls). 0 to disable (infinite).
#
# Default: 10
#
#max_shutdown_time = 10

# optional parameter: shutdown_mode_reply="<code> <reason>"
#
# Error reply that is used as reply to INVITE and OPTION
# when SEMS is shutting down.
#
# Default: shutdown_mode_reply="503 Server shutting down"

# optional parameter: cps_limit=<limit>;<err code>;<err reason>
# 
# - this sets a maximum calls per sec limit. If that limit is 
#   reached, no further calls are accepted, but the error reply 
#   with err code/err reason is sent out.
# 
# Default: 0 (None)
#
# Example:
#  cps_limit="100;503;Server overload"

############################################################
# tuning

# optional parameter: session_processor_threads=<num_value>
# 
# - controls how many threads should be created that
#   process the application logic and in-dialog signaling. 
#   This is only available if compiled with threadpool support!
#   (set USE_THREADPOOL in Makefile.defs)
#   Defaults to 10
#
# session_processor_threads=50

# optional parameter: media_processor_threads=<num_value>
# 
# - controls how many threads should be created that
#   process media - on single-processor systems set this 
#   parameter to 1 (default), on MP systems to a higher
#   value
#
# media_processor_threads=1

# optional parameter: rtp_receiver_threads=<num_value>
#
# - controls how many threads should be created that
#   receive and relay RTP media - on single-processor systems set this
#   parameter to 1 (default), on MP systems to a higher value.
#
# rtp_receiver_threads=1

# optional parameter: session_limit=<limit>;<err code>;<err reason>
# 
# - this sets a maximum active session limit. If that limit is 
#   reached, no further calls are accepted, but the error reply 
#   with err code/err reason is sent out.
# 
# Default: 0 (None)
#
# Example:
#  session_limit="1000;503;Server overload"

# optional parameter: options_session_limit=<limit>;<err code>;<err reason>
# 
# - this sets a custom response to OPTIONS, if the session count reaches
#   a certain limit. This way health monitor could raise an alarm to syste
#   administrator. 
# 
# Default: 0 (None)
#
# Example:
#  options_session_limit="900;503;Warning, server soon overloaded"

# optional parameter: dead_rtp_time=<unsigned int>
#
# - if != 0, after this time (in seconds) of no RTP
#   a session is considered dead and stopped. If set
#   to 0 no check is done for rtp timeout.
#
#   default=300 (5 minutes)
#
# Examples:
#    # disable RTP timeout
#    dead_rtp_time=0  
#    # RTP timeout after 10 seconds
#    dead_rtp_time=10  

# optional parameter: use_default_signature={yes|no}
#
# - use a Server/User-Agent header with the SEMS server 
#   signature and version.
#
#   default=no
#
use_default_signature=yes

# optional parameter: signature=<signature string>
#
# - use a Server/User-Agent header with a custom user agent
#   signature. Overridden by default signature if
#   use_default_signature is set.
#
# signature="SEMS media server 1.0"

# optional parameter: single_codec_in_ok={yes|no}
#
# - use single codec in 200 OK response
#
#   default=no
#
# single_codec_in_ok=no

# optional parameter: codec_order=codec_name_1,codec_name2,...
#
# - Codec order used when sending INVITE requests.  Codecs in codec_order
#   will be on the top of the list followed by other supported codecs
#   (if any).
#
#   default=empty
#
# codec_order=iLBC,GSM

# optional parameter: ignore_rtpxheaders={yes|no}
#
# - if this is set to yes, RTP extension headers (e.g. when using ZRTP)
#   are ignored. If set to no, the whole RTP packets with extension 
#   headers will be ignored and a debug message is printed on every 
#   received packet.
#
#   default=no
#
# ignore_rtpxheaders=yes

# optional parameter: dtmf_detector={spandsp|internal}
#
# sets inband DTMF detector to use. spandsp support must be compiled in
# for this to have effect if dtmf_detector=spandsp.
#  
# default: internal
#
# dtmf_detector=spandsp

# optional parameter: unhandled_reply_loglevel={error|warn|info|debug|no}
# 
# the default application logic implemented in the applications is to stop 
# the session right after sending BYE, without waiting for a reply. this 
# leads to many log entries of the form 
# ERROR: [b6fa6bb0] handleSipMsg (AmSipDispatcher.cpp:48): unhandled 
#    reply:  [code:200;phrase:[OK];... ]
#
# This parameter sets the log lovel of unhandled positive (200 class) replies.
#
# default: error
# 
# unhandled_reply_loglevel=info

############################################################
# SIP stack settings
#   default settings (i.e. leave out) for these should be OK
#   for most applications

# Force use of the selected interface? (Default: no)
#
# Use IP_PKTINFO to force use of the selected interface for sending
# packets. Useful in situations with overlapping IP address spaces, when
# the kernel routing table should not be used to determine the sending
# interface.
#
# force_outbound_if=yes

# SIP timers configuration (in milliseconds)
#
# sip_timer_a=<n millisec>
# sip_timer_b=<n millisec>
# ...
# sip_timer_m=<n millisec>
#
# timers A to J as in RFC3261.
# Timer L: handle 200 ACKs automatically in INVITE client trans.
# Timer M: cycle throught multiple addresses in case the R-URI
#          resolves to multiple addresses
#
# Warning: Timer values are not checked whether they are appropriate!
#          Leave to default values if in doubt.
#
# Example:
#  # equivalent to fr_timer=20 in sip-router
#  sip_timer_b=20000
#  sip_timer_f=20000

# sip_timer_t2=<n millisec)   T2 timer configuration
#  (Cap for re-send request/response backoff)
#
# Warning: Timer values are not checked whether they are appropriate!
#          Leave to default values if in doubt.
#
#sip_timer_t2=4000

# skip DNS SRV lookup? [yes, no]
#
# according to RFC, if no port is specified, destination IP address
# should be resolved with a DNS SRV lookup. If SEMS should not do that
# (only an A record lookup), set disable_dns_srv=yes.
#
# Default: no
#
#disable_dns_srv=yes

# support 100rel (PRACK) extension (RFC3262)? [disabled|supported|require]
#
# disabled - disable support for 100rel
# supported - support it if remote end does, default
# require - required
#
# Default: supported
#
#100rel=require

# force the use of outbound interface? [yes, no]
#
# Useful in case of overlapping networks, or if OS routing can/should not be 
used. 
# Default: no
#
 force_outbound_if=yes

# use raw sockets for sending? [yes, no]
# faster, requires root or CAP_NET_RAW
#
# Default: no
#
# use_raw_sockets=yes

#
# accept forked dialogs on UAS side? [yes|no]
#
#  no - INVITE with existing callid+remote_tag is replied with 482.
# yes - INVITE with existing callid+remote_tag+via_branch is replied with 482.
#       Forked INVITEs (!= via-branch) are accepted. 
#
# Default: yes
#
#accept_forked_dialogs=no

# Make SIP authenticated requests sticky to the proxy? [yes | no]
#
# If enabled, host of request-URI of out-of-dialog requests that are 
# authenticated with SIP auth is changed to the previously resolved
# next-hop IP:port.
#
# default: no
#
# proxy_sticky_auth=yes

# Ignore too low CSeq for NOTIFYs? [yes | no]
#
# May be necessary to interwork with simplistic/old SIP event notification 
# implementations.
#
#ignore_notify_lower_cseq=yes

#
# Accept final replies without To-tag? [yes|no]
#
accept_fr_without_totag=yes

#
# Log raw messages?  [no|debug|info|warn|error]
#
# Default: debug
#
#log_raw_messages=no

#
# Log parsed received messages?  [yes|no]
#
# Default: yes
#
#log_parsed_messages=no

# SIP UDP socket receive buffer size (in bytes)
#
# if not set, system default is used (which usually
# is modest). set sytem wide upper limit with
# e.g. sysctl -w net.core.rmem_max=8388608
#
# udp_rcvbuf = <value>

# Number of SIP UDP receiver threads
#
# Default: 4
#
# sip_server_threads=8
# transparent SBC profile
#
# This implements a transparent B2BUA - all possible options are commented

# defaults: transparent
RURI=$r
From=$f
To=$t

Contact=<sip:$Ri>

#Call-ID
Call-ID=$ci_leg2

## routing
# outbound proxy:
outbound_proxy=sip:192.168.130.126:5060
# force outbound proxy (in-dialog requests)?
force_outbound_proxy=yes
# destination IP[:port] for outgoing requests
next_hop=192.168.130.126:5060
# set RURI to (calculated) next_hop
#patch_ruri_next_hop=yes
# update next_hop from remote destination? (e.g. from SRV)
#next_hop_fixed=yes
# outbound interface to use (interface ID)
outbound_interface=extern

# registration cache: use local registration cache
 enable_reg_caching=yes
#   register upstream every 3600 sec
  min_reg_expires=3600
#   and make UA re-register every 60 sec
  max_ua_expires=60

# SIP NAT handling: recommended if dealing with far end NATs
#dlg_nat_handling=yes

## RTP relay
# enable RTP relaying (bridging):
#enable_rtprelay=yes
# force symmetric RTP (start with passive mode):
#rtprelay_force_symmetric_rtp=yes
# use symmetric RTP indication from P-MsgFlags flag 2
#rtprelay_msgflags_symmetric_rtp=yes
# RTP interface to use for A leg
#aleg_rtprelay_interface=intern
# RTP interface to use for B leg
#rtprelay_interface=intern
# use transparent RTP seqno? [yes]
#rtprelay_transparent_seqno=no
# use transparent RTP SSRC? [yes]
#rtprelay_transparent_ssrc=no

## filters: 
header_filter=blacklist
header_list=P-App-Param,P-App-Name
message_filter=transparent
#message_list=
sdp_filter=whitelist
sdpfilter_list=g729,g723,ilbc,speex,gsm,amr
# Filter A-Lines: Either black or whitelist
#sdp_alines_filter=whitelist
# Lines to be filtered, separated by ","
#sdp_alinesfilter_list=crypto,x-cap
#sdp_anonymize=yes

## append extra headers
append_headers="P-Source-IP: $si\r\nP-Source-Port: $sp\r\n"

## subscription-less NOTIFY pass through
#allow_subless_notify=no

## reply translations
# translate some 6xx class replies to 4xx class:
#reply_translations="603=>488 Not acceptable here|600=>406 Not Acceptable"

## fix replaces for call transfers
 fix_replaces_inv=yes
 fix_replaces_ref=yes

## authentication:
enable_auth=yes
auth_user=$P(u)
auth_pwd=$P(p)

## authentication for A (caller) leg:
enable_aleg_auth=yes
auth_aleg_user=$P(au)
auth_aleg_pwd=$P(ap)

## UAS auth for B leg
uas_auth_bleg_enabled=yes
uas_auth_bleg_realm=$P(sr)
uas_auth_bleg_user=$P(su)
uas_auth_bleg_pwd=$P(sp)

## call timer
#enable_call_timer=yes
#call_timer=60
# or, e.g.: call_timer=$P(t)

## prepaid
#enable_prepaid=yes
#prepaid_accmodule=cc_acc
#prepaid_uuid=$H(P-Caller-Uuid)
#prepaid_acc_dest=$H(P-Acc-Dest)

## session timer:
enable_session_timer=yes
# if any of the session timer parameters below are not defined here,
# the values from sbc.conf are used, or the default values
session_expires=120
minimum_timer=90
#session_refresh_method=UPDATE_FALLBACK_INVITE
#accept_501_reply=yes

##separate SST configuration for A (caller) leg, optional:
#enable_aleg_session_timer=yes
#aleg_session_expires=120
#aleg_minimum_timer=90
#aleg_maximum_timer=900
#aleg_session_refresh_method=UPDATE_FALLBACK_INVITE
#aleg_accept_501_reply=yes

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to