What I am needing to do is to trim the 1 from beginning of the RDNIS and I have tried using the CUT function but cannot seem to make it work for me. What we have is a phone number like this, 18881232342 and want to make it like this 8881232342. I appreciate any help that you guys can give. 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/20101026/dac3683a/attachment.htm
On Tue, 26 Oct 2010, Chris Ramirez wrote:> What I am needing to do is to trim the 1 from beginning of the RDNIS and > I have tried using the CUT function but cannot seem to make it work for > me. What we have is a phone number like this, 18881232342 and want to > make it like this 8881232342. I appreciate any help that you guys can > give. Thanks!Read <whereever-you-keep-your-asterisk-sources>/doc/README.variables. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
On 10/26/2010 1:57 PM, Chris Ramirez wrote:> me. What we have is a phone number like this, 18881232342 and want to > make it like this 8881232342. I appreciate any help that you guys canexten => 123,1,Set(DNIS=18881232342) exten => 123,n,Set(TRIMMED=${DNIS:1:11}) exten => 123,n,NoOp( *** Converted ${DNIS} -> ${TRIMMED} *** ) -- Jeremy Kister http://jeremy.kister.net./