import sys
import wave
import pjsua as pj
import thread
import _pjsua
from time import sleep
LOG_LEVEL=3
current_call = None
C_QUIT = 0
THIS_FILE = "SIPSender.py"
# Logging callback
def log_cb(level, str, len):
print str,
# Callback to receive events from account
classMyAccountCallback(pj.AccountCallback):
def __init__(self, account):
pj.AccountCallback.__init__(self, account)
#Notification on incoming call
def on_incoming_call(self, call):
global current_call
if current_call:
call.answer(486, "Busy")
return
print "Incoming call from ", call.info().remote_uri
print "Press &