<SPAM>[Asterisk-Dev] How Do I ... time for a index/strpos function ??

Jerris, Michael MI mjerris at ofllc.com
Tue May 24 05:41:44 MST 2005


> Gregory Hinton Nietsky
> 
> rather messy what id like to do is
> exten => _*94*X.,1,Macro(setddi,${EXTEN})
> 
> and do somthing like this in the macro
> exten => s,n,SET(NUMBER=${STRPOS(*,${ARG1})}
> exten => s,n,SET(DB(DDI/${ARG1:1:${NUMBER}})=${ARG1:${NUMBER}})
> 
The dialplan functions are fairly easy to create, look at some of the
samples in the funcs dir and make one up for STRPOS then submit it to
bugs.digium.com.



More information about the asterisk-dev mailing list