Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2
- def spoofCID():
- if currentCall.channel == "TEXT":
- n = ask("How shall we contact you?",{"choices":"[10 DIGITS]","timeout":"360"})
- f = ask("What caller ID would you like to send? (10 digits, no punctuation)", {"choices":"[10 DIGITS]","timeout":"360"})
- t = ask("What number would you like to call?", {"choices":"[10 DIGITS]","timeout":"360"})
- if currentCall.channel == "TEXT":
- say("Calling you, hang tight!")
- hangup()
- call(n.value, {"callerID":"150371511149"})
- transfer("tel:+1" + t.value , {
- "callerID": "1" + f.value,
- "playvalue":"http://hosting.tropo.com/92514/www/audio/wikileakit.mp3",
- "timeout":7200
- })
- stopCallRecording()
- def voicemenuresponse(event):
- if event.value == "0":
- say("To spoof your caller ID, press one. To do something else, go write your own damn code. To hear these options again, press zero")
- voicemenu()
- elif event.value == "1":
- spoofCID()
- else:
- say("Congratulations, you pressed " + event.value)
- voicemenu()
- def voicemenu():
- ask("Please select an option. For a list of options, press zero", {
- "choices":"[1 DIGIT]",
- "mode":"dtmf",
- "onChoice": voicemenuresponse,
- "timeout":"360"
- })
- def textmenu():
- ask("Please select an option. For a list of options, press zero", {
- "choices":"[1 DIGIT]",
- "onChoice": textmenuresponse,
- "timeout":"360"
- })
- def textmenuresponse(event):
- if event.value == "0":
- say("To spoof your caller ID, press one. To do something else, go write your own damn code.")
- textmenu()
- elif event.value == "1":
- spoofCID()
- else:
- say("Congratulations, you entered " + event.value)
- textmenu()
- answer()
- if(currentCall.channel == "VOICE"):
- spoofCID()
- else:
- textmenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement