Outbound CallerID issue

23 views
Skip to first unread message

Mike J.

unread,
May 1, 2025, 12:25:03 AMMay 1
to dSIPRouter
Greetings,
I downloaded dsiprouter a few days ago to test out. Very simple setup where I have my ITSP (ClearlyIP) registered with dsiprouter then a registration to my Yeastar PBX as an endpoint. So pretty much just a passthrough at this point. Calls in an out work as expected! For the life of me though I cant seem to get outbound callerID working. If I hook the ITSP trunks direct to my PBX it works just fine. The only difference I see is in the invite when it passes the INVITE from dsiprouter to the ITSP it seems to strip the callerID name from the FROM header, which I believe is what ClearlyIP uses for CID.  Any help or suggestions any one has would be appreciated.

Thanks,
Mike

Mike J.

unread,
May 1, 2025, 12:48:50 PMMay 1
to dSIPRouter
Just an update for anyone else who may have had this issue. I think I have this figured out now. Looks like PAI was being overwritten and the ITSP didn't like that, causing the CID to display private or anonymous for outbound calls. Haven't been able to test this with an IP auth trunk only registered trunks so far. This is the snippet from Kamailio.cfg that fixed my issue. Notice the 2 commented out PAI lines.

 # Checking if the carrier is using username/password auth
                        if (!strempty($dlg_var(dst_auth_domain))) {
                                $rd = $dlg_var(dst_auth_domain);
                                subst_hf("Contact", "/(.*)?<(sips?):([0-9]+)@([^:]+)(:[0-9]{1,5})?(;.*)?>(.*)?/<\2:\3@UAC_REG_ADDR:$Rp\6>\7/", "f");
                                #remove_hf("P-Asserted-Identity");  
                                #append_hf("P-Asserted-Identity: <sip:$avp(auth_user)@$rd>\r\n"); 
                        }
                        else {
                                subst_hf("Contact", "/(.*)?<(sips?):([0-9]+)@([^:]+)(:[0-9]{1,5})?(;.*)?>(.*)?/<\2:\3@EXTERNAL_IP_ADDR:$Rp\6>\7/", "f");
                                remove_hf("P-Asserted-Identity");
                                append_hf("P-Asserted-Identity: <sip:$fU@$rd>\r\n");
Reply all
Reply to author
Forward
0 new messages