예제 #1
0
파일: urls.py 프로젝트: Flimon1317/dg
# sid = "digitalgreen2"
# token = "421c11b1235067ca30ca87590c80c31eadc46af0"
# caller_id="01130018178"
# flow_id = "27037"
# views =
#
# hello_bye_andhra = ExotelService("hello", sid, token, caller_id, flow_id)
# hello_bye_andhra.add_applet(GreetingApplet("h", "http://helloandhraaudiofile2"))

services = []

hello = HelloBye()
services.extend(hello.urlpatterns())
ivrbaatcheet = IvrBaatcheet()
services.extend(ivrbaatcheet.urlpatterns())
jharkhand_pilot = JharkhandPilot()
services.extend(jharkhand_pilot.urlpatterns())

greeting = HelloBye(name="greeting")
# class Greeting(HelloBye):
# 	name="greeting"
services.extend(greeting.urlpatterns())
#print services

# To add a service add the call the urlpatterns of the service over here
urlpatterns = patterns('', *(services))

# TODO
# Code up models
# Migrate models
# Test state models
예제 #2
0
파일: urls.py 프로젝트: xuan6/dg
# sid = "digitalgreen2"
# token = "421c11b1235067ca30ca87590c80c31eadc46af0"
# caller_id="01130018178"
# flow_id = "27037"
# views =
#
# hello_bye_andhra = ExotelService("hello", sid, token, caller_id, flow_id)
# hello_bye_andhra.add_applet(GreetingApplet("h", "http://helloandhraaudiofile2"))

services = []

hello = HelloBye()
services.extend(hello.urlpatterns())
ivrbaatcheet = IvrBaatcheet()
services.extend(ivrbaatcheet.urlpatterns())
jharkhand_pilot = JharkhandPilot()
services.extend(jharkhand_pilot.urlpatterns())

greeting = HelloBye(name="greeting")
# class Greeting(HelloBye):
# 	name="greeting"
services.extend(greeting.urlpatterns())
#print services

# To add a service add the call the urlpatterns of the service over here
urlpatterns = patterns('', 
    *(services)
)

# TODO
# Code up models
예제 #3
0
파일: call_bundu.py 프로젝트: Flimon1317/dg
 def handle(self, *args, **options):
 number = [7739889283,9905067616,8102831982,8252430499,7739324839,9006175257,7677121036,9523034070,9905128958,8434144393,7070384302,7677266209,9608316038,9608906302,9334602176,9546221064,7759886520,9905713048,9162753561,8102802186,9631756132,9308967196,7050590495]
 service = JharkhandPilot()
 for n in number:
     service.init_call(n)