Hi,
I'm going to setup multi domain ser or openser , if some one can have any
sample configuration of some good guide to configure. Please help.
thanks
Arun
Hi all,
I'm usign 2 users behind the same Nat and I'm using x-lite 3.0.
User A calls user B.
I want to use mediaproxy between 2 users and I have configured my
openser file in that way.
Mediaproxy doesn't works, and I've noticed diferences between the "200
OK" message received by user A and that sent by proxy.
user A --- INVITE ----> proxy --- INVITE-----> user B
user A <----200 OK ---- proxy < ----- 200 OK --- user B
this is the 200 OK message sent by proxy to USER A.
This has been already manipulated by proxy (chenge IP and PORT in SDP
part) for using mediaproxy :
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.10.245:14620;received=85.18.14.25;branch=z9hG4bK-d87543-37310b5f2633e814-1--d87543-;rport=18267
Record-Route: <sip:137.204.107.138:5060;lr;nat=yes;ftag=910e1011>
Contact: <sip:daniel@85.18.14.25:20881;rinstance=8a9df9cdfc3da728>
To: "daniel"<sip:daniel@137.204.107.138>;tag=6e33c440
From: "daniel.grotti"<sip:daniel.grotti@137.204.107.138>;tag=910e1011
Call-ID: Y2M3ZDNjOGExN2Q0YTBlYjViMTg1NDAwOTAxZjliMDY.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: *375*
v=0
o=- 2 2 IN IP4 192.168.10.224
s=CounterPath X-Lite 3.0
*c=IN IP4 137.204.107.138 IP of media relay*
t=0 0
*m=audio 60004 RTP/AVP 107 119 100 106 0 105 98 8 101 # 60004 port
of mediarelay*
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:119 BV32-FEC/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
and this is the message sniffed by client A:
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.10.245:14620;received=85.18.14.25;branch=z9hG4bK-d87543-37310b5f2633e814-1--d87543-;rport=18267
Record-Route: <sip:137.204.107.138:5060;lr;nat=yes;ftag=910e1011>
Contact: <sip:daniel@85.18.14.25:20881;rinstance=8a9df9cdfc3da728>
To: "daniel"<sip:daniel@137.204.107.138>;tag=6e33c440
From: "daniel.grotti"<sip:daniel.grotti@137.204.107.138>;tag=910e1011
Call-ID: Y2M3ZDNjOGExN2Q0YTBlYjViMTg1NDAwOTAxZjliMDY.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1011s stamp 41150
Content-Length: *374*
v=0
o=- 2 2 IN IP4 192.168.10.224
s=CounterPath X-Lite 3.0
*c=IN IP4 192.168.10.224*
t=0 0
*m=audio 36124 RTP/AVP 107 119 100 106 0 105 98 8 101*
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:119 BV32-FEC/16000
a=rtpmap:100 SPEEX/16000
a=rtpmap:106 SPEEX-FEC/16000
a=rtpmap:105 SPEEX-FEC/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
It's the same message but with c and m parameter changed.
So, mediaproxy doesn't work and 2 users are directly connected.
any suggestion?
regards,
daniel
Default SER configuration does that, you just need command-line tools
to add the domain. -jiri
At 16:41 03/12/2007, Arun Kumar wrote:
>Hi,
>
>I'm going to setup multi domain ser or openser , if some one can have any sample configuration of some good guide to configure. Please help.
>
>
>thanks
>
>Arun
>_______________________________________________
>Serusers mailing list
>Serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
>
>
> Message: 9
> Date: Mon, 3 Dec 2007 15:59:06 +0100
> From: Bastian Friedrich <bastian.friedrich(a)collax.com>
> Subject: Re: [OpenSER-Users] perl
> To: users(a)lists.openser.org
> Message-ID: <200712031559.06986.bastian.friedrich(a)collax.com>
> Content-Type: text/plain; charset="iso-8859-15"
>
> On Monday 03 December 2007, David Villasmil Govea wrote:
> [...]
> > 0(0) perl error: Can't locate OpenSER/Utils/PhoneNumber.pm in @INC
> [...]
> >
> > Although modules are there in:
> >
>
> No, there is no "PhoneNumber.pm" in that path.
>
> [...]
> > me@server:/usr/local/lib/openser/perl# ls -l
> > /usr/local/lib/openser/perl/OpenSER/Utils/
> > total 8
> > -rw-r--r-- 1 root root 6096 2007-12-03 14:00 PhoneNumbers.pm
>
> It's "PhoneNumbers.pm". Correct typing is _not_ optional while programming
> :)
thanks for the heads-up.. but i didn't type a thing, its all in the tar
file... so there's a typo there.
so THIS should be the correct /usr/local/etc/openser/openser.pl file, which
comes with the tar ball:
**************************************************************************************************************
push @INC, '/usr/local/lib/openser/perl/';
use OpenSER::Utils::PhoneNumbers;
OpenSER->import;
my $phonenumber = new OpenSER::Utils::PhoneNumbers(
publicAccessPrefix => "0",
internationalPrefix => "+",
longDistancePrefix => "0",
areaCode => "761",
pbxCode => "456842",
countryCode => "49"
);
$canonical = canonicalForm("07612034567");
$number = dialNumber("+497612034567");
exit 0;
**************************************************************************************************************
thanks
>
>
> > > > - Is there a tutorial for using MySQL as a backend? How about a
> > > > cluster?
> > >
> > > MySQL backend for what?
> >
> > I have it working as a MySQL backend for users. What i need is the
> logging
> > of cdrs... i understand that there are several records for each call.
> But,
> > how do i configure this? is it possible with MySQL? thanks a lot.
>
> You should start a different thread with a different subject.
>
> What you are looking for seems to be accounting, provided by the OpenSER
> module "acc". Module documentation is available on
> http://www.openser.org/docs/modules/1.3.x/acc.html
> The "acc" module works fine with MySQL.
>
> Bastian
>
> --
> Collax GmbH . Burkheimer Stra?e 3 . 79111 Freiburg . Germany
> p: +49 (0) 761-45684-24
> f: +49 (0) 761-45684-10 www.collax.com
>
> Gesch?ftsf?hrer: William K. Hite / Boris Nalbach
> AG M?nchen HRB 158898 . Ust.-IdNr: DE 814464942
> \ There are 2 ways to handle women and I know neither.
>
>
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>
> End of Users Digest, Vol 31, Issue 5
> ************************************
>
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I use openser 1.3 latest trunk and try to use presence module.
If presence server receives PUBLISH message the following error occurs
on console:
Dec 3 13:24:03 [616] ERROR:presence:handle_publish: Missing or
unsupported event header field value
Dec 3 13:24:03 [616] ERROR:presence:handle_publish: event=[presence]
My openser config is this:
xlog("Handle $rm\n");
# presence handling
if(is_method("PUBLISH"))
{
handle_publish();
xlog("DONE!\n");
sl_send_reply("200","PUBLISH ok ");
t_release();
}
Is this a bug or do I have to define the events somewhere?
regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHU/cP4tZeNddg3dwRAujxAKCEG2zdB7nhqychuMcgf6oEurky4gCdHH/v
NGJILGEwcG7Xc3mwfQytKFY=
=Wwcp
-----END PGP SIGNATURE-----
>
>
> OpenSER modules can be included while compiling by using the
> "include_modules"
> statement. Thus, the perl module (not "mod_perl", as Daniel already
> pointed
> out) can be compiled along with OpenSER by using
> make include_modules="perl"
>
> You will need your distribution's perl development packages installed
> while
> compiling.
Yes, I have it compiled with no problems, but when i try to load a perl
script, i get this:
0(0) perl: Setting lib path: '/usr/local/lib/openser/perl/'
0(0) perl error: Can't locate OpenSER/Utils/PhoneNumber.pm in @INC (@INC
contains: /usr/local/lib/openser/perl/ /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
/usr/local/etc/openser/openser.pl line 4.
0(0) perl error: Can't locate OpenSER/Utils/PhoneNumber.pm in @INC (@INC
contains: /usr/local/lib/openser/perl/ /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
/usr/local/etc/openser/openser.pl line 4.
BEGIN failed--compilation aborted at /usr/local/etc/openser/openser.pl line
4.
Can't locate OpenSER/Utils/PhoneNumber.pm in @INC (@INC contains:
/usr/local/lib/openser/perl/ /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at
/usr/local/etc/openser/openser.pl line 4.
BEGIN failed--compilation aborted at /usr/local/etc/openser/openser.pl line
4.
Although modules are there in:
me@server:/usr/local/lib/openser/perl# ls -l /usr/local/lib/openser/perl/
total 4
drwxrwx--- 4 root root 168 2007-12-03 14:00 OpenSER
-rwxrwx--- 1 root root 1354 2007-12-03 14:00 OpenSER.pm
me@server:/usr/local/lib/openser/perl# ls -l
/usr/local/lib/openser/perl/OpenSER
total 12
-rw-r--r-- 1 root root 4844 2007-12-03 14:00 Constants.pm
drwxr-xr-x 2 root root 120 2007-12-03 14:00 LDAPUtils
-rw-r--r-- 1 root root 1602 2007-12-03 14:00 Message.pm
drwxr-xr-x 2 root root 80 2007-12-03 14:00 Utils
me@server:/usr/local/lib/openser/perl# ls -l
/usr/local/lib/openser/perl/OpenSER/Utils/
total 8
-rw-r--r-- 1 root root 6096 2007-12-03 14:00 PhoneNumbers.pm
>
>
> Feel free to ask if you have any concrete questions.
>
> > - Is there a tutorial for using MySQL as a backend? How about a
> > cluster?
>
> MySQL backend for what?
I have it working as a MySQL backend for users. What i need is the logging
of cdrs... i understand that there are several records for each call. But,
how do i configure this? is it possible with MySQL? thanks a lot.
>
>
> Bastian
>
thanks much for your help!
David
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
Hi,
we have SER version 0.96 running on a debian system using mysql for
user authentication.
Everything works fine as long as we use the standard logging to
/var/log/syslog.
When we change the logging to use another syslog facility (e.g.
log_facility=LOG_LOCAL0 in ser.cfg)
all messages are written to the file specified in syslog.conf, but the
users are not able to register to ser. It looks as if the db-connection
to the mysql database is not available.
Has anybody observed this behaviour and can provide a hint ?
We appreciate any kind of help.
Kind regards,
Michael
--
Dr.Michael Roeper Email: m.roeper(a)wenzel-elektronik.de
Wenzel Elektronik GmbH Tel.: 04121/4872-69
Max-Planck-Str. 2-4 Fax : 04121/4872-18
25335 Elmshorn http://www.wenzel-elektronik.de
Sitz der Gesellschaft: Elmshorn
Registergericht: Pinneberg, HRB 1974 EL
USt-IdNr.: DE 812946778
Geschäftsführung: Dipl. Ing Jörg Simon, Dr. Volker Henkel
--
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
today I found, that t_check_trans function of TM module seems to has a
problem with at least PUBLISH and SUBSCRIBE Messages. If openser checks
theses messages with t_check_trans() route script execution will stop.
Is this intended or a bug? Module docc says, that t_check_trans() cares
about ACKs and CANCELs ..
regards
helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHU9mU4tZeNddg3dwRAlk/AJ9k/B/YBum72U45csWBqyi7RMLxXQCfWLLx
rxRkJmYXFSOFvq6FlYKR3ng=
=0bIH
-----END PGP SIGNATURE-----
Hi,
I was trying to set up media proxy module and after some time of debuging I
discovered that the problems
were in the get_from_did(&did, msg) function. in mediaproxy.c file in line
469 there is such piece of code:
if (get_from_did(&did, msg) == 0) {
*type = "local";
return did;
}
when this code is invoked the result is wrong. this is some nowhere pointer
with the length of the field unpredictable.
after this invocation there is another piece of code wich tries to allocate
some memory baseing on the length of the did string.(line 1449)
cmdlen = callId.len + strlen(clientIP) + fromDomain.len + toDomain.len +
userAgent.len*3 + infolen + 128;
command = pkg_malloc(cmdlen);
if (!command) {
LOG(L_ERR, "error: use_media_proxy() - (!command): out of
memory\n");
return -1;
}
this causes out of memory error when value of fromDomain.len gives random
big number(below example of one my shots)
Dec 2 18:17:17 rd ser[5884]: route[MEDIA]: use_media_proxy()
Dec 2 18:17:17 rd ser[5884]: error: get_from_did - true
Dec 2 18:17:17 rd ser[5884]: error: callId.len: 44
Dec 2 18:17:17 rd ser[5884]: error: strlen(clientIP): 14
Dec 2 18:17:17 rd ser[5884]: error: fromDomain.len: 1235653920
Dec 2 18:17:17 rd ser[5884]: error: toDomain.len: 14
Dec 2 18:17:17 rd ser[5884]: error: userAgent.len*3: 96
Dec 2 18:17:17 rd ser[5884]: error: infolen: 107
Dec 2 18:17:17 rd ser[5884]: error: cmdlen 1235654349
Dec 2 18:17:17 rd ser[5884]: error: use_media_proxy() - (!command): out of
memory
please, can someone check this and fix
best regards
tomasz
Hello all,
Its my first time writing to the list, i hope someone can help me out.
- Can anyone point me in the right direction for compiling with
mod_perl? I tried compiling but it wouldn't work. That was a few months ago,
though. Is there a good step-by-step tutorial?
- Is there a tutorial for using MySQL as a backend? How about a
cluster?
thanks to all.
David