I found in the archives about how to preserve the original number when
using alias_db_lookup. I am still learning OpenSER, and AVP is a
challenge for me. I am looking for an example that I can use that can
save the $rU in an avp before the alias_db_lookup and restore it
afterwards.
Thanks
Stagg
Hi,
check if the print.so exists. Also change in the config file the print
module loading directive to
module= print.so
Regards,
Ramona
Florian Schildger wrote:
>
> Hi @ all,
>
> I want to built a Diameter-Client and –Server with disc, but it is
> very tricky. Can someone help me?
>
> My plan is, a UA gives an invite to a SIP Express Router, this one
> forwards the request to a DISC Client, which forwards the request to
> the DISC Server and authenticate the UA.
> My first problem is to start the DISC.
>
> What I did:
>
> 1. Download the disc with cvs and Install it
>
> cvs -d:pserver:anonymous@cvs.disc.berlios.de:/cvsroot/disc
> <http://service.gmx.net/de/cgi/g.fcgi/mail/new?CUSTOMERNO=19451716&t=de13617…>
> login
> cvs -z3 -d:pserver:anonymous@cvs.disc.berlios.de:/cvsroot/disc
> <http://service.gmx.net/de/cgi/g.fcgi/mail/new?CUSTOMERNO=19451716&t=de13617…>
> co disc
> ./rebuild
> make
> make install
>
> 2. Then Configure aaa_client.cfg
>
> 17 aaa_realm= 192.160.45
> 18 aaa_fqdn = 192.160.45:1810
>
> 21 module_path= usr/local/lib/disc/client/
> 22 module= usr/local/lib/disc/client/print.so
>
> 32 peer= aaa://192.168.0.45:1812;transport=tcp # Server
> 33 peer= aaa://192.168.0.45:5060;transport=tcp # SER
>
> 42 route= aaa://192.168.0.45:1812;transport=tcp
>
> # For the Modules I don't know what to do, because I couldn't find any
> module!!! Only the print one, but I think I don'tneed it, do I?
>
> 3. After that I could't not start disc, because I had no File disc.cfg
> in /usr/local/etc/disc/disc.cfg. What I did is copy the aaa_client.cfg
> to disc.cfg
>
> cp /usr/local/disc/src/aaa_client.cfg /usr/local/etc/disc/disc.cfg
>
> 4. Then I start in the Console:
>
> debian:~# disc
> qm_malloc(0xb7cab008, 11) called from cfg_parser.c: cfg_getstr(213)
> qm_malloc(0xb7cab008, 12) returns address 0xb7cb148c frag. 0xb7cb1474
> (size=12) on 1 -th hit
> qm_malloc(0xb7cab008, 16) called from cfg_parser.c: cfg_getstr(213)
> qm_malloc(0xb7cab008, 16) returns address 0xb7cb14c8 frag. 0xb7cb14b0
> (size=16) on 1 -th hit
> qm_malloc(0xb7cab008, 27) called from cfg_parser.c: cfg_getstr(213)
> qm_malloc(0xb7cab008, 28) returns address 0xb7cb1508 frag. 0xb7cb14f0
> (size=28) on 1 -th hit
> before loading the modules
> loading module
> usr/local/lib/disc/client/print.so...qm_malloc(0xb7cab008, 35) called
> from cfg_parser.c: cfg_getstr(213)
> qm_malloc(0xb7cab008, 36) returns address 0xb7cb1554 frag. 0xb7cb153c
> (size=36) on 1 -th hit
> ERROR: load_module: failed to load
> <usr/local/lib/disc/client/print.so> in <client/modules>:
> usr/local/lib/disc/client/print.so: cannot open shared object file: No
> such file or directory
> FAILED
> ERROR (-1): on line 25
> ERROR: cannot init the core
> ERROR:AAAClose: AAA library is not initialized
> INFO:init_trans_manager: transaction manager stoped!
> INFO:destroy_peer_manager: peer manager stoped
> INFO:destroy_timer: timer thread stoped
> qm_free(0xb7cab008, 0xb7cb148c), called from aaa_core.c:
> destroy_aaa_core(576)
> qm_free: freeing frag. 0xb7cb1474 alloc'ed from cfg_parser.c:
> cfg_getstr(213)
> qm_free(0xb7cab008, 0xb7cb14c8), called from aaa_core.c:
> destroy_aaa_core(577)
> qm_free: freeing frag. 0xb7cb14b0 alloc'ed from cfg_parser.c:
> cfg_getstr(213)
> qm_status (0xb7cab008):
> heap size= 1022872
> used= 68, used+overhead=26012, free=996860
> max used (+overhead)= 26040
> dumping all allocked. fragments:
> 0. N address=0xb7cb1458 frag=0xb7cb1440 size=4
> alloc'd from shm_mem.c: shm_mem_init_mallocs(185)
> start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
> 3. N address=0xb7cb1508 frag=0xb7cb14f0 size=28
> alloc'd from cfg_parser.c: cfg_getstr(213)
> start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
> 4. N address=0xb7cb1554 frag=0xb7cb153c size=36
> alloc'd from cfg_parser.c: cfg_getstr(213)
> start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
> dumping free list stats :
> hash= 3. fragments no.: 1
> hash= 4. fragments no.: 1
> hash= 521. fragments no.: 1
> -----------------------------
> shm_mem_destroy
> destroying the shared memory lock
>
>
> He could not load the module right? But where I can get it? How can I
> use disc as Client and Server? I did only the configure for the
> client! I read out, that disc only can work as an client or as an server.
>
> Can someone give me a hint?
>
> Cheers, Flo
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
Hello
Is there a way to send in a radius request the Called and Callee information?
The avp_radius module seems to what i need to do, but it works with "called only" or "callee only" formats.
I need to send in a radius request both fields.
Can someone help me here?
Thanks
Regards,
Ricardo.-
Hi,
OpenSER has a new type of route: local route. This route is to be
executed when a brand new request is internally generated (openser being
the UAC) ; such requests are result of :
- t_uac_dlg MI command
- msilo, sms, presence, cpl-c, dialog (and others) modules
Purpose
========
This need route was added to meet the need to do dynamic manipulation
(do some checking, adding headers, logging, etc) of the internally
generated requests; without this new route, these requests were totally
transparent for the openser script.
Some strong cases there were debated for a long time on the lists:
- adding new headers into internally generated requests - so far all
kind of hacks were used to do it (like defining module parameters with
predefined headers to be added in the request - see presence modules)
- logging (log or xlog) information about the outgoing requests - see
the discussion about the presence internal logging
- accounting - there was no way to account these requests (as
accounting can be triggered only from script) - see the discussion
around the dialog module for how to account the BYEs generated by this
module
How to use
===========
there is a single instance of this route allowed in the configuration:
local_route {
......
}
Note that not all the functions are allowed to be called from this route
(better check the docs before)
Example:
local_route {
....
if (is_method("NOTIFY")) {
xlog("new $rm sent out for $ru via $du\n");
}
....
if (is_method("BYE")) {
acc_log_request("internal bye");
append_hf("X-note: terminated by dialog module");
}
....
}
Limitations
============
- you can access RURI and destination uri ($ru and $du), but any change
of these value will be discarded - you cannot change the destination of
the request
- there is no transaction persistence (yet) - you cannot set onreply or
failure routes, flags are not pushed into transaction ; this will be
probably available in the next version.
- accounting via flags do not work - as this requires transaction
persistence (see above)
Regards,
Bogdan
Hi,
when i tried to execute the following command i am getting peculiar error....please anybody can help me.
[root@info sbin]# openserctl start
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
Starting OpenSER : 19153 ? S 0:00 /bin/sh /usr/local/sbin/openserctl moni
19154 ? S 0:00 /bin/sh /usr/local/sbin/openserctl moni
19423 pts/9 S+ 0:00 /bin/sh /usr/local/sbin/openserctl start
-rw-r--r-- 1 root root 0 Jun 26 23:56 /var/run/openser.pid
INFO: PID file exists (/var/run/openser.pid)! OpenSER already running?
your suggetions are very helpfull for my further proceedings,
With Best Regards,
Naveen.
Hi all,
I am new to the Openser.Now i am trying to install openser v 1.2.0 in centos 5. whilw installation process i am getting the following error.
[root@info sbin]# openser_mysql.sh create
MySQL password for root:
Enter password:
Enter password:
creating database openser ...
ERROR 1007 (HY000) at line 1: Can't create database 'openser'; database exists
Creating core tables failed!
Any one please help, for proceeding further installation.
With Best Reagards,
Naveen.
Hi Dear,
I am using ser --> asterisk for outgoing calls.
the ser does not send bye, if the caller hanging up.
so, the session was not killed.
plz help me .
best
Yes, but I think there is a problem with the makefile, because when I
use "make all" the compilation stops on :
Linking xlog.so
gcc -shared -Wl,-O2 -Wl,-E xl_lib.o xlog.o -o xlog.so
make[1]: Leaving directory
`/usr/local/src/openser-1.3.0/sip-server/modules/xlog'
cd utils/openserunix; make all
make[1]: Entering directory
`/usr/local/src/openser-1.3.0/sip-server/utils/openserunix'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/usr/local/src/openser-1.3.0/sip-server/utils/openserunix'
if [ "no" = "yes" ]; then \
cd utils/db_berkeley; make all ; \
fi ;
Eliass
David Villasmil wrote:
> Have you read ALL the documentation?
> Have you looked for error in /var/log/syslog?
> Do you understand the openser.cfg?
>
>
> d
>
> On Wed, Jun 25, 2008 at 4:00 PM, Eliass Salim <salim(a)enseirb.fr
> <mailto:salim@enseirb.fr>> wrote:
>
> hi,
>
> I've installed openser 1.3.0 ( by following instructions from
> http://www.openser.org/dokuwiki/do [...] -from-svn)
> <http://www.openser.org/dokuwiki/doku.php/install:openser-from-svn%29>
> on my computer (fedora core 6,result of the command uname -a: Linux
> park 2.6.20-1.2952.fc6 #1 SMP Wed May 16 17:59:13 EDT 2007 i686 i686
> i386 GNU/Linux), and when I launch OpenSER via /etc/ini.d/openser
> start,
> I've this:
> [eliass@park ~]$ /etc/init.d/openser start
> Starting openser: openser /var/run/openser/openser.pidListening on
> udp: 127.0.0.1 <http://127.0.0.1> [127.0.0.1
> <http://127.0.0.1>]:5060
> udp: 192.168.10.110 <http://192.168.10.110>
> [192.168.10.110 <http://192.168.10.110>]:5060
> tcp: 127.0.0.1 <http://127.0.0.1> [127.0.0.1
> <http://127.0.0.1>]:5060
> tcp: 192.168.10.110 <http://192.168.10.110>
> [192.168.10.110 <http://192.168.10.110>]:5060
> Aliases:
> tcp: localhost:5060
> udp: localhost:5060
>
> .
> [eliass@park ~]$
>
> OK, but when I check Openser status via /etc/ini.d/openser, I've:
> Status of openser: openser is not running.
> So, I don't undrstand why.
> Can you help me?
> Thanks
>
> _______________________________________________
> Users mailing list
> Users(a)lists.openser.org <mailto:Users@lists.openser.org>
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>
Do you concider sippy B2BUA?
----- Message d'origine ----
De : Arthur <pylinuxian(a)gmail.com>
À : serusers(a)lists.iptel.org
Envoyé le : Jeudi, 26 Juin 2008, 1h17mn 37s
Objet : [Serusers] Using OpenSER as Predictive Dialer for a Call Center ?
I am working on a project for a call center about programming an open source predictive dialer, and so far my research shows no sign of a competitor to Asterisk.
I hope someone can guide me here, because I don't know yet whether OpenSER can be programmed to make calls automatically and if callees answers the calls hand the calls to agents ? .. allow agents to make transfers to other agents ... and other call center stuff.
Thanks
--
"He who asks a question may be a fool for a few minutes. He who does not ask may be a fool forever"
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
Hi *
how do you pass AVP values to script functions in openser.
if I do -
myFunction("somestring",$avp(s:someotherstring)); - openser fails to load,
and
myFunction("somestring","$avp(s:someotherstring)"); - passes the actual AVP
string to the script and not the evaluation of the AVP string
Kind regards
Jason