[OpenSIPS-Users] Defines/vars in opensips.cfg before route{

Daniel Nihlén daniel at room40.se
Mon Apr 23 11:28:28 CEST 2012


Hi,  

I been trying to find this in documentation but didn't mange. Sorry if I ask a question already answered.


I would like to have something like a static variable / define that is accessible outside and inside route{} allowing for having my IP's written only once in .cfg.

Something like this:
myIP="1.2.3.4"
listen=udp:<myIP>:5060


route{
…
if(dst_ip==<myIP>){
...  
}


...
}


Anything like this possible?

Thanks
Daniel Nihlen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120423/8b7c1f75/attachment.htm>


More information about the Users mailing list