Migration from chan_sip to PJSIP

I want to migrate from chan_sip to PJSIP and based on what i learn, I should make changes in extension.conf and use pjsip.conf. Am also using PHPAGI-2(calls are passed from dialplan in extension.cont to the phpagi script), so do I need to change anything in my phpagi script or leave it as it is?

That depends on what exactly you’re doing in the phpagi script, and if there are assumptions about it being chan_sip and using chan_sip specific things. For example you don’t use SIP/phone to dial a PJSIP endpoint, so if that’s done in the AGI then you’d need to change it.

Noted and thanks @jcolp