Permalink
Browse files

Starting tog et calls to really be silated

  • Loading branch information...
1 parent 344a47d commit 13a2077ccbf1abf7d6cfb9a83ff7b14a3cc211d5 @arfrank committed Nov 22, 2010
Showing with 6 additions and 1 deletion.
  1. +5 −1 handlers/calls.py
  2. +1 −0 models/calls.py
View
@@ -119,8 +119,9 @@ def post(self,API_VERSION,ACCOUNT_SID,*args):
#ringing, what should we do? connect and read twiml and parse, fail, busy signal or no answer
#default is to connect, read twiml and do some things i guess
- Call.connect(Phone_Number, self.request)
+ #Call.connect(Phone_Number, self.request)
+ """
if self.request.get('StatusCallback',None) is not None:
StatusCallback = self.request.get('StatusCallback')
StatusCallbackMethod = self.request.get('StatusCallbackMethod','POST').upper()
@@ -129,8 +130,11 @@ def post(self,API_VERSION,ACCOUNT_SID,*args):
elif Phone_Number.StatusCallback is not None:
StatusCallback = Phone_Number.StatusCallback
StatusCallbackMethod = Phone_Number.StatusCallbackMethod
+
if self.request.get('StatusCallback',None) is not None or Phone_Number.StatusCallback is not None:
Call.disconnect(StatusCallback,StatusCallbackMethod)
+ """
+ response_data = Call.get_dict()
self.response.out.write(response.format_response(response.add_nodes(self,response_data,format),format))
else:
#we dont have a valid outgoing phone number to which to make the call
View
@@ -43,6 +43,7 @@ class Call(base.CommonModel):
AnsweredBy = db.StringProperty()
ForwardedFrom = db.StringProperty()
CallerName = db.StringProperty()
+ ParentCallSid = db.StringProperty()
"""
#No longer needed!

0 comments on commit 13a2077

Please sign in to comment.