-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
39 lines (36 loc) · 2.02 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from django.conf.urls import patterns
urlpatterns = patterns('what_apps.comm.provider_views',
#Views meant to be accessed by providers.
(r'^phone/$', 'answer'), #Public call answering
(r'^phone/test/$', 'answer', {'this_is_only_a_test': True}),
(r'^conference_blast/$', 'conference_blast'),
(r'^voicemail/$', 'voicemail'),
(r'^alert_pickup/(?P<number_id>\d+)/(?P<call_id>\d+)/$', 'alert_pickup'),
(r'^handle_hangup/(?P<conference_id>\w+)/(?P<number_id>\d+)/$', 'handle_hangup'),
(r'^transcription_handler/(?P<object_type>\w+)/(?P<id>\d+)/', 'transcription_handler'),
(r'recording_handler/(?P<object_type>\w+)/(?P<id>\w+)/$' ,'recording_handler'),
(r'^simply_join_conference/(?P<conference_id>\w+)/(?P<number_id>\w+)/$', 'simply_join_conference'),
(r'^pickup_connect/(?P<number_id>\d+)/(?P<call_id>\d+)/$', 'pickup_connect'),
(r'^pickup_connect_auto/(?P<number_id>\d+)/(?P<call_id>\d+)/$', 'pickup_connect', {'connect_regardless': True}),
)
urlpatterns += patterns('what_apps.comm.views',
#Views meant to be accessed directly by humans.
(r'^simple_phone_lookup/$', 'simple_phone_lookup'),
(r'review_calls_with_user/(?P<user_id>\d+)/', 'review_calls_with_user'),
(r'outgoing_call_menu/$', 'outgoing_call_menu'),
(r'outgoing_call/', 'outgoing_call'),
(r'phone_call_details/(?P<phone_call_id>\d+)/', 'phone_call_details'),
(r'watch_calls/$', 'watch_calls'),
(r'resolve_calls/$', 'resolve_calls'),
(r'resolve_call/$', 'resolve_call'),
)
#Views whose future is uncertain
#(r'status_callback/$', 'status_callback'),
#(r'fallback/$', 'fallback'),
#(r'browseDeviceCategory/', 'browseDeviceCategory'),
#(r'modifyDevice/(?P<module_id>\d+)/', 'modifyDevice'),
#(r'queryDevice/(?P<category_index>\d+)/', 'queryDevice'),
#(r'outgoing_callback/$', 'outgoing_callback'),
#(r'outgoing_call/(?P<phone_number>\w+==)/', 'outgoing_call'),
#(r'^client_dial_out/$', 'client_dial_out'),
#(r'^incoming_phone_client_loader/$', 'incoming_phone_client_loader'),