Asterisk's chan_sip SIP driver is deprecated in favor of chan_pjsip. Adhearsion should be updated to support both drivers.
In an ideal world, Adhearsion could automatically detect which driver incoming calls are based on (based on agi_type: "SIP" or "PJSIP"). But outbound calls at minimum, we're going to need to introduce a configuration option to allow one to choose between the two.
While Asterisk allows a mixed-mode in which it can handle some calls on chan_sip with other calls on chan_pjsip at the same time – I propose that we do not support co-operating sip/pjsip modes in Adhearsion for the sake of API simplicity. Rather, I suggest a single global sip/pjsip option in Adhearsion Configuration.
What Needs to Change
I've spotted only a few places that need to change to be able to support PJSIP.
Summary
Asterisk's
chan_sip
SIP driver is deprecated in favor ofchan_pjsip
. Adhearsion should be updated to support both drivers.In an ideal world, Adhearsion could automatically detect which driver incoming calls are based on (based on agi_type: "SIP" or "PJSIP"). But outbound calls at minimum, we're going to need to introduce a configuration option to allow one to choose between the two.
While Asterisk allows a mixed-mode in which it can handle some calls on chan_sip with other calls on chan_pjsip at the same time – I propose that we do not support co-operating sip/pjsip modes in Adhearsion for the sake of API simplicity. Rather, I suggest a single global sip/pjsip option in Adhearsion Configuration.
What Needs to Change
I've spotted only a few places that need to change to be able to support PJSIP.
Related Docs