Hello
i need to do one thing in my system. curretnly what i have in the sip device of the customer account
sip username: 35311223344
caller name: 35311223344
caller number: 35311223344
so if i make a call to my mobile i can see caller id coming is 35311223344
and if i make the caller name and caller number field empty i can see system send the sip user name as a caller id. also if i put any other number in the caller number field like 44556677 i can see in my mobile phone call came from 44556677
everything works fine this way.
but what i try to achieve is something different.
when a customer will call out from the dialer then it will be shown to the mobile number the caller id ,only use the sip username or any DID number belongs to this customer.
i will be keep the caller name and caller number section empty. so by default system will put sip username in the callername and caller number field.
but if any customer put any other number like 567847235 as caller ID to send out then call will be drop. if he have 100 DID's in his account and if he put any of the DID number as a caller ID then call will be proceed. it just for security i dont want to keep open CLI for the customer. if i give 10 DID to that customer so for all his sipdevices he only can use those DID numbers as a caller ID for outbound.
basically i will be using a DID number as SIP Device username. so the customer can't call out with any CLI has to be one of his DID number.
can someone please tell me how can achieve this?
thanks for reading.