我在kamailio服务器后面有一个星号服务器。我希望打个电话,立即转接到手机号码。这是我的拨号计划:
from tkinter import *
import random
root = Tk()
guess = 5
easy_words = ['hard','boat','tree','free','easy','home','wife']
medium_words = ['medium','mirror','window','floors','trails','pumped','excite']
hard_words = ['envelope','develope','dispatch']
word = ''
wordlist = []
gallows = Label(root)
gallows.place(relx = .01, rely = .2, relheight = .33, relwidth = .98)
def get_word(diff):
global easy_words, medium_words, hard_words, word,wordlist
if diff == 0:
word = random.choice(easy_words)
elif diff == 1:
word = random.choice(medium_words)
elif diff == 2:
word = random.choice(hard_words)
else:
pass
wordlist = list(word)
for let in wordlist:
let = Label(gallows, text = let)
let.pack(side = LEFT)
easy = Button(root, text= 'Easy',command = get_word(0))
easy.place(relx = .01, rely = .01, relheight = .05, relwidth = .32)
medium = Button(root, text= 'Medium', command = get_word(1))
medium.place(relx = .34, rely = .01, relheight = .05, relwidth = .32)
hard = Button(root, text= 'Hard', command = get_word(2))
hard.place(relx = .67, rely = .01, relheight = .05, relwidth = .32)
root.mainloop()
100%的时间会呼叫该号码,但是有时没有音频。我该如何解决这个问题?