apps/py_sems/sip/PySemsB2ABDialog.sip
c200aa2e
 
330dc13a
 class AmSessionAudioConnector
 {
 %TypeHeaderCode
 #include "../../../core/AmB2ABSession.h"
 %End
 public:
 	AmSessionAudioConnector();
 
 	~AmSessionAudioConnector();
 
 	void block();
 
 	void release();
 
 	void waitReleased();
 private:
 	AmSessionAudioConnector(const AmSessionAudioConnector&);
 };
 
c200aa2e
 class PySemsB2ABDialog
 {
 %TypeHeaderCode
 #include "../PySemsB2ABDialog.h"
210b5105
 #include "../../../core/AmB2ABSession.h"
c200aa2e
 %End
 
 public:
 
8f331436
     AmSipDialog* dlg;
c200aa2e
 
     PySemsB2ABDialog();
 
     virtual ~PySemsB2ABDialog();
 %MethodCode
     fprintf(stderr,"------------- dealloc_PySemsB2ABDialog ----------\n");
 %End
 
     void setStopped();
2095d95b
     virtual void onBeforeDestroy();
c200aa2e
 
     virtual void onInvite(const AmSipRequest& /* req */);
2095d95b
     virtual void onCancel(const AmSipRequest& /* req */);
     virtual void onSessionStart();
     virtual void onEarlySessionStart();
c200aa2e
 
     virtual void onBye(const AmSipRequest& /* req */);
     virtual void onDtmf(int /* event */, int /* duration_msec */);
 
     void setInput(AmAudioFile* /In/ /*in*/);
     void setOutput(AmAudioFile* /In/ /*out*/);
a529b520
     void setInOut(AmAudioFile* /In/ /*in*/, AmAudioFile* /In/ /*out*/);
c200aa2e
 
     virtual void process(AmEvent* /*In,Out*/);
210b5105
     
     void connectCallee(const string& /*remote_party*/,
 	 	       const string& /*remote_uri*/,
 		       const string& /*local_party*/,
 		       const string& /*local_uri*/);
a529b520
 
     void connectSession();
     void disconnectSession();
210b5105
 
     int getCalleeStatus();
c200aa2e
 
210b5105
 protected:
a529b520
   virtual AmB2ABCalleeSession* createCalleeSession() /Factory/;
c200aa2e
 
3ca9428f
   virtual void onB2ABEvent(PySemsB2ABEvent* /TransferBack/);
210b5105
 
3ca9428f
   virtual void relayEvent(PySemsB2ABEvent* ev /Transfer/);	
c200aa2e
 private:
210b5105
   PySemsB2ABDialog(const PySemsB2ABDialog&);
c200aa2e
 };
210b5105
 
3ca9428f
 class AmB2ABCalleeSession 
210b5105
 {
 %TypeHeaderCode
 #include "../../../core/AmB2ABSession.h"
 %End
 public:
330dc13a
   AmB2ABCalleeSession(const string& /*other_local_tag*/, AmSessionAudioConnector* );
210b5105
 
a529b520
   void connectSession();
   void disconnectSession();
 
c1a51d79
   void setInput(AmAudioFile* /In/ /*in*/);
   void setOutput(AmAudioFile* /In/ /*out*/);
   void setInOut(AmAudioFile* /In/ /*in*/, AmAudioFile* /In/ /*out*/);
 
210b5105
 private:
   AmB2ABCalleeSession(const AmB2ABCalleeSession& /* other_s*/);
 
 };
 
3ca9428f
 class PySemsB2ABCalleeDialog : AmB2ABCalleeSession
210b5105
 {
 %TypeHeaderCode
3ca9428f
 #include "../PySemsB2ABDialog.h"
210b5105
 #include "../../../core/AmB2ABSession.h"
 %End
08f5e36e
 public:
330dc13a
   PySemsB2ABCalleeDialog(const string& /*other_local_tag*/, AmSessionAudioConnector* /* connector */);
3ca9428f
 
 protected:
   virtual void onPyB2ABEvent(PySemsB2ABEvent* /TransferBack/);
 
 private:
   PySemsB2ABCalleeDialog(const PySemsB2ABCalleeDialog& /* other_s*/);
 };
 
 class PySemsB2ABEvent
 {
 %TypeHeaderCode
 #include "../PySemsB2ABDialog.h"
 %End
 public:
   PySemsB2ABEvent(int /* ev_id */);
210b5105
 };