Module: sems
Branch: rco/offer_answer
Commit: 2a8aa94860f8bbfda738703b4ae92e1ee851c5ba
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=2a8aa94860f8bbfda738703b4ae92e1ee851c5ba

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon May 23 15:50:12 2011 +0200

fixed python script in apps directory.

---

 apps/conf_auth/conf_auth.py     |    2 +-
 apps/mailbox/mailbox.py         |    4 ++--
 apps/mailbox/mailbox_query.py   |    4 ++--
 apps/pin_collect/pin_collect.py |    2 +-
 apps/twit/twit.py               |    8 ++++----
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/apps/conf_auth/conf_auth.py b/apps/conf_auth/conf_auth.py
index 168a061..fc2a5ac 100644
--- a/apps/conf_auth/conf_auth.py
+++ b/apps/conf_auth/conf_auth.py
@@ -56,7 +56,7 @@ class IvrDialog(IvrDialogBase):
                print " next_hop:     ", self.dialog.next_hop
                print " cseq:        ", self.dialog.cseq
 
-       def onSessionStart(self, hdrs):
+       def onSessionStart(self):
                self.sessionInfo()
                self.setNoRelayonly()
                self.welcome_msg = IvrAudioFile.tts("Welcome to the 
conferencing server. "+ \
diff --git a/apps/mailbox/mailbox.py b/apps/mailbox/mailbox.py
index 5ab5a1c..d4aa00a 100644
--- a/apps/mailbox/mailbox.py
+++ b/apps/mailbox/mailbox.py
@@ -13,10 +13,10 @@ class IvrDialog(IvrDialogBase):
        voice_msg    = None
        mailbox      = None
 
-       def onSessionStart(self,hdrs):
+       def onSessionStart(self):
 
                debug("config: %s" % repr(config))
-               self.mailbox = 
IMAP4_Mailbox(getSessionParam(hdrs,"Mailbox-URL"));
+               self.mailbox = IMAP4_Mailbox(getAppParam("Mailbox-URL"));
                debug("***** Mailbox Url: ******\n" + str(self.mailbox.url))
 
                self.announcement = IvrAudioFile()
diff --git a/apps/mailbox/mailbox_query.py b/apps/mailbox/mailbox_query.py
index 7654df8..14e5b92 100644
--- a/apps/mailbox/mailbox_query.py
+++ b/apps/mailbox/mailbox_query.py
@@ -106,12 +106,12 @@ class IvrDialog(IvrDialogBase):
                return msg_list
 
 
-       def onSessionStart(self,hdrs):
+       def onSessionStart(self):
 
                self.__init__()
                self.loadVoiceLib()
 
-               self.mailbox = 
IMAP4_Mailbox(getSessionParam(hdrs,"Mailbox-URL"));
+               self.mailbox = IMAP4_Mailbox(getAppParam("Mailbox-URL"));
                debug("***** Mailbox Url: ******\n" + str(self.mailbox.url))
 
                self.new_msgs = self.loadMsgList('UNSEEN')
diff --git a/apps/pin_collect/pin_collect.py b/apps/pin_collect/pin_collect.py
index af53173..d7ba754 100644
--- a/apps/pin_collect/pin_collect.py
+++ b/apps/pin_collect/pin_collect.py
@@ -49,7 +49,7 @@ class IvrDialog(IvrDialogBase):
                debug(" next_hop:    " + self.dialog.next_hop)
                debug(" cseq:        " + str(self.dialog.cseq))
 
-       def onSessionStart(self,hdrs):
+       def onSessionStart(self):
                self.sessionInfo()
                self.setNoRelayonly()
                
diff --git a/apps/twit/twit.py b/apps/twit/twit.py
index 4c0cc2a..6a98d7f 100644
--- a/apps/twit/twit.py
+++ b/apps/twit/twit.py
@@ -29,10 +29,10 @@ class IvrDialog(IvrDialogBase) :
                                        self.t_msg = unquote(parts[3])
                
                if not account_found:           
-                       self.t_account = getSessionParam(hdrs,"u")
-                       self.t_pwd = getSessionParam(hdrs,"p")
-                       if (len(getSessionParam(hdrs,"m"))) and 
getSessionParam(hdrs,"m") != '<null>':
-                               self.t_msg = unquote(getSessionParam(hdrs,"m"))
+                       self.t_account = getAppParam("u")
+                       self.t_pwd = getAppParam("p")
+                       if (len(getAppParam("m"))) and getAppParam("m") != 
'<null>':
+                               self.t_msg = unquote(getAppParam("m"))
                        if (self.t_account != '<null>' and self.t_account != 
'') and \
                                self.t_pwd != '<null>' and self.t_pwd != '':
                                account_found = True    

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

Reply via email to