[Kamailio-Users] DEFINE question

Uriel Rozenbaum uriel.rozenbaum at gmail.com
Wed Mar 10 19:05:13 CET 2010


Thanks guys, I'm using 1.5.3

So I can use

define(`SHOULD_AUTH', 1)
...
if(SHOULD_AUTH)
{
     route(5); #Auth
}

within my cfg file?

On Wed, Mar 10, 2010 at 1:48 PM, Henning Westerholt <
henning.westerholt at 1und1.de> wrote:

> On Wednesday 10 March 2010, Uriel Rozenbaum wrote:
> > The question's simple, is there any pre-processor command to DEFINE
> > constants?
>
> Hi Uriel,
>
> in kamailio 3.0 there is also the #define directive, which works more or
> less
> like the one in other languages.
>
> http://by-miconda.blogspot.com/2009/12/best-of-new-in-kamailio-300-2-
> define.html<http://by-miconda.blogspot.com/2009/12/best-of-new-in-kamailio-300-2-%0Adefine.html>
>
> Cheers,
>
> Henning
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100310/b27ac973/attachment.htm>


More information about the sr-users mailing list