code stringlengths 3 6.57k |
|---|
voip_callback(session_id) |
print("## Conference request received, session id:{} Making a conference call", session_id) |
VoiceResponse() |
resp.say('Adding destination number to the conference!') |
resp.redirect('https://3.137.150.83:8001/voip/api_voip/add-user/' + session_id) |
print(str(resp) |
jsonify(resp) |
resp.say('Thank you for calling, have a nice day!') |
resp.hangup() |
print(str(resp) |
jsonify(resp) |
resp.say("Sorry, I don't understand that choice.") |
Gather(num_digits=1, action='/voip_callback/' + session_id) |
gather.say('Please Press 1 to connect to destination. Press 2 to end the call.') |
resp.append(gather) |
resp.redirect('https://3.137.150.83:8001/voip/api_voip/voip_callback/' + session_id) |
print(str(resp) |
jsonify(resp) |
app.route('/add-user/<string:session_id>', methods=['POST']) |
add_user_to_conf(session_id) |
print("# Add user request received, session id:{}", session_id) |
sessionID_to_destNo.get(session_id) |
print("Attemtping to add phone number to call: " + destination_number) |
get_client() |
VoiceResponse() |
Dial() |
dial.conference(destination_number) |
resp.append(dial) |
client.conferences(destination_number) |
print(participant) |
str(resp) |
app.route('/leave/<string:session_id>', methods=['GET', 'POST']) |
leave(session_id) |
print("Leave call request:", conference_sid, event, session_id) |
print("A Participant Left Call") |
get_client() |
client.conferences(conference_sid) |
len(participants.list() |
client.conferences(conference_sid) |
update(status='completed') |
print("Call ended") |
len(participants.list() |
client.calls(sessionID_to_callsid.get(session_id) |
update(status='completed') |
print("Call ended") |
VoiceResponse() |
str(resp) |
app.route('/complete_call/<string:call_session_id>', methods=['GET', 'POST']) |
complete_call(call_session_id) |
print("## Ending conference call, callee rejected call") |
get_client() |
client.conferences(sessionID_to_confsid.get(call_session_id) |
call (i.e. the caller) |
len(participants.list() |
client.conferences(sessionID_to_confsid.get(call_session_id) |
update(status='completed') |
print("Call ended") |
jsonify(data) |
app.route('/landing.html') |
landing() |
print("Get Request received!") |
square(x) |
square(x) |
map(square,list_x) |
print(list(r) |
Path(INPUT_TXT) |
expanduser() |
absolute() |
sc.textFile(f"file:///{myfile}") |
rdd_txt.flatMap(lambda line: line.split() |
map(lambda word: (word, 1) |
reduceByKey(lambda a, b: a + b) |
map(lambda a: (a[1], a[0]) |
counts.collect() |
print(i) |
print() |
rdd_txt.flatMap(lambda line: re.split(r"\W+", line) |
map(lambda word: (word, 1) |
reduceByKey(lambda a, b: a + b) |
map(lambda a: (a[1], a[0]) |
word_counts.collect() |
print(i) |
print() |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'simpleblog.settings') |
get_asgi_application() |
launcher (keypirinha.com) |
MyIP(kp.Plugin) |
__init__(self) |
super() |
__init__() |
kpnet.build_urllib_opener() |
on_suggest(self, user_input, items_chain) |
user_input.lower() |
self._get_public_ip() |
self._get_local_ip() |
on_execute(self, item, action) |
kpu.set_clipboard(item.short_desc() |
on_events(self, flags) |
kpnet.build_urllib_opener() |
_get_public_ip(self) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.