We are having an issue with the RDNIS coming through with a leading 1 on some calls. I have been trying to find a way to remove the leading number only if it starts with a 1 and have yet to find a solid solution. If anyone else has any idea as how to do this I would greatly appreciate it! Thanks. -- *Chris Ramirez* TELE-ONE COMMUNICATIONS, INC. cramirez at tele-onecom.com 903-531-0777 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/8bd794d2/attachment.htm
Hi, I do something similar but for outbound calls. But same should work for inbound calls. First catch the calls with a leading 1, then strip 1 and send them to your desired context or extension. I use AEL, but in regular config it should be something like: [incoming-calls] ; catch numbers with leading 1 here exten => _1X.,1,Goto(${EXTEN:1},1) ; numbers with no leading 1 go here exten => _X.,1,Noop( - - - - - Incoming call - - - - -) Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-06-15 9:27 AM, "Chris Ramirez" <cramirez at tele-onecom.com> wrote: We are having an issue with the RDNIS coming through with a leading 1 on some calls. I have been trying to find a way to remove the leading number only if it starts with a 1 and have yet to find a solid solution. If anyone else has any idea as how to do this I would greatly appreciate it! Thanks. -- *Chris Ramirez* TELE-ONE COMMUNICATIONS, INC. cramirez at tele-onecom.com 903-531-0777 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/8e5e5328/attachment.htm
What that catches though is the actual phone number not the RDNIS. Is there any way that we can use something similar for sorting of the RDNIS? On 6/15/2010 9:19 AM, Zeeshan Zakaria wrote:> > Hi, > > I do something similar but for outbound calls. But same should work > for inbound calls. > > First catch the calls with a leading 1, then strip 1 and send them to > your desired context or extension. I use AEL, but in regular config it > should be something like: > > [incoming-calls] > ; catch numbers with leading 1 here > exten => _1X.,1,Goto(${EXTEN:1},1) > > ; numbers with no leading 1 go here > exten => _X.,1,Noop( - - - - - Incoming call - - - - -) > > Zeeshan A Zakaria > > -- > www.ilovetovoip.com <http://www.ilovetovoip.com> > >> On 2010-06-15 9:27 AM, "Chris Ramirez" <cramirez at tele-onecom.com >> <mailto:cramirez at tele-onecom.com>> wrote: >> >> We are having an issue with the RDNIS coming through with a leading 1 >> on some calls. I have been trying to find a way to remove the leading >> number only if it starts with a 1 and have yet to find a solid >> solution. If anyone else has any idea as how to do this I would >> greatly appreciate it! Thanks. >> -- >> *Chris Ramirez* >> TELE-ONE COMMUNICATIONS, INC. >> cramirez at tele-onecom.com <mailto:cramirez at tele-onecom.com> >> 903-531-0777 >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users-- *Chris Ramirez* TELE-ONE COMMUNICATIONS, INC. cramirez at tele-onecom.com 903-531-0777 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/3fd210fa/attachment.htm
Can you give an example of how it looks like? Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-06-15 4:18 PM, "Chris Ramirez" <cramirez at tele-onecom.com> wrote: What that catches though is the actual phone number not the RDNIS. Is there any way that we can use something similar for sorting of the RDNIS? On 6/15/2010 9:19 AM, Zeeshan Zakaria wrote:> > Hi, > > I do something similar but for outbound c...-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/fade1e62/attachment.htm
Right now we are attempting this... When a call comes in it has all of the CALLERID() information. What we are wanting is that when the variable CALLERID(RDNIS) comes through as 18005555555 we can have it be forwarded through the system as 8005555555 rather than with the 1 preceding it.We are setting the RDNIS as the CDR(userfield) to pass it through. Is that what you were wanting? On 6/15/2010 3:23 PM, Zeeshan Zakaria wrote:> > Can you give an example of how it looks like? > > Zeeshan A Zakaria > > -- > www.ilovetovoip.com <http://www.ilovetovoip.com> > >> On 2010-06-15 4:18 PM, "Chris Ramirez" <cramirez at tele-onecom.com >> <mailto:cramirez at tele-onecom.com>> wrote: >> >> What that catches though is the actual phone number not the RDNIS. Is >> there any way that we can use something similar for sorting of the >> RDNIS? >> >> >> >> On 6/15/2010 9:19 AM, Zeeshan Zakaria wrote: >> > >> > Hi, >> > >> > I do something similar but for outbound c... >> >> >> -- >> _____________________________________________________________________ >> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- >> New to Asterisk? Join us for a live introductory webinar every Thurs: >> http://www.asterisk.org/hello >> >> asterisk-users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users-- *Chris Ramirez* TELE-ONE COMMUNICATIONS, INC. cramirez at tele-onecom.com 903-531-0777 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/52d17eeb/attachment.htm