[asterisk-users] Trim the RDNIS

Jeremy Kister asterisk-01 at jeremykister.com
Wed Oct 27 15:27:37 CDT 2010


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 can

exten => 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./



More information about the asterisk-users mailing list