RE: [REQ] generic config struct for parameter value lists

"fred" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <000901c76a78$fff58a10$35e0110a@FRED42>
 
Example use in def file


MULTI_GROUP(smsc,
    OCTSTR(smsc)
    .....
	OCTSTRARY(mo-source-addr-regex-subst)
	OCTSTRARY(mo-dest-addr-regex-subst)
	OCTSTRARY(mt-source-addr-regex-subst)
	OCTSTRARY(mt-dest-addr-regex-subst)
...



------------------------------------------------------------------
Subject: RE: [REQ] generic config struct for parameter value lists

I needed such a feature, here is an example:

Here the LHS is a list of reg expressions, match and the substitution expression

mt-dest-addr-regex-subst = "^1([1-9][0-9]{9})$" "$1"
                         = "^0([2-9][0-9]{9})$" "$1"

mo-source-addr-regex-subst = "(^[2-9][0-9]{9})$" "1$1"
                        = "^0([2-9][0-9]{9})$" "1$1" 


All the stuff is in cfg.c, so I'll simply attach my version....
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.