Антон Загорский wrote:

-----Original Message-----
From: Stefan Sayer [mailto:[email protected]]
Sent: Monday, July 05, 2010 4:14 PM
To: Антон Загорский
Cc: [email protected]
Subject: Re: [Sems] RTP established just in one way

Hi,

Антон Загорский wrote:
And after this i hear Bob 3000 in 2000, but don't hear 2000 in Bob
3000.
I've looked on x.x.x.60 traffic via Wireshark and noticed that after
when 2000 answered the call there is a RTP traffic FROM x.x.x.60(sems)
TO x.x.x.87( Bob 3000 ) - is this normal?
you should also do this if you want to stop RTP from sems to Bob:
         self.disconnectMedia()
         self.mute()

Thank you, but in a case

def onEmptyQueue(self):
        info("empty")
        self.disconnectMedia()
        self.mute()
        self.connectCallee(...)
        return

SEMS does not call onEmptyQueue and in a log file it print
        Info: Ivr-Python: empty
        callPyEventHandler(Ivr.cpp:691): method onEmptyQueue is not
implemented, trying default one
some exception occured. which SEMS version are you using? do you see
the disconnectMedia function in IvrDialogBase.cpp,

SEMS : 1.2.1

In IvrDialogBase.cpp there are:
static PyMethodDef IvrDialogBase_methods[] = {
...
  {"disconnectMedia", (PyCFunction)IvrDialogBase_remove_mediaprocessor,
METH_NOARGS,
   "disable the processing of audio and RTP"
  },
  // DTMF
...
};


then, are you sure that there isn't maybe some whitespace error or something simple like this?


you could also try changing this:
diff --git a/apps/ivr/Ivr.cpp b/apps/ivr/Ivr.cpp
index cbfcb20..1b407ff 100644
--- a/apps/ivr/Ivr.cpp
+++ b/apps/ivr/Ivr.cpp
@@ -667,13 +667,14 @@ bool IvrDialog::callPyEventHandler(char* name, char* fmt, ...)

   if(!o) {

-    if(PyErr_ExceptionMatches(PyExc_AttributeError)){
+    PyErr_Print();

+    if(PyErr_ExceptionMatches(PyExc_AttributeError)){
+
       DBG("method %s is not implemented, trying default one\n",name);
       return true;
     }

-    PyErr_Print();
   }
   else {
     if(o && PyBool_Check(o) && (o == Py_True)) {





or when you put help in the python script?
Sorry, I don't understand what python script did you mean.
nevermind; you can put help(self) in the ivr script, and run sems in foreground (-E) mode, then your call will block, but you can get the python help about the implemented functions.

Stefan


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


--
Stefan Sayer
VoIP Services Consulting and Development

Warschauer Str. 24
10243 Berlin

tel:+491621366449
sip:[email protected]
email/xmpp:[email protected]


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

Reply via email to