Hello,
Thank you. I will put dlg_manage() before redirecting to route INVITE.
Regards,
Igor.
De : Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Envoyé : mercredi 12 avril 2017 11:44
À : Igor Potjevlesch <igor.potjevlesch(a)gmail.com>om>; sr-users(a)lists.kamailio.org
Objet : Re: [SR-Users] snmpstats issue
Hello,
you have to execute dlg_manage() before you relay the INVITE.
Cheers,
Daniel
On 12.04.17 11:37, Igor Potjevlesch wrote:
Hello,
Of course:
## Include parameters ##
import_file "kamailio_params.cfg"
####### Routing Logic ########
# Main SIP request routing logic
# - processing of any incoming SIP request starts with this route
# - note: this is the same as route { ... }
request_route {
# HOMER SIP CAPTURE CODE ------------------------------
#start duplicate the SIP message now
sip_trace();
setflag(25);
# ----------------------------------------------------
# per request initial checks
route(REQINIT);
# NAT detection
route(NATDETECT);
# CANCEL processing
if (is_method("CANCEL"))
{
setflag(FLT_ACC); # do accounting
xlog("L_WARN","time=[$Tf] call id=[$ci] call seq=[$cs]
contact header=[$ct] from uri=[$fu] from tag=[$ft] request's method=[$rm]
request's uri=[$ru] to uri=[$tu] to tag=[$tt] sip message id=[$mi] process id=[$pp] ip
source=[$si] flags=[$mf], caller have sent the CANCEL\n");
if (t_check_trans()) {
route(RELAY);
}
exit;
}
# handle requests within SIP dialogs
route(WITHINDLG);
### only initial requests (no To tag)
t_check_trans();
# authentication
route(AUTH);
# record routing for dialog forming requests (in case they are routed)
# - remove preloaded route headers
remove_hf("Route");
if (is_method("INVITE|SUBSCRIBE"))
record_route();
if (is_method("INVITE"))
route(INVITE);
dlg_manage();
if (is_method("OPTIONS"))
route(OPTIONS);
… and you must be right. My call scenario goes to route[RELAY] before "return;"
at the end of INVITE route. So, if I well understand, dlg_manage is never triggered.
Is that right?
Regards,
Igor.
De : Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Envoyé : mercredi 12 avril 2017 09:54
À : Igor Potjevlesch <mailto:igor.potjevlesch@gmail.com>
<igor.potjevlesch(a)gmail.com>om>; sr-users(a)lists.kamailio.org
<mailto:sr-users@lists.kamailio.org>
Objet : Re: [SR-Users] snmpstats issue
Hello,
it looks like you do not handle the INVITEs with dlg_manage(). Can you paste here the part
of config where dlg_manage() is used?
Cheers,
Daniel
On 11.04.17 19:36, Igor Potjevlesch wrote:
Hello,
What could explain that? As on my others Kamailio instances, the config file has
"dlg_manage();" into request_route.
Regards,
Igor.
De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com]
Envoyé : lundi 10 avril 2017 19:09
À : miconda(a)gmail.com <mailto:miconda@gmail.com> ; 'Kamailio (SER) - Users
Mailing List' <mailto:sr-users@lists.sip-router.org>
<sr-users(a)lists.sip-router.org>
Objet : RE: [SR-Users] snmpstats issue
Hello Daniel,
No. It's empty:
kamctl stats dialog
dialog:active_dialogs = 0
dialog:early_dialogs = 0
dialog:expired_dialogs = 0
dialog:failed_dialogs = 0
dialog:processed_dialogs = 0
Regards,
Igor.
De : sr-users [ <mailto:sr-users-bounces@lists.sip-router.org>
mailto:sr-users-bounces@lists.sip-router.org] De la part de Daniel-Constantin Mierla
Envoyé : lundi 10 avril 2017 16:12
À : Kamailio (SER) - Users Mailing List < <mailto:sr-users@lists.sip-router.org>
sr-users(a)lists.sip-router.org>
Objet : Re: [SR-Users] snmpstats issue
Hello,
if you do 'kamctl stats', do you see values for dialog statistics? (you should be
able to do do 'kamctl stats dialog' to get only them).
Cheers,
Daniel
On 10.04.17 15:18, Igor Potjevlesch wrote:
Hello,
On one of my Kamailio server, I don't have data returned by KAMAILIO-MIB::.
KAMAILIO-SIP-COMMON-MIB and KAMAILIO-SIP-SERVER-MIB look to work good.
Everything is configured as the other Kamailio instances, but there is nothing about
current dialog even if the module is loaded into Kamailio and called into kamailio.cfg.
Any idea?
Here is an output of snmpwalk:
snmpwalk -c legosnoc -v 1 <HOST> 1.3.6.1.4.1.34352
KAMAILIO-SIP-COMMON-MIB::kamailioSIPProtocolVersion.0 = STRING: SIP/2.0
KAMAILIO-SIP-COMMON-MIB::kamailioSIPServiceStartTime.0 = Timeticks: (0) 0:00:00.00
KAMAILIO-SIP-COMMON-MIB::kamailioSIPEntityType.0 = BITS: 20 proxyServer(2)
KAMAILIO-SIP-COMMON-MIB::kamailioSIPTransportRcv.ipv4."IP_HOST".5060 = BITS: 40
udp(1)
KAMAILIO-SIP-COMMON-MIB::kamailioSIPTransportRcv.ipv4."IP_HOST".5060 = BITS: 40
udp(1)
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.1 = STRING: METHOD_INVITE
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.2 = STRING: METHOD_CANCEL
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.3 = STRING: METHOD_ACK
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.4 = STRING: METHOD_BYE
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.5 = STRING: METHOD_INFO
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.6 = STRING: METHOD_OPTIONS
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.7 = STRING: METHOD_UPDATE
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.8 = STRING: METHOD_REGISTER
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.9 = STRING: METHOD_MESSAGE
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.10 = STRING: METHOD_SUBSCRIBE
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.11 = STRING: METHOD_NOTIFY
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.12 = STRING: METHOD_PRACK
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.13 = STRING: METHOD_REFER
KAMAILIO-SIP-COMMON-MIB::kamailioSIPMethodName.14 = STRING: METHOD_PUBLISH
KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryInRequests.0 = Counter32: 2680
KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryOutRequests.0 = Counter32: 1050
KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryInResponses.0 = Counter32: 3102
KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryOutResponses.0 = Counter32: 1630
KAMAILIO-SIP-COMMON-MIB::kamailioSIPSummaryTotalTransactions.0 = Counter32: 1518
KAMAILIO-SIP-COMMON-MIB::kamailioSIPCurrentTransactions.0 = Gauge32: 7
KAMAILIO-SIP-COMMON-MIB::kamailioSIPNumUnsupportedUris.0 = Counter32: 16
KAMAILIO-SIP-COMMON-MIB::kamailioSIPNumUnsupportedMethods.0 = Counter32: 0
KAMAILIO-SIP-COMMON-MIB::kamailioSIPOtherwiseDiscardedMsgs.0 = Counter32: 0
KAMAILIO-SIP-SERVER-MIB::kamailioSIPProxyStatefulness.0 = INTEGER: callStateful(3)
KAMAILIO-SIP-SERVER-MIB::kamailioSIPProxyRecordRoute.0 = INTEGER: true(1)
KAMAILIO-SIP-SERVER-MIB::kamailioSIPProxyAuthMethod.0 = BITS: 20 digest(2)
KAMAILIO-SIP-SERVER-MIB::kamailioSIPNumProxyRequireFailures.0 = Counter32: 0
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegMaxContactExpiryDuration.0 = Gauge32: 3600 seconds
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegMaxUsers.0 = Gauge32: 4294967295
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegCurrentUsers.0 = Gauge32: 325416
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegDfltRegActiveInterval.0 = Gauge32: 3600 seconds
KAMAILIO-SIP-SERVER-MIB::kamailioSIPUserUri.1 = STRING: DefaultUser
KAMAILIO-SIP-SERVER-MIB::kamailioSIPUserAuthenticationFailures.1 = Counter32: 0
KAMAILIO-SIP-SERVER-MIB::kamailioSIPContactDisplayName.1.1 = STRING: DefaultUser
KAMAILIO-SIP-SERVER-MIB::kamailioSIPContactURI.1.1 = STRING: DefaultUser
KAMAILIO-SIP-SERVER-MIB::kamailioSIPContactLastUpdated.1.1 = STRING: 0-0-0,0:0:0.0
KAMAILIO-SIP-SERVER-MIB::kamailioSIPContactExpiry.1.1 = STRING: 0-0-0,0:0:0.0
KAMAILIO-SIP-SERVER-MIB::kamailioSIPContactPreference.1.1 = STRING: -0.01
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegUserLookupCounter.0 = Counter32: 4
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegAcceptedRegistrations.0 = Counter32: 21
KAMAILIO-SIP-SERVER-MIB::kamailioSIPRegRejectedRegistrations.0 = Counter32: 0
KAMAILIO-MIB::kamailioSrvMaxMemory.0 = Gauge32: 738197504
KAMAILIO-MIB::kamailioSrvFreeMemory.0 = Gauge32: 358262600
KAMAILIO-MIB::kamailioSrvMaxUsed.0 = Gauge32: 380013984
KAMAILIO-MIB::kamailioSrvRealUsed.0 = Gauge32: 379934904
KAMAILIO-MIB::kamailioSrvMemFragments.0 = Gauge32: 70
KAMAILIO-MIB::kamailioSrvCnfFullVersion.0 = STRING: kamailio 4.2.8 (x86_64/linux) 4507b8
KAMAILIO-MIB::kamailioSrvCnfVerName.0 = STRING: kamailio
KAMAILIO-MIB::kamailioSrvCnfVerVersion.0 = STRING: 4.2.8
KAMAILIO-MIB::kamailioSrvCnfVerArch.0 = STRING: x86_64
KAMAILIO-MIB::kamailioSrvCnfVerOs.0 = STRING: linux
KAMAILIO-MIB::kamailioSrvCnfVerId.0 = STRING: 4507b8
KAMAILIO-MIB::kamailioSrvCnfVerCompTime.0 = STRING: 12:34:45 Feb 17 2017
KAMAILIO-MIB::kamailioSrvCnfVerCompiler.0 = STRING: gcc 4.4.6
KAMAILIO-MIB::kamailioSrvCnfVerFlags.0 = STRING: STATS: Off, USE_TCP, USE_TLS, USE_SCTP,
TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
KAMAILIO-MIB::kamailioMsgQueueDepth.0 = Gauge32: 0
KAMAILIO-MIB::kamailioMsgQueueMinorThreshold.0 = INTEGER: -1
KAMAILIO-MIB::kamailioMsgQueueMajorThreshold.0 = INTEGER: -1
KAMAILIO-MIB::kamailioMsgQueueDepthAlarmStatus.0 = BITS: 00
KAMAILIO-MIB::kamailioMsgQueueDepthMinorAlarm.0 = INTEGER: clear(0)
KAMAILIO-MIB::kamailioMsgQueueDepthMajorAlarm.0 = INTEGER: clear(0)
KAMAILIO-MIB::kamailioCurNumDialogs.0 = Gauge32: 0
KAMAILIO-MIB::kamailioCurNumDialogsInProgress.0 = Gauge32: 0
KAMAILIO-MIB::kamailioCurNumDialogsInSetup.0 = Gauge32: 0
KAMAILIO-MIB::kamailioTotalNumFailedDialogSetups.0 = Counter32: 0
KAMAILIO-MIB::kamailioDialogLimitMinorThreshold.0 = INTEGER: -1
KAMAILIO-MIB::kamailioDialogLimitMajorThreshold.0 = INTEGER: -1
KAMAILIO-MIB::kamailioTotalNumDialogSetups.0 = Counter32: 0
KAMAILIO-MIB::kamailioDialogUsageState.0 = INTEGER: idle(0)
KAMAILIO-MIB::kamailioDialogLimitAlarmStatus.0 = BITS: 00
KAMAILIO-MIB::kamailioDialogLimitMinorAlarm.0 = INTEGER: clear(0)
KAMAILIO-MIB::kamailioDialogLimitMajorAlarm.0 = INTEGER: clear(0)
KAMAILIO-MIB::kamailioNetTcpConnEstablished.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetTcpConnFailed.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetTcpConnReset.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetTcpConnSuccess.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetTcpConnOpen.0 = Gauge32: 0
KAMAILIO-MIB::kamailioNetTcpConnPassiveOpen.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetTcpConnReject.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetTcpEnabled.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpMaxConns.0 = INTEGER: 2048
KAMAILIO-MIB::kamailioNetTcpConnTimeout.0 = INTEGER: 10
KAMAILIO-MIB::kamailioNetTcpSendTimeout.0 = INTEGER: 160
KAMAILIO-MIB::kamailioNetTcpConnLifetime.0 = INTEGER: 1920
KAMAILIO-MIB::kamailioNetTcpNoConnect.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpFdCache.0 = INTEGER: 1920
KAMAILIO-MIB::kamailioNetTcpAsync.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetTcpAsyncConnWait.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetTcpAsyncConnWqMax.0 = INTEGER: 32768
KAMAILIO-MIB::kamailioNetTcpAsyncWqBlkSize.0 = INTEGER: 10485760
KAMAILIO-MIB::kamailioNetTcpRdBufSize.0 = INTEGER: 16384
KAMAILIO-MIB::kamailioNetTcpDeferAccept.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpDelayedAck.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetTcpSynCnt.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpLinger.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpKeepAlive.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetTcpKeepIdle.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpKeepIntvl.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpKeepCnt.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpCrlfPing.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetTcpAcceptAliases.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetTcpAcceptNoCl.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetWsConnsActive.0 = Gauge32: 0
KAMAILIO-MIB::kamailioNetWsConnsActiveMax.0 = Gauge32: 0
KAMAILIO-MIB::kamailioNetWsConnsFailed.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetWsConnsClosedLocal.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetWsConnsClosedRemote.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetWsFramesRx.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetWsFramesTx.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetWsHandshakeSuccess.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetWsHandshakeFailed.0 = Counter32: 0
KAMAILIO-MIB::kamailioNetConfUdpTransport.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetConfUdpDtlsTransport.0 = INTEGER: -1
KAMAILIO-MIB::kamailioNetConfTcpTransport.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetConfTcpTlsTransport.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetConfSctpTransport.0 = INTEGER: true(1)
KAMAILIO-MIB::kamailioNetConfSctpTlsTransport.0 = INTEGER: -1
KAMAILIO-MIB::kamailioNetConfWsTransport.0 = INTEGER: -1
KAMAILIO-MIB::kamailioNetConfWsTlsTransport.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetConfHttpServer.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetConfMsrpRelay.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetConfStunServer.0 = INTEGER: 0
KAMAILIO-MIB::kamailioNetConfOutbound.0 = INTEGER: 0
Regards,
Igor.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Garanti sans virus.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
www.avast.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<mailto:sr-users@lists.sip-router.org> sr-users(a)lists.sip-router.org
<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
<http://www.twitter.com/miconda>
www.twitter.com/miconda --
<http://www.linkedin.com/in/miconda>
www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - <http://www.asipto.com>
www.asipto.com
Kamailio World Conference - May 8-10, 2017 - <http://www.kamailioworld.com>
www.kamailioworld.com
--
Daniel-Constantin Mierla
www.twitter.com/miconda <http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - May 22-24 (USA) -
www.asipto.com
<http://www.asipto.com>
Kamailio World Conference - May 8-10, 2017 -
www.kamailioworld.com
<http://www.kamailioworld.com>
--
Daniel-Constantin Mierla
www.twitter.com/miconda <http://www.twitter.com/miconda> --
www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - May 22-24 (USA) -
www.asipto.com
<http://www.asipto.com>
Kamailio World Conference - May 8-10, 2017 -
www.kamailioworld.com
<http://www.kamailioworld.com>
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus