Timothy Parez
2006-Dec-12 16:03 UTC
[asterisk-users] Settings CallerId for outgoing calls based on the sip account making them
Hi, I have 10 DID numbers. Calls coming from the PSTN network are routed correctly to the SIP users based on the number that was called. But when sip users call the PSTN network, the CallerID should be set to correspondent with their DID number. At the moment I can set the CallerID to a global number, but I have no idea how to check who's making the call. All sip users start in the context [internal] Any ideas? Thank you. --------------------------------- WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments
Dovid B
2006-Dec-12 19:52 UTC
[asterisk-users] Settings CallerId for outgoing calls based on thesip account making them
----- Original Message ----- From: "Timothy Parez" <timothyparez@linux.be> To: <asterisk-users@lists.digium.com> Sent: Wednesday, December 13, 2006 1:03 AM Subject: [asterisk-users] Settings CallerId for outgoing calls based on thesip account making them> Hi, > > I have 10 DID numbers. > Calls coming from the PSTN network are routed correctly to the SIP users > based on the number that was called. > > But when sip users call the PSTN network, the CallerID should be set > to correspondent with their DID number. > > At the moment I can set the CallerID to a global number, > but I have no idea how to check who's making the call. > > All sip users start in the context [internal] > > Any ideas? > > Thank you. >If your provider allows you to set your own CID you can try setting it in sip.conf. If not you can create a seperate context for each user and then have them use the diffrent DID's. Another option is too have diffrent pattern matches. For instance to use DID1 dial 1+number for DID2 dial 2+number etc.