[Serusers] consume_credentials() bug!?

Rodrigo P. Telles telles at devel.it
Mon Jul 25 22:22:56 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrei,

Andrei Pelinescu-Onciul wrote:
> On Jul 22, 2005 at 15:28, Rodrigo P. Telles <telles at devel.it> wrote:
> 
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Iqbal,
>>
>>Thanks for your idea.
>>
>>Jan,
>>
>>As you asked follow the dumps plus ser.cfg.
>>http://pastebin.ca/18291
>>http://pastebin.ca/18292
>>http://pastebin.ca/18293
>>http://pastebin.ca/18294
> 
> 
> Your subst() regular expression is wrong. It will match and substitute
>  also the uri in Proxy-Authorization leading to problems with
>  consume_credentials.
> 

You are right !

> Instead of subst('/sip:3324([0-9]+ at .*)$/sip:\1/g');
> try using subst('/^(To[  ]*:.*sip:)3324([0-9]+@[^>]*)/\1\2/g');

I changed the regex like yours and the problem desapeared.
Thanks for your help.

> 
> 
> Andrei
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5UogiLK8unYgEMQRApQSAJ9Dp7f4i77ch4hZL5WVPr3JoOHMyACfb7H4
cywRqeAbm65cwlI6UEL9fPw=
=xBWF
-----END PGP SIGNATURE-----




More information about the sr-users mailing list