Hello,
I have an E1 and the possibility to use different caller ids in this E1, so,
before a Dial, I always have a SetCallerIDNum("User", number).
When I check the CDR, the originator of the calls appears to be this
"number" I set in the caller id, but not the actual user that
originated the call.
Is there a way to set a callerid for the outgoing call, but on cdr records to
leave the originator id?
I know I could use the CDR user field, but I am already using it for other
purposes!
Thank you very much
Dov
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060309/072fb9f6/attachment.htm
That is what the accountcode field is for, you can set a unique
accountcode for each devcice if you want to.
________________________________
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Dov Bigio
Sent: Thursday, March 09, 2006 10:05 AM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] cdr data
Hello,
I have an E1 and the possibility to use different caller ids in
this E1, so, before a Dial, I always have a SetCallerIDNum("User",
number).
When I check the CDR, the originator of the calls appears to be
this "number" I set in the caller id, but not the actual user that
originated the call.
Is there a way to set a callerid for the outgoing call, but on
cdr records to leave the originator id?
I know I could use the CDR user field, but I am already using it
for other purposes!
Thank you very much
Dov
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060309/21ab1388/attachment.htm
Hi Aleksander! Can I setup accountcode in sip.conf or I need to set it up in extensions.conf? is this right exten => s,1,Set(CDR(accountcode)=$CALLERID(number)) or exten => s,1,Set(CDR(accountcode)=$CALLERID(name)) Tomislav ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Alexander Lopez Sent: 9. ozujak 2006 16:33 To: Dov Bigio; Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] cdr data That is what the accountcode field is for, you can set a unique accountcode for each devcice if you want to. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060313/5497088b/attachment.htm
On 03/09/06 23:04 Dov Bigio said the following:> Hello, > > I have an E1 and the possibility to use different caller ids in this E1, > so, before a Dial, I always have a SetCallerIDNum("User", number). > > When I check the CDR, the originator of the calls appears to be this > "number" I set in the caller id, but not the actual user that originated > the call.the originator of the call, CDR(src) field, is set to the ANI if it's not null, and to CALLERID(num) if it's null. to get the behaviour you want to see you'd need to do the following in your dialplan: Set(CALLERID(ani)=${CALLERID(num)}) Set(CALLERID(num)=XXXX) Dial(....) -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+