Hi,
I am trying to use negative match in regular expression but without using
!uri=~. For example, any uri not starting with 9. I tried this,
if (uri=~"^sip:(?!9).*@testdomain.com")
I got this error.
ERROR: fix_expr : bad re "^sip:(?!9).*@testdomain.com"
Does ser support this kind of regular expression?
Thanks,
Richard
How to authenticate users when ser receives INVITE message?
How to send 407 Proxy authentication Required to user after SER receivec INVITE message?
Thanks & Regards
Ritesh Jalan
Hi everybody
Do anyone know where I can find CDRTool documentation, mainly to configure global.inc ? I found nothing on internet. Any help will be aprecciated.
Thanks in Advance.
--
Felipe Martins
Linux System Administrator
Tep Solution Provider
Mundivox Communications
Rua Lauro Muller, 116/Sala 505
RJ - Brasil - 22290-906
Tel.: 55 21 3820-8839
Fax.: 55 21 3820-8844
Dear all,
I have number translation as below to manipulate the dialing pattern, it's
works fine for it's purpose. One problem is all on net calls can connect
but no voice. Any idea?
route{
if (!mf_process_maxfwd_header("10")) {
if (method!="ACK") {
sl_send_reply("483", "Too many hops");
};
break;
};
if (msg:len >= max_len) {
if (method!="ACK") {
sl_send_reply("513", "Message too big");
};
break;
};
if (search("^From: sip:sipsak@") && (method=="OPTIONS") &&
(!uri=~"sip:.*[@]+.*")) {
options_reply();
break;
};
# !! Nathelper
if (nat_uac_test("19")) {
if (method == "REGISTER" || !search("^Record-Route:")) {
fix_nated_contact(); # Rewrite contact with source IP of
signalling
if (method == "INVITE") {
fix_nated_sdp("1"); # Add direction=active to SDP
};
force_rport(); # Add rport parameter to topmost Via
append_hf("P-hint: Proxied\r\n");
setflag(5); # Mark as NATed
};
};
if (!method=="REGISTER") record_route();
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri=~"^sip:1[0-9]+@.*" && !uri=~"^sip:81[0-9]+@.*") {
if (uri=~"sip:[1-9][0-9]+@.*") {
prefix("81");
} else if (uri=~"sip:0[1-9][0-9]+@.*") {
strip(1);
prefix("81");
} else if (uri=~"sip:00[1-9][0-9]+@.*") {
strip(2);
};
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("", "subscriber")) {
www_challenge("", "1");
break;
};
save("location");
break;
};
setflag(1);
lookup("aliases");
if (lookup("location")) {
append_hf("P-hint: usrloc applied\r\n");
route(1);
break;
};
.......
Raymond
Dear all,
I have two sipura box behind NAT. both use via header and can dial out and
received calls without proxy. but they have no voice when they call to each
other, any idea?
Raymond
Hi all,
I have come across the same problem as described by this user below:
i.e. when i use the serctl facility to add a user I get the following
error:
ERROR 2005: Unknown MySQL Server Host 'dbhost'
However I also couldnt understand the breif answer given to it.
Forgive me but I'm a total newbie when it comes to linux. Could
somebody give me the command to solve the following?.
Thanks very much,
Aisling.
>You can set SQL_HOST environment variable to change the hostname of
>the
>database server (do not forget to export the variable afterwards).
> Jan.
>On 17-11 09:22, E. Versaevel wrote:
> Dbhost is the name of the variable you need to edit in the serctl
script,
> you should set it to localhost in your case.
>
> -----Oorspronkelijk bericht-----
> Van: serusers-bounces at iptel.org [mailto:serusers-bounces at
iptel.org] Namens
> Nicolas Fauvel
> Verzonden: woensdag 17 november 2004 3:46
> Aan: serusers at iptel.org
> Onderwerp: [Serusers] MySql access problem
>
> Hi everybody,
>
> I'm in charge of installing a sip server for my university. At the
moment,
> I'm
> testing SER from my stand alone computer.
>
> But I've a problem : when I want to add a user with serctl, here is
the
> answer
> :
> ERROR 2005: Unknown MySQL Server Host 'dbhost' (1)
>
> mysqld is running, ser is running, what is this "dbhost" ??? Any
idea ?
-------------------Legal Disclaimer---------------------------------------
The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
Please help....
----- Original Message -----
From: Nicky
To: serusers(a)lists.iptel.org ; sems(a)lists.iptel.org
Sent: Thursday, January 13, 2005 7:21 PM
Subject: Error when importing MySQLdb
Dear all,
Please help I am facing this the error below, I am using Python 2.3.4, MySQLdb from MySQL-python-1.0.1 and mysql version 4.1.18.
Someone please advice what is the problem I am lost already. Thanks.
File "/root/answer_machine/plug-in/ivr/scripts/ivr.py", line 6, in ?
import MySQLdb
File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py", line 42, in ?
from MySQLdb.times import Date, Time, Timestamp, \
File "/usr/local/lib/python2.3/site-packages/MySQLdb/times.py", line 17, in ?
from stringtimes import *
File "/usr/local/lib/python2.3/site-packages/MySQLdb/stringtimes.py", line 3, in ?
from time import strftime, localtime
ImportError: /usr/local/lib/python2.3/lib-dynload/time.so: undefined symbol: PyExc_IOError
(31600) ERROR: run (IvrPython.cpp:908): IVR PYTHON Error: Failed to run "/root/answer_machine/plug-in/ivr/scripts/ivr.py"
(31600) ERROR: stop (AmThread.cpp:86): pthread_detach failed with code 3
Regards,
Nicky
hello!
How can I get the FCP server code frome CVS or other Way? I used the command:
cvs -z3 -d:pserver:anonymous@cvs.fcpd.berlios.de:/cvsroot/fcpd co fcp
Show me error is
cvs checkout: cannot open CVS/Entries for reading: No such file or directory
cvs [checkout aborted]: no repository
Someone can tell me why?
Hi everybody
As I'm a very new user to ser, combined with nearly no documentation about configuring global.inc, I couldn't configure CDRTool. It keeps sending me some error messages about misconfigured global.inc. Is there any guide to configure it ? Where can I find it if there is such guide ?
Is there anyone that could configure it using ser,mysql ?
Any hand is aprecciated
Thanks in Advance
--
Felipe Martins
Linux System Administrator
Tep Solution Provider
Mundivox Communications
Rua Lauro Muller, 116/Sala 505
RJ - Brasil - 22290-906
Tel.: 55 21 3820-8839
Fax.: 55 21 3820-8844