[Spce-user] Permanent contact with + in SIP URI
John Murray
john.murray at skyracktelecom.com
Tue Jun 19 08:33:41 EDT 2012
Andreas hi,
I tried that but no change.
The line is now:
unless($contact =~
/^sip\:[a-zA-Z0-9\-\_\.\!\~\*\'\(\)\%\+]+\@[a-zA-Z0-9\-\.\[\]\:]+(\:\d{1,5})
?$/)
Do I need to do more than:
/etc/init.d/apache2 restart
I also logged out and in from the UI
Regards
John
-----Original Message-----
From: spce-user-bounces at lists.sipwise.com
[mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Andreas Granig
Sent: 18 June 2012 21:31
To: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] Permanent contact with + in SIP URI
Hi,
On 06/18/2012 10:10 PM, John Murray wrote:
> The SPCE web interface does not allow me to add a permanent contact
> for a user with a + in it, as:
> sip:+447222371855 at 192.168.1.23:5060
> I am only allowed:
> sip:447222371855 at 192.168.1.23:5060
> Can I enable this?
We've fixed this in the dev version and will provide a backport for 2.5
tomorrow.
In the meanwhile, in
/usr/share/ngcp-www-admin/lib/admin/Controller/subscriber.pm search for "sub
add_permanent_contact" and change the regex line below to this:
unless($contact =~
/^sip\:[a-zA-Z0-9\-\_\.\!\~\*\'\(\)\%\+]+\@[a-zA-Z0-9\-\.\[\]\:]+(\:\d{1,5})
?$/)
{
Note the addition of "\+" before the first closing square bracket.
Restart apache2 afterwards to take it into effect.
Andreas
More information about the Spce-user
mailing list