<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>You could also have wrapped the DB_PASS in an extra set of m4-style quotes:</div>
<div><br>
</div>
<div>
<div class="h5">
<div dir="ltr">define( `DB_PASS', ``some#password'')</div>
</div>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<div><br>
</div>
<div>Ben Newlin</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>> on behalf of John Nash <<a href="mailto:john.nash778@gmail.com">john.nash778@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, May 5, 2016 at 1:14 PM<br>
<span style="font-weight:bold">To: </span>Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>><br>
<span style="font-weight:bold">Cc: </span>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [OpenSIPS-Users] M4 config generation issue<br>
</div>
<div><br>
</div>
<span style="mso-bookmark:_MailOriginalBody">
<div>
<div>
<div dir="ltr">Yeah changing pass crossed my mind too...:-). I was about to do that but i luckily found this command <span style="color:rgb(0,0,0)">changecom(`/*', `*/'). This changes comments from "#" to C type comments (For m4 parser). It solved my problem.</span></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, May 5, 2016 at 10:20 PM, Bogdan-Andrei Iancu <span dir="ltr">
<<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><tt>Hi John,<br>
<br>
either dig into M4 secrets , either simply change your password to avoid the hash char :)<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div class="h5">
<div>On 05.05.2016 18:20, John Nash wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">I am trying to generate .cfg file with the help of m4. I have following line in my opensips.cfg.m4
<div>DB_USER:DB_PASS@DB_IP/DB_NAME<br>
</div>
<div><br>
</div>
<div>In defines.m4 I have corresponding values. </div>
<div><br>
</div>
<div>The issue is my DB_PASS contains "#" as one of the character and because of that any word after DB_PASS is not being replaced (I guess m4 ignores words after #)</div>
<div><br>
</div>
<div>Any way out? </div>
</div>
<br>
<fieldset></fieldset> <br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></span>
</body>
</html>