Is it possible to enable chain_sip and pjsip and call from one chain_ext to pjsip ext?
Yes. They just can’t listen on the same ports.
You can’t call from an extension at all, and channels don’t have extensions, in the way that extension is defined in Asterisk.
However you should be able to accept a call on one of those technologies and send it out on the other. However, to do this, they must be bound to different combinations of port and interface. Binding to all interfaces, and port 5060, for both, will cause the seconds one starting to fail to start, because it will be unable to bind to the port.
Why do you think you need to do this.
I have configured chain_sip and pjsip exts,
both are configured on diff ports, Like pjsip is running on XXXX port and chain_sip on 5060.
But when I tried to register a chain_sip ext, It’s always checked in pjsip ext and return below error.
res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘INVITE’ from ‘sip:firstname.lastname@example.org’ failed for ‘x.x.x.x:55968’ (callid: 706408165-1461145583-1800952480) - Failed to authenticate
The endpoint is not trying to contact chan_sip on port 5060, then. Or the ports are not configured as you expect.