Using Asterisk 15.0.0, I’ve finally been able to switch over from SIP to PJSIP (a nightmare - for another time!)
Unfortunately I’m stuck on one final issue which I cannot figure out.
I have endpoints defined for mobile phones so that we can use sip clients to make calls through our company PBX. Rather than create outgoing trunks for every mobile (which isn’t feasible), under SIP I used callerid set to the extension name of the office VoIP phone, i.e. if the VoIP phone extension is Joe, the mobile extension is Joe-Mobile with callerid=Joe. With SIP this has worked perfectly.
With PJSIP the $CALLERID(name) function in all our outgoing dialplans return null when called by the Joe-Mobile endpoint but does show correctly if I run pjsip show endpoint Joe-Mobile in the cli.
Is this a bug or have I missed something? And is there a work-around?
I need to solve this urgently as we have people in the field relying on this facility.