Skip to main content

How to prepend something to caller id number

Posted by jesperkjeldsen on Thu, 10/20/2011

Hi
I found out to prepend something the the caller id name, but also wants to prepend something to the caller id number. Just cannot see where or how I can do that. Does anyone have a hint for me?

The reason is that I have a costumer with several public numbers. They choose with what number (trunk - each number vomes in different trunks) to dial out via by dialling **1, **2 and so on. It would be smart if the incomming calls also have that so they can dial back to the same number so it is eg **1 I want to add to the caller id number.

In extensions.conf I have a caller name lookup script, so if I could do it so it dosn't get the wrong number from the trunk it would be nice. But not so important, I can just get the lookup script to remove the **1 ;-)

I use MTE, Asterisk 1.4.

Regards
Jesper


Submitted by eeman on Thu, 10/20/2011 Permalink

you legally are not allowed to do that. Altering callerid amounts to CDR tampering. Do you have an unimpeachable CDR record for purposes of subpoena? The only time this would be OK, as a provider, is if you had more than one CDR source and one is pristinely unaltered. Admitting to altering CDR on the stand would surely get the evidence thrown out due to tampering.

Submitted by jesperkjeldsen on Fri, 10/21/2011 Permalink

There is a front-end server that is handling all CDR, billing and logging of external calls.

Regards
Jesper

Submitted by eeman on Fri, 10/21/2011 Permalink

then in that case send those trunks to a custom context where you can modify callerid and then from there send to the from-outside context.