Much of the code that interfaces with the modem was taken from SXMO. Calling now works for both incoming and outgoing calls