Hello,

can you try the attached patch? It is for 1.3 branch. Should fix the case when the PV spec is last in a zero-terminated string. Let me know if it works so I can commit.

Cheers,
Daniel


On 02/04/08 21:04, kokoska rokoska wrote:
Hello everybody.

I'm just trying to migrate from 1.2.2 to 1.3.0 and I discovered troubles with acc module parameters.

In 1.2.2 i used
modparam("acc", "db_extra", "src_user=$fU;src_domain=$fd;dst_user=$rU;dst_domain=$rd")

But 1.3.0 didn't start with followed error

Feb 4 19:59:36 pbx2 /usr/local/sbin/openser[19616]: ERROR:acc:parse_acc_extra: parse failed in <src_user=$fU;src_domain=$fd;dst_user=$rU;dst_domain=$rd> around position 57

After short test I have discovered that 1.3.0 accept only string up to 38 characters long - this works:
modparam("acc", "db_extra", "src_user=$fU;src_domain=$fd;dst_us=$rU")

Could someone point me to the solution how to use longer definition in db_extra or tell me what I'm doing wrong?

Thanks a lot, regards

kokoska.rokoska


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

Index: pvar.c
===================================================================
--- pvar.c	(revision 3623)
+++ pvar.c	(working copy)
@@ -2780,6 +2780,7 @@
 		}
 	} else { 
 		if(!is_in_str(p, in)) {
+			p--;
 			goto done_inm;
 		} else if(*p==PV_LNBRACKET) {
 			p++;
_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users

Reply via email to