DTMF notification

29 views
Skip to first unread message

Laurent Schweizer

unread,
Jun 4, 2015, 8:41:43 AM6/4/15
to sipme-med...@googlegroups.com
Hello,

I'm using the last version (git) and I have another case of missing notification .

I have compared log of working and not working case,  both time DTMF event was detected (line bellow in blue) but the creation of the NTFY message is not present (line in RED) in the not working case

for the moment I cannot reproduce the error on my test server, I can only reproduce them on production and mostly when I have many calls, so maybe it's depending of the load of the server.

any idea ?


Laurent


04/06/2015 13:30:12,507 INFO  [MGCP] tx=10 Started, message= NTFY mobius/ivr/2...@95.128.80.40:2427, call agent = ch40.peoplefone.com/95.128.80.40:2727
04/06/2015 13:30:12,508 INFO  [EventBuffer] Receive 1 tone
04/06/2015 13:30:12,508 INFO  [PlayCollect] (mobius/ivr/2) Tone '1' has been detected
04/06/2015 13:30:12,508 INFO  [PlayCollect] (mobius/ivr/2) Tone '1' has been detected: prompt phase interrupted
04/06/2015 13:30:12,509 INFO  [DetectorImpl] endpointName (detector) Delivered '1' tone

04/06/2015 13:30:12,509 INFO  [MGCP] tx=10 was executed normaly

oifa.yulian

unread,
Jun 9, 2015, 3:55:00 AM6/9/15
to sipme-med...@googlegroups.com
Well,if the tone is detected,it is detected,so it has nothing to do with load.i guess the event is not fired because playcollect does not thinks it should be fired.therefore i would reccomend to check bigger wireshark dump and check all the mgcp traffic for endpoint + add more logging for dtmf processing on play collect to understand better why it hapens

Laurent Schweizer

unread,
Jun 9, 2015, 11:12:16 AM6/9/15
to sipme-med...@googlegroups.com


Hello,

I have done more test and finally I can reproduce the bug on my test server.

when I have 2 calls connected, if the call A send a DTMF and just after the call B send also a DTMF then the second DTMF is not notified.

I have added lot of log to understand how the different listener are connected together
and I see  that the flag isActive in Event object (DTMF event) of the second call is set to False, so they is no notification ...


 
public void fire(Signal s, Text options) {
        System.out.println("LSR | Event | fire ");
        if (this.isActive) {
            System.out.println("LSR | Event | is active ");
            System.out.println("LSR | Event | " + requestedAction.getClass().getName());
            this.requestedAction.perform(s, this, options);
        }
        else
        {
        System.out.println("LSR | Event | is NOT active ");
        }
    }

actually I don't know when/why this flag is set to False.

 

I have attached a wireshark trace, maybe you will see what I’m doing wrong..


BR


Laurent


export_mgcp_and_rtpevent.cap.pcapng

Laurent Schweizer

unread,
Jun 9, 2015, 12:17:26 PM6/9/15
to sipme-med...@googlegroups.com

I just see that if I remove the ES of the call A  then it's ok ....

BR

Laurent
Message has been deleted
Message has been deleted
Message has been deleted

Laurent Schweizer

unread,
Jun 10, 2015, 2:59:21 AM6/10/15
to sipme-med...@googlegroups.com

Hello,

After different test I saw that dtmf signal event (0,1,2 … C,D,*,#) are only created for the first IVR endpoint (see log below).

 So when I send the End Signal Event just after I get the first DTMF event,  all DTMF Event are rested and the isActive status is set to False until a new IVR is initialized and this not only for the call that has send the DTMF event but for both.

 

Any idea ?

10/06/2015 07:37:37,221 INFO  [Main] log4j initialized from a configuration file.
10/06/2015 07:37:37,222 INFO  [Main] Home directory: /home/mms-server-4.0.2-SNAPSHOT.dir
10/06/2015 07:37:37,229 INFO  [Main] Booting from file:/home/mms-server-4.0.2-SNAPSHOT.dir/conf/bootstrap-beans.xml
10/06/2015 07:37:38,566 INFO  [Configuration] Configuring /home/mms-server-4.0.2-SNAPSHOT.dir/deploy/server-beans.xml
10/06/2015 07:37:38,644 INFO  [Scheduler] Starting
10/06/2015 07:37:38,652 INFO  [Scheduler] Started
10/06/2015 07:37:38,702 INFO  [UdpManager] Initialized UDP interface[unknown]: bind address=95.128.80.40
10/06/2015 07:37:38,866 INFO  [MGCP] Set server
10/06/2015 07:37:38,866 INFO  [MGCP] Set scheduler: ua.mobius.media.server.scheduler.Scheduler@5c4b82d2
10/06/2015 07:37:38,874 INFO  [MGCP] Starting MGCP controller
10/06/2015 07:37:38,875 INFO  [MGCP] Starting MGCP provider
10/06/2015 07:37:38,882 INFO  [MgcpProvider] Opening channel
10/06/2015 07:37:38,885 INFO  [MgcpProvider] Binding channel to 95.128.80.40:2427
10/06/2015 07:37:38,887 INFO  [MGCP] Controller started
10/06/2015 07:37:38,902 INFO  [Server] Installing mobius/aap/1
LSR | create Event |oc
LSR | create Event |of
LSR | new Request
10/06/2015 07:37:38,913 INFO  [MGCP] Endpoint restarted: mobius/aap/1
10/06/2015 07:37:38,920 INFO  [Server] Installing mobius/ivr/1
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |0
LSR | create Event |1
LSR | create Event |2
LSR | create Event |3
LSR | create Event |4
LSR | create Event |5
LSR | create Event |6
LSR | create Event |7
LSR | create Event |8
LSR | create Event |9
LSR | create Event |A
LSR | create Event |B
LSR | create Event |C
LSR | create Event |D
LSR | create Event |#
LSR | create Event |*
LSR | create Event |oc
LSR | create Event |of
LSR | new Request
10/06/2015 07:37:38,939 INFO  [MGCP] Endpoint restarted: mobius/ivr/1
10/06/2015 07:37:38,939 INFO  [Server] Installing mobius/ivr/2
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | new Request
10/06/2015 07:37:38,942 INFO  [MGCP] Endpoint restarted: mobius/ivr/2
10/06/2015 07:37:38,942 INFO  [Server] Installing mobius/ivr/3
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | new Request
10/06/2015 07:37:38,945 INFO  [MGCP] Endpoint restarted: mobius/ivr/3
10/06/2015 07:37:38,945 INFO  [Server] Installing mobius/ivr/4
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | new Request
10/06/2015 07:37:38,948 INFO  [MGCP] Endpoint restarted: mobius/ivr/4
10/06/2015 07:37:38,948 INFO  [Server] Installing mobius/ivr/5
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | create Event |oc
LSR | create Event |of
LSR | new Request
10/06/2015 07:37:38,951 INFO  [MGCP] Endpoint restarted: mobius/ivr/5
10/06/2015 07:37:38,958 INFO  [Server] Installing mobius/cnf/1
LSR | new Request
10/06/2015 07:37:38,959 INFO  [MGCP] Endpoint restarted: mobius/cnf/1
10/06/2015 07:37:38,959 INFO  [Server] Installing mobius/cnf/2
LSR | new Request
10/06/2015 07:37:38,960 INFO  [MGCP] Endpoint restarted: mobius/cnf/2
10/06/2015 07:37:38,961 INFO  [Server] Installing mobius/cnf/3
LSR | new Request
10/06/2015 07:37:38,961 INFO  [MGCP] Endpoint restarted: mobius/cnf/3
10/06/2015 07:37:38,962 INFO  [Server] Installing mobius/cnf/4
LSR | new Request
10/06/2015 07:37:38,963 INFO  [MGCP] Endpoint restarted: mobius/cnf/4
10/06/2015 07:37:38,963 INFO  [Server] Installing mobius/cnf/5
LSR | new Request
10/06/2015 07:37:38,964 INFO  [MGCP] Endpoint restarted: mobius/cnf/5
10/06/2015 07:37:38,971 INFO  [Server] Installing mobius/bridge/1
LSR | new Request
10/06/2015 07:37:38,975 INFO  [MGCP] Endpoint restarted: mobius/bridge/1
10/06/2015 07:37:38,975 INFO  [Server] Installing mobius/bridge/2
LSR | new Request
10/06/2015 07:37:38,976 INFO  [MGCP] Endpoint restarted: mobius/bridge/2
10/06/2015 07:37:38,976 INFO  [Server] Installing mobius/bridge/3
LSR | new Request
10/06/2015 07:37:38,977 INFO  [MGCP] Endpoint restarted: mobius/bridge/3
10/06/2015 07:37:38,977 INFO  [Server] Installing mobius/bridge/4
LSR | new Request
10/06/2015 07:37:38,978 INFO  [MGCP] Endpoint restarted: mobius/bridge/4
10/06/2015 07:37:38,978 INFO  [Server] Installing mobius/bridge/5
LSR | new Request
10/06/2015 07:37:38,979 INFO  [MGCP] Endpoint restarted: mobius/bridge/5
10/06/2015 07:37:38,986 INFO  [Server] Installing mobius/relay/1
LSR | new Request
10/06/2015 07:37:38,987 INFO  [MGCP] Endpoint restarted: mobius/relay/1
10/06/2015 07:37:38,987 INFO  [MainDeployer] Calling Garbage collector to clear init data
10/06/2015 07:37:39,093 INFO  [MainDeployer] [[[[[[[[[ Sipme Media Server: release.version=4.0.1 Started ]]]]]]]]]

oifa.yulian

unread,
Jun 11, 2015, 2:09:18 AM6/11/15
to sipme-med...@googlegroups.com
Hi
Try to remove static for all tones classes
For example for dtmf 8 remove static near dmtf_8 object definition:
https://code.google.com/p/sipme-media-server/source/browse/controls/mgcp/src/main/java/ua/mobius/media/server/mgcp/pkg/dtmf/Dtmf8.java?r=6608c40637d5a9a6cf24f89f3024aba95a5302a6#38

Same for all tones.
Best regards
Yulian Oifa

Laurent Schweizer

unread,
Jun 22, 2015, 7:28:36 AM6/22/15
to sipme-med...@googlegroups.com
Hello,

I will try, thanks

Laurent
Reply all
Reply to author
Forward
0 new messages