Could SIP and PJSIP both used in same server using different ports?
If YES what are pros and cons?
I am developing an application required both SIP and PJSIP.
Could SIP and PJSIP both used in same server using different ports?
If YES what are pros and cons?
I am developing an application required both SIP and PJSIP.
Yes, as long as there’s different ports it’ll work fine. There’s not really pros and cons…
The cons are that you have to maintain two different configuration styles, when there should be no reason to not just use chan_pjsip; the alternative port number may confuse future maintainers; and chan_sip receives little or no support, and is not included in the latest source code, in the official repository.
Thanks All.
Will this impact on my server overall performance, if using these SIP and PJSIP simultaneously?
I wouldn’t expect any serious difference in performance with running both at the same time. It’s just a different stack.
We made the transition a few years ago, primarily because chan_sip was causing issues on Asterisk 13 with our setup, and of course wasn’t going to get addressed. There were some config changes that had to get sorted out, but most of the difference caused relatively minor issues, like say the caller ID not being updated during a transfer, which required some config changes to the pjsip.conf.
Like another poster mentioned, supporting two stacks simultaneously is the most difficult part. Depending on your dialplan complexity, or other complexity, this might not be an issue for you, or it may in fact be more troublesome than just switching over to pjsip, and dealing with any issues as they come.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.