[quote=“scott”]I have run into an issue where Asterisk is sending the SIP account name/username in the CallerID field on a PRI when there is no callerid defined for that SIP user. This is causingthe Telco switch to not recognizethe callerid and take a course of action that is not what we want.
This seems to be a new feature in Asterisk.
I need this callerid to be either blank if possible.
I dont think this is an asteriskproblem.
There are standarized (ITU) fields, like CallerID-Name and CallerID-Number.
Asterisk is doing nothing on its own here, its just plain forwarding the content of these fields. You CAN change them via script, but if you havent done so, these fields are reading what the SIP provider of the caller supplied.
So its very obv. that the SIP provider already filled these fields “non standard”.
You can check these fields in your dialplan, esp. for this case:
Just do a math operation on the callerid number like
If callerid>0 then it is a number else its a string with letters
Hope this helps.