I am migrating an application that used RECEIVE_TEXT in a chan_SIP with no problems, but when using chan_PJSIP, it always return -1. If I put timeout = 0, it returns -1 on the spot, if I put another value, I see how the SIP MESSAGE arrives with the text and it does not return anything until the end of the timeout (it returns -1).
Does Chan_PJSIP support this command?
Receives a string of text on a channel. Most channels do not support the reception of text. Returns -1 for failure or 1 for success, and the string in parenthesis.