[asterisk-users] Settings CallerId for outgoing calls based on thesip account making them

Dovid B asteriskusers at dovid.net
Tue Dec 12 19:50:25 MST 2006


----- Original Message ----- 
From: "Timothy Parez" <timothyparez at linux.be>
To: <asterisk-users at 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. 




More information about the asterisk-users mailing list