Hello, I have the following situation: I have a PRI with 200 DID numbers and I have set up 200 sip extensions that matches the last 4 digit of the corresponding DID numbers so that when any of the 200 DID number is called, asterisk can pass the call to the respective sip extension. Incomming has been fine. But when making out going calls I want the called party to always see the same number (which is one of the number selected from the 200 DID numbers). This I can be achieved in asterisk by calling SetCallerID before Dial command. However in the CDR, the caller id number of the number that i set using SetCallerID is always logged and there is no trace of which sip extension is making the call since the caller is always the same. This has become a serious trouble for billing. I have been searching around and could not seems to get a solution. I have tried DIAL_STATUS variable (only work if call is not answered), using 'g' option in Dial command (does not work if calling party hangup first), etc. Is there a solution or work around for this? Thanks in advance CCF ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
The CallerID that is seen by others on calls originating from your PRI is set by your PRI provider; you have no control from Asterisk about this as it gets overridden by the provider. You must contact your carrier and ask them to set the CallerID for all PRI lines to the desired name/number. Regards, Bryce Chidester Rhino Equipment Corp. bryce@rhinoequipment.com SIP: 305@rhinoequipment.zapto.org +1 (480) 940-1826 x305 IAX: guest@rhinoequipment.zapto.org/305 On Jun 29, 2005, at 08:33, Chee Foong Chiew wrote:> Hello, > > I have the following situation: > > I have a PRI with 200 DID numbers and I have set up > 200 sip extensions that matches the last 4 digit of > the corresponding DID numbers so that when any of the > 200 DID number is called, asterisk can pass the call > to the respective sip extension. Incomming has been > fine. > > But when making out going calls I want the called > party to always see the same number (which is one of > the number selected from the 200 DID numbers). This I > can be achieved in asterisk by calling SetCallerID > before Dial command. > However in the CDR, the caller id number of the number > that i set using SetCallerID is always logged and > there is no trace of which sip extension is making the > call since the caller is always the same. This has > become a serious trouble for billing. > > I have been searching around and could not seems to > get a solution. I have tried DIAL_STATUS variable > (only work if call is not answered), using 'g' option > in Dial command (does not work if calling party hangup > first), etc. > > Is there a solution or work around for this? > > Thanks in advance > > CCF > > > > ___________________________________________________________ > How much free photo storage do you get? Store your holiday > snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Eric Wieling aka ManxPower
2005-Jun-29 09:28 UTC
[Asterisk-Users] Setting Caller ID after Dial
Chee Foong Chiew wrote:> I have a PRI with 200 DID numbers and I have set up > 200 sip extensions that matches the last 4 digit of > the corresponding DID numbers so that when any of the > 200 DID number is called, asterisk can pass the call > to the respective sip extension. Incomming has been > fine. > > But when making out going calls I want the called > party to always see the same number (which is one of > the number selected from the 200 DID numbers). This I > can be achieved in asterisk by calling SetCallerID > before Dial command. > However in the CDR, the caller id number of the number > that i set using SetCallerID is always logged and > there is no trace of which sip extension is making the > call since the caller is always the same. This has > become a serious trouble for billing.Don't use Caller*ID for billing. Use account codes, which is supported pretty much everywhere in Asterisk. -- Eric Wieling * BTEL Consulting * 504-210-3699 x2120
Chee Foong Chiew wrote:>Hello, > >I have the following situation: > >I have a PRI with 200 DID numbers and I have set up >200 sip extensions that matches the last 4 digit of >the corresponding DID numbers so that when any of the >200 DID number is called, asterisk can pass the call >to the respective sip extension. Incomming has been >fine. > >But when making out going calls I want the called >party to always see the same number (which is one of >the number selected from the 200 DID numbers). This I >can be achieved in asterisk by calling SetCallerID >before Dial command. >However in the CDR, the caller id number of the number >that i set using SetCallerID is always logged and >there is no trace of which sip extension is making the >call since the caller is always the same. This has >become a serious trouble for billing. > >I have been searching around and could not seems to >get a solution. I have tried DIAL_STATUS variable >(only work if call is not answered), using 'g' option >in Dial command (does not work if calling party hangup >first), etc. > >Is there a solution or work around for this? > >Thanks in advance > >CCF > > >I forgot in my last post to mention that I use Postgres for my CDR, and the SIP extension can be pulled from the channel column. That way, the callerid is still the way it appeared when the calls were placed. I just strip everything from the '-' to the right and it's worked great for me! Mark
What about setting and using Accountcode for each sip client? It tracks separately than callerid in the cdr. so in your sip.conf, add an accountcode statement for each sip entry, and in the AccountCode field in the CDR, you'll have the correct entry needed to determine who made the call. -Chris Chee Foong Chiew wrote:>Hello, > >I have the following situation: > >I have a PRI with 200 DID numbers and I have set up >200 sip extensions that matches the last 4 digit of >the corresponding DID numbers so that when any of the >200 DID number is called, asterisk can pass the call >to the respective sip extension. Incomming has been >fine. > >But when making out going calls I want the called >party to always see the same number (which is one of >the number selected from the 200 DID numbers). This I >can be achieved in asterisk by calling SetCallerID >before Dial command. >However in the CDR, the caller id number of the number >that i set using SetCallerID is always logged and >there is no trace of which sip extension is making the >call since the caller is always the same. This has >become a serious trouble for billing. > >I have been searching around and could not seems to >get a solution. I have tried DIAL_STATUS variable >(only work if call is not answered), using 'g' option >in Dial command (does not work if calling party hangup >first), etc. > >Is there a solution or work around for this? > ><snip>
Ummm are you sure about this... I've seen people outpulse on PRI before.... It's dependent on the carrier - was my understanding. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Bryce Chidester Sent: Wednesday, June 29, 2005 12:28 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Setting Caller ID after Dial The CallerID that is seen by others on calls originating from your PRI is set by your PRI provider; you have no control from Asterisk about this as it gets overridden by the provider. You must contact your carrier and ask them to set the CallerID for all PRI lines to the desired name/number. Regards, Bryce Chidester Rhino Equipment Corp. bryce@rhinoequipment.com SIP: 305@rhinoequipment.zapto.org +1 (480) 940-1826 x305 IAX: guest@rhinoequipment.zapto.org/305 On Jun 29, 2005, at 08:33, Chee Foong Chiew wrote:> Hello, > > I have the following situation: > > I have a PRI with 200 DID numbers and I have set up 200 sip extensions > that matches the last 4 digit of the corresponding DID numbers so that > when any of the 200 DID number is called, asterisk can pass the call > to the respective sip extension. Incomming has been fine. > > But when making out going calls I want the called party to always see > the same number (which is one of the number selected from the 200 DID > numbers). This I can be achieved in asterisk by calling SetCallerID > before Dial command. > However in the CDR, the caller id number of the number that i set > using SetCallerID is always logged and there is no trace of which sip > extension is making the call since the caller is always the same. This > has become a serious trouble for billing. > > I have been searching around and could not seems to get a solution. I > have tried DIAL_STATUS variable (only work if call is not answered), > using 'g' option in Dial command (does not work if calling party > hangup first), etc. > > Is there a solution or work around for this? > > Thanks in advance > > CCF > > > > ___________________________________________________________ > How much free photo storage do you get? Store your holiday snaps for > FREE with Yahoo! Photos http://uk.photos.yahoo.com > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Eric Wieling aka ManxPower
2005-Jun-29 10:37 UTC
[Asterisk-Users] Setting Caller ID after Dial
Bryce Chidester wrote:> The CallerID that is seen by others on calls originating from your PRI > is set by your PRI provider; you have no control from Asterisk about > this as it gets overridden by the provider. You must contact your > carrier and ask them to set the CallerID for all PRI lines to the > desired name/number.Wrong! Your carrier can allow you to set your own Caller*ID NUMBER. Some carriers do this by default, some on request, some refuse to do so. Your carrier lets us set our Caller*ID NUMBER to anything we want. The Caller*ID NAME you have no control over. It will show up as whatever name is associated with the number. -- Eric Wieling * BTEL Consulting * 504-210-3699 x2120
On Wed, Jun 29, 2005 at 12:37:34PM -0500, Eric Wieling aka ManxPower wrote:> Bryce Chidester wrote: > >The CallerID that is seen by others on calls originating from your PRI > >is set by your PRI provider; you have no control from Asterisk about > >this as it gets overridden by the provider. You must contact your > >carrier and ask them to set the CallerID for all PRI lines to the > >desired name/number. > > Wrong! > > Your carrier can allow you to set your own Caller*ID NUMBER. Some > carriers do this by default, some on request, some refuse to do so. > > Your carrier lets us set our Caller*ID NUMBER to anything we want. > > The Caller*ID NAME you have no control over. It will show up as > whatever name is associated with the number.Some carriers will also let your set your name too ;-) Matthew Fredrickson
On Wed, Jun 29, 2005 at 09:27:34AM -0700, Bryce Chidester wrote:> The CallerID that is seen by others on calls originating from your > PRI is set by your PRI provider; you have no control from Asterisk > about this as it gets overridden by the provider. You must contact > your carrier and ask them to set the CallerID for all PRI lines to > the desired name/number.Not quite true, depending on what provider and what switch they use they can allow setting the CLI to a set number or a range of numbers (or ranges). Steve -- NetTek Ltd Fax +44-(0)20 7483 2455 Skype / In stevekennedyuk / UK +442088167166 / US +13106518226 Vonage UK +442079932612 / US +13108577715 / UK mob 07775 755503 Personal Blog http://stevekennedy.blogspot.com Euro Tech News Blog http://eurotechnews.blogspot.com
On 6/29/05, Bryce Chidester <bryce@rhinoequipment.com> wrote:> The CallerID that is seen by others on calls originating from your > PRI is set by your PRI provider; you have no control from Asterisk > about this as it gets overridden by the provider. You must contact > your carrier and ask them to set the CallerID for all PRI lines to > the desired name/number.Really? you should really do your home work before you state something like this. In fact for most PRIs in the US you are wrong.
And the UK.... although the PRI provider can either override or supply it for you and you are normally limited (unless you've signed an agreement) to DDI numbers directly provided by the PRI provider. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of C F Sent: 30 June 2005 00:50 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Setting Caller ID after Dial On 6/29/05, Bryce Chidester <bryce@rhinoequipment.com> wrote:> The CallerID that is seen by others on calls originating from your > PRI is set by your PRI provider; you have no control from Asterisk > about this as it gets overridden by the provider. You must contact > your carrier and ask them to set the CallerID for all PRI lines to > the desired name/number.Really? you should really do your home work before you state something like this. In fact for most PRIs in the US you are wrong. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users The information contained in this email is intended for the personal and confidential use of the addressee only. It may also be privileged information. If you are not the intended recipient then you are hereby notified that you have received this document in error and that any review, distribution or copying of this document is strictly prohibited. If you have received this communication in error, please notify Brendata immediately on: +44 (0)1268 466100, or email 'technical@brendata.co.uk' Brendata (UK) Ltd Nevendon Hall, Nevendon Road, Basildon, Essex. SS13 1BX UK Registered Office as above. Registered in England No. 2764339 See our current vacancies at www.brendata.co.uk