[Spce-user] Permanent contact with + in SIP URI

Andreas Granig agranig at sipwise.com
Mon Jun 18 16:30:55 EDT 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120618/6b3e89c1/attachment-0001.asc>


More information about the Spce-user mailing list