Re: [OpenSIPS-Users] M4 config generation issue

2016-05-06 Thread Bogdan-Andrei Iancu

Hi John,

That's a good finding, thanks for sharing it with us.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.05.2016 20:14, John Nash wrote:
Yeah changing pass crossed my mind too...:-). I was about to do that 
but i luckily found this command changecom(`/*', `*/'). This changes 
comments from "#" to C type comments (For m4 parser). It solved my 
problem.


On Thu, May 5, 2016 at 10:20 PM, Bogdan-Andrei Iancu 
> wrote:


Hi John,

either dig into M4 secrets , either simply change your password to
avoid the hash char :)

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.05.2016 18:20, John Nash wrote:

I am trying to generate .cfg file with the help of m4. I have
following line in my opensips.cfg.m4
DB_USER:DB_PASS@DB_IP/DB_NAME

In defines.m4 I have corresponding values.

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 #)

Any way out?


___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] M4 config generation issue

2016-05-05 Thread Newlin, Ben
You could also have wrapped the DB_PASS in an extra set of m4-style quotes:

define( `DB_PASS',``some#password'')

Ben Newlin

From: 
<users-boun...@lists.opensips.org<mailto:users-boun...@lists.opensips.org>> on 
behalf of John Nash <john.nash...@gmail.com<mailto:john.nash...@gmail.com>>
Reply-To: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Date: Thursday, May 5, 2016 at 1:14 PM
To: Bogdan-Andrei Iancu <bog...@opensips.org<mailto:bog...@opensips.org>>
Cc: OpenSIPS users mailling list 
<users@lists.opensips.org<mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] M4 config generation issue

Yeah changing pass crossed my mind too...:-). I was about to do that but i 
luckily found this command changecom(`/*', `*/'). This changes comments from 
"#" to C type comments (For m4 parser). It solved my problem.

On Thu, May 5, 2016 at 10:20 PM, Bogdan-Andrei Iancu 
<bog...@opensips.org<mailto:bog...@opensips.org>> wrote:
Hi John,

either dig into M4 secrets , either simply change your password to avoid the 
hash char :)

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.05.2016 18:20, John Nash wrote:
I am trying to generate .cfg file with the help of m4. I have following line in 
my opensips.cfg.m4
DB_USER:DB_PASS@DB_IP/DB_NAME

In defines.m4 I have corresponding values.

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 #)

Any way out?



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


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] M4 config generation issue

2016-05-05 Thread John Nash
Yeah changing pass crossed my mind too...:-). I was about to do that but i
luckily found this command changecom(`/*', `*/'). This changes comments
from "#" to C type comments (For m4 parser). It solved my problem.

On Thu, May 5, 2016 at 10:20 PM, Bogdan-Andrei Iancu 
wrote:

> Hi John,
>
> either dig into M4 secrets , either simply change your password to avoid
> the hash char :)
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 05.05.2016 18:20, John Nash wrote:
>
> I am trying to generate .cfg file with the help of m4. I have following
> line in my opensips.cfg.m4
> DB_USER:DB_PASS@DB_IP/DB_NAME
>
> In defines.m4 I have corresponding values.
>
> 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 #)
>
> Any way out?
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] M4 config generation issue

2016-05-05 Thread Bogdan-Andrei Iancu

Hi John,

either dig into M4 secrets , either simply change your password to avoid 
the hash char :)


Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.05.2016 18:20, John Nash wrote:
I am trying to generate .cfg file with the help of m4. I have 
following line in my opensips.cfg.m4

DB_USER:DB_PASS@DB_IP/DB_NAME

In defines.m4 I have corresponding values.

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 #)


Any way out?


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] M4 config generation issue

2016-05-05 Thread John Nash
I am trying to generate .cfg file with the help of m4. I have following
line in my opensips.cfg.m4
DB_USER:DB_PASS@DB_IP/DB_NAME

In defines.m4 I have corresponding values.

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 #)

Any way out?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users