[asterisk-users] Cutting the CallerID(RDNIS)

Zeeshan Zakaria zishanov at gmail.com
Tue Jun 15 18:23:40 CDT 2010


I have worked on somewhat similar situations but with ANI and DNIS, not with
RDNIS, but it seems similar to me. If it enters a context, the code I sent
above should work just fine. If not, you can either replace ${EXTEN:1} with
${CALLERID(RDNIS):1}, or within the same context where you know
CALLERID(RDNIS) exists assign it to a new variable "foo" like:

exten => s,1,GotoIf($["${CALLERID(RDNIS):0:1}"="1"]?a:b)
exten => s,n(a),Set(foo="${CALLERID(RDNIS):1}")
exten => s,n(b),Noop( - - - - - RDNIS fix end - - - - -)

And from here you can use the foo variable. I don't know if it'll work or
not, but in the above code you can try to do:
Set(CALLERID(RDNIS)="${CALLERID(RDNIS):1}")

Zeeshan A Zakaria

--
www.ilovetovoip.com

On 2010-06-15 5:13 PM, "Chris Ramirez" <cramirez at tele-onecom.com> wrote:

 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?
>
>...

-- 
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/192fe3da/attachment.htm 


More information about the asterisk-users mailing list