[OpenSIPS-Users] m4 Macros Not Expanding

Jerry Richards jerry.richards at teotech.com
Tue May 29 18:42:47 CEST 2012


Aha, yes I was using single quotes.  Now it's working

Thank You,
Jerry


From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Rudy
Sent: Tuesday, May 29, 2012 9:40 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] m4 Macros Not Expanding

Jerry,

 Make sure that in your define(s) you open with ` (tilde) and close the quote with a ' (single quote) .

 so a define line looks like "define([tilde]KEYWORKD[single_quote], [tilde]VALUE[single_quote])"

Thanks in advance,
--Rudy
Dynamic Packet
Toll-Free: 888.929.VOIP ( 8647 )

On Tue, May 29, 2012 at 12:23 PM, Jerry Richards <jerry.richards at teotech.com<mailto:jerry.richards at teotech.com>> wrote:
Hello,

I'm following the m4 examples at this link: http://www.opensips.org/Resources/DocsTools

But I'm not seeing macros getting expanded in the resultant opensips.cfg file.  They just show up as the macro name (e.g. MY_PORT), instead of the actual value (e.g. 5060).

Also by the way, at that link, I removed "dnl" from after the divert(0), because it looks like a typo (and it inserts "dnl" into the file producing a syntax error, if I include it.

Anyone know why this could be happening?

Thanks,
Jerry


_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120529/2e327110/attachment-0001.htm>


More information about the Users mailing list