Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On Thursday 22 February 2018 at 23:44:43, Carlos Chavez wrote: > On 2/22/18 4:40 PM, Carlos Chavez wrote: > > On 2/22/18 3:54 PM, Carlos Chavez wrote: > >> On 2/22/18 3:46 PM, Antony Stone wrote: > >>> On Thursday 22 February 2018 at 21:41:41, Carlos Chavez wrote: > On 2/22/18 1:07 PM, Antony Stone wrote: > > On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: > >>Usually phone companies set the outgoing CallerID for you but > >> > >> recently we got control over that and are now setting the outgoing > >> Calleir ID ourselves. My problem now is that the CDR will put the > >> outgoing CID in the CDR instead of the extension that dialed and > >> that > >> causes problems for reports. What is the proper way to set > >> outgoing CID > >> and keeping the original extension number in the CDR? > > > > Surely the CDR field "clid" is your Caller ID, whereas the CDR field > > "src" is the originating extension? > > > > > > Antony. > > No, the src field contains the external number and the clid field has > the extension name but also the external number. > >>> > >>> Okay, then; what do you get in the "channel" field? > >> > >> Channels contains PJSIP/-(id) > >> > >> Like I mentioned, the problem really lies in that the software > >> used for call reports is coded to the "src" field. Than is why I need > >> src to hace the extension number. > > > > The solution to this problem is to set CDR(ani) to the original > > extension number before changing the outgoing callerid. With this src > > will remain as the extension number. > > Sorry, I meant CALLERID(ani). > Set(CALLERID(ani)=${CALLERID(num)}) Aha, thank you :) Now I understand why our systems do this by default - as per my first reply to you (I thought that src should contain the extension and clid the external number) - I just didn't realise there was a line in the dialplan responsible for ensuring this. I keep learning something new every day. Antony. -- Was ist braun, liegt ins Gras, und raucht? Ein Kaminchen... Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On 2/22/18 4:40 PM, Carlos Chavez wrote: On 2/22/18 3:54 PM, Carlos Chavez wrote: On 2/22/18 3:46 PM, Antony Stone wrote: On Thursday 22 February 2018 at 21:41:41, Carlos Chavez wrote: On 2/22/18 1:07 PM, Antony Stone wrote: On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: Usually phone companies set the outgoing CallerID for you but recently we got control over that and are now setting the outgoing Calleir ID ourselves. My problem now is that the CDR will put the outgoing CID in the CDR instead of the extension that dialed and that causes problems for reports. What is the proper way to set outgoing CID and keeping the original extension number in the CDR? Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" is the originating extension? Antony. No, the src field contains the external number and the clid field has the extension name but also the external number. Okay, then; what do you get in the "channel" field? Channels contains PJSIP/-(id) Like I mentioned, the problem really lies in that the software used for call reports is coded to the "src" field. Than is why I need src to hace the extension number. The solution to this problem is to set CDR(ani) to the original extension number before changing the outgoing callerid. With this src will remain as the extension number. Sorry, I meant CALLERID(ani). Set(CALLERID(ani)=${CALLERID(num)}) -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On 2/22/18 3:54 PM, Carlos Chavez wrote: On 2/22/18 3:46 PM, Antony Stone wrote: On Thursday 22 February 2018 at 21:41:41, Carlos Chavez wrote: On 2/22/18 1:07 PM, Antony Stone wrote: On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: Usually phone companies set the outgoing CallerID for you but recently we got control over that and are now setting the outgoing Calleir ID ourselves. My problem now is that the CDR will put the outgoing CID in the CDR instead of the extension that dialed and that causes problems for reports. What is the proper way to set outgoing CID and keeping the original extension number in the CDR? Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" is the originating extension? Antony. No, the src field contains the external number and the clid field has the extension name but also the external number. Okay, then; what do you get in the "channel" field? Channels contains PJSIP/-(id) Like I mentioned, the problem really lies in that the software used for call reports is coded to the "src" field. Than is why I need src to hace the extension number. The solution to this problem is to set CDR(ani) to the original extension number before changing the outgoing callerid. With this src will remain as the extension number. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On 2/22/18 3:46 PM, Antony Stone wrote: On Thursday 22 February 2018 at 21:41:41, Carlos Chavez wrote: On 2/22/18 1:07 PM, Antony Stone wrote: On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: Usually phone companies set the outgoing CallerID for you but recently we got control over that and are now setting the outgoing Calleir ID ourselves. My problem now is that the CDR will put the outgoing CID in the CDR instead of the extension that dialed and that causes problems for reports. What is the proper way to set outgoing CID and keeping the original extension number in the CDR? Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" is the originating extension? Antony. No, the src field contains the external number and the clid field has the extension name but also the external number. Okay, then; what do you get in the "channel" field? Channels contains PJSIP/-(id) Like I mentioned, the problem really lies in that the software used for call reports is coded to the "src" field. Than is why I need src to hace the extension number. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On Thursday 22 February 2018 at 21:41:41, Carlos Chavez wrote: > On 2/22/18 1:07 PM, Antony Stone wrote: > > On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: > >> Usually phone companies set the outgoing CallerID for you but > >> > >> recently we got control over that and are now setting the outgoing > >> Calleir ID ourselves. My problem now is that the CDR will put the > >> outgoing CID in the CDR instead of the extension that dialed and that > >> causes problems for reports. What is the proper way to set outgoing CID > >> and keeping the original extension number in the CDR? > > > > Surely the CDR field "clid" is your Caller ID, whereas the CDR field > > "src" is the originating extension? > > > > > > Antony. > > No, the src field contains the external number and the clid field has > the extension name but also the external number. Okay, then; what do you get in the "channel" field? Antony. -- A user interface is like a joke. If you have to explain it, it means it doesn't work. Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On 2/22/18 2:05 PM, Antony Stone wrote: On Thursday 22 February 2018 at 20:07:47, Antony Stone wrote: On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: Usually phone companies set the outgoing CallerID for you but recently we got control over that and are now setting the outgoing Calleir ID ourselves. My problem now is that the CDR will put the outgoing CID in the CDR instead of the extension that dialed and that causes problems for reports. What is the proper way to set outgoing CID and keeping the original extension number in the CDR? Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" is the originating extension? Another thought - if that doesn't automatically work for you (probably depends on your dialplan / Asterisk setup), then how about setting: CDR(accountcode)=${CALLERID(number)} in your dialplan sometime before you set the outbound Caller ID to whatever your PSTN number is? Then you have the internal extension number in accountcode and the external CallerID in clid. Antony. Unfortunately I use the accountcode field to put phones in different administrative groups and the software the company uses to make reports uses the src field to determine who made the call. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On 2/22/18 1:07 PM, Antony Stone wrote: On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: Usually phone companies set the outgoing CallerID for you but recently we got control over that and are now setting the outgoing Calleir ID ourselves. My problem now is that the CDR will put the outgoing CID in the CDR instead of the extension that dialed and that causes problems for reports. What is the proper way to set outgoing CID and keeping the original extension number in the CDR? Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" is the originating extension? Antony. No, the src field contains the external number and the clid field has the extension name but also the external number. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez +52 (55)8116-9161 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On Thursday 22 February 2018 at 20:07:47, Antony Stone wrote: > On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: > > Usually phone companies set the outgoing CallerID for you but > > > > recently we got control over that and are now setting the outgoing > > Calleir ID ourselves. My problem now is that the CDR will put the > > outgoing CID in the CDR instead of the extension that dialed and that > > causes problems for reports. What is the proper way to set outgoing CID > > and keeping the original extension number in the CDR? > > Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" > is the originating extension? Another thought - if that doesn't automatically work for you (probably depends on your dialplan / Asterisk setup), then how about setting: CDR(accountcode)=${CALLERID(number)} in your dialplan sometime before you set the outbound Caller ID to whatever your PSTN number is? Then you have the internal extension number in accountcode and the external CallerID in clid. Antony. -- Heisenberg, Gödel, and Chomsky walk in to a bar. Heisenberg says, "Clearly this is a joke, but how can we work out if it's funny or not?" Gödel replies, "We can't know that because we're inside the joke." Chomsky says, "Of course it's funny. You're just saying it wrong." Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Set external CID but retain internal extension in CDR...
On Thursday 22 February 2018 at 19:10:51, Carlos Chavez wrote: > Usually phone companies set the outgoing CallerID for you but > recently we got control over that and are now setting the outgoing > Calleir ID ourselves. My problem now is that the CDR will put the > outgoing CID in the CDR instead of the extension that dialed and that > causes problems for reports. What is the proper way to set outgoing CID > and keeping the original extension number in the CDR? Surely the CDR field "clid" is your Caller ID, whereas the CDR field "src" is the originating extension? Antony. -- It may not seem obvious, but (6 x 5 + 5) x 5 - 55 equals 5! Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users