Hello,
another addition to the dialog module is the new pseudo-variable class
$dlg(...)
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:devel#dlg_attr
With it you can get access to all attributes of current processed
dialog, e.g., caller and callee URI, start time, flags...
A typical use case is to write full cdr when the BYE comes over - the
dialog stores the start time and you can get the end time via $Ts. You
can either write the acc record at dialog ending or update the start acc
event written when INVITE was processed - you have access to the
call-id, from tag and to tag in the right order and one shot of
sql_query() will do it.
Cheers,
Daniel
Hi,
Is there a limitation on the number of rows in location table? In my rig,
whatever number of users I use (>2million users), I notice the number of
users in location table is 343707, which is far less than the number of
users in my test. I thought previously that location table saves all the
users in my test.
Also when I use large number of users (>2million), openser pops up an error:
ERROR: registrar:update_contacts: invalid cseq for aor <xxxx>. Has anyone
saw this before? I am using openser1.3.2.
Thanks,
-Joy
Hello all,
Does anyone knows about this "permission.so" module error when try to
load "trusted" table (mysql)?
If "trusted" table is empty, there is no error, but whan at least there
is 1 record, the error appears.
for example:
mysql> select * from trusted;
+---------------+-------+--------------+
| src_ip | proto | from_pattern |
+---------------+-------+--------------+
| 10.124.35.253 | any | ^sip:.*$ |
+---------------+-------+--------------+
and when I try lo restart ser:
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 966737
daemon.info] permissions - initializing
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 414293
daemon.warning] Default allow file
(/usr/local/etc/ser/permissions.allow) not found => empty rule set
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 844440
daemon.warning] Default deny file (/usr/local/etc/ser/permissions.deny)
not found => empty rule set
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 895822
daemon.error] ERROR: permissions: trusted_reload(): Database problem
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 650101
daemon.crit] init_trusted(): Reload of trusted table failed
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 345573
daemon.error] Error while initializing allow_trusted function
Jan 15 15:34:45 delcolimba /usr/local/sbin/ser[703]: [ID 660978
daemon.error] init_mod(): Error while initializing module permissions
or when executing serctl fifo cmd:
root@delcolimba /usr/local # sbin/serctl fifo trusted_dump
200 OK
root@delcolimba /usr/local # sbin/serctl fifo trusted_reload
400 Trusted table reload failed
root@delcolimba /usr/local # tail /var/adm/messages
Jan 15 15:45:37 delcolimba /usr/local/sbin/ser[717]: [ID 895822
daemon.error] ERROR: permissions: trusted_reload(): Database problem
Jan 15 15:45:37 delcolimba /usr/local/sbin/ser[717]: [ID 450600
daemon.error] ERROR: fifo_server: command (trusted_reload) processing failed
Thank you,
Caio
Hi all,
Running ser0.9.7 on Solaris 10 (mysql 5.0.51 + serweb 0.9.6)
Have this problem when I stop ser service, and then start it again (ser
-E -D)..
0(0) preload_udomain: ERROR: bad callid record in table aliases
0(0) preload_udomain: ERROR: for username 579981, contact
sip:579981@mydomain.com
0(0) preload_udomain: ERROR: skipping...
And finally it dies with:
0(0) get_connection(): Connection not found in the pool
Fallo de segmentación (core dumped)
It happens with many records on aliases table and happens too with only
one record:
mysql> select * from aliases\G
*************************** 1. row ***************************
username: 579981
domain: 10.10.1.1
contact: sip:579981@mydomain.com
received: NULL
expires: 2009-02-05 11:45:21
q: 1.00
callid:
The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything
cseq: 42
last_modified: 2009-02-05 11:45:46
replicate: 0
state: 0
flags: 128
user_agent: SIP Express Router FIFO
1 row in set (0.00 sec)
SER start normally if I delete all the records on this table. But I need
create the aliases again, and this is not the normal behaviour..I think.
Here the description of aliases table:
mysql> desc aliases;
+---------------+---------------------+------+-----+---------------------+-------+
| Field | Type | Null | Key | Default
| Extra |
+---------------+---------------------+------+-----+---------------------+-------+
| username | varchar(64) | NO | PRI |
| |
| domain | varchar(128) | NO | PRI |
| |
| contact | varchar(255) | NO | PRI |
| |
| received | varchar(255) | YES | | NULL
| |
| expires | datetime | NO | | 2020-05-28 21:32:15
| |
| q | float(10,2) | NO | | 1.00
| |
| callid | varchar(255) | NO | | Default-Call-ID
| |
| cseq | int(11) | NO | | 42
| |
| last_modified | timestamp | NO | | CURRENT_TIMESTAMP
| |
| replicate | int(10) unsigned | NO | | 0
| |
| state | tinyint(1) unsigned | NO | | 0
| |
| flags | int(11) | NO | | 0
| |
| user_agent | varchar(50) | NO | |
| |
+---------------+---------------------+------+-----+---------------------+-------+
13 rows in set (0.01 sec)
Important: when "location" table keeps some records, ser doesn't start too:
mysql> select * from location\G
*************************** 1. row ***************************
username: 579981
domain: mydomain.com
contact: sip:579981@10.10.60.115:5060
received: NULL
expires: 2009-02-05 11:46:16
q: -1.00
callid: 1f46c06d5e034425286f095b11cf4a1a(a)10.10.60.115
cseq: 6
last_modified: 2009-02-05 11:45:46
replicate: 0
state: 0
flags: 0
user_agent: CM5K-TA2S (807100.02)
1 row in set (0.00 sec)
Here too I must to delete all the records to let SER start successfully.
Does anyone knows about this issue?
Regards,
Claudio
I am following the 'mini-Howto on how to configure SER and SEMS to work
together' guide on iptel.org. So I have a separate directory for
integrating the SER and SEMS functionality. For development purposes is
there a switch to change the path were SER looks for the modules? As well
control which version of SEMS is being used? I've installed Sip Express
Media Server (1.1.0-rc1 (i386/linux)) as well as the version from the howto
for testing.
My basic problem is I currently get a version mismatch error:
0(9590) ERROR: module version mismatch for /usr/local/lib/ser/modules/sl.so;
core: ser 0.9.6-sems (i386/linux); module: ser 0.9.6 (i386/linux)
The appropriate modules are located in under my ser-sems test dir and I have
not been successful in redirecting SER to look there.
Also, I have modified ser.cfg and sems.cfg for my system but I did not find
a default ser_sems.cfg. Is this file necessary and where is the default
location?
Thanks for any help or advice.
mll
Hello,
during the week before freezing the code for release kamailio (openser)
1.5.0, I have added several enhancements to the dialog module. I am
going to present them in several emails, as I get the documentation
properly updated.
There is now a new function called dlg_bridge(From, To, outbound_proxy).
It can be used to connect From and To users. The mechanism is a simple
call transfer scenario.
kamailio => INVITE (hold) =>From
kamailio <= 200ok <= From
kamailio => REFER (To) =>From
kamailio <= 200ok <= From
...
From => INVITE ... =>To
...
kamailio => BYE =>From
kamailio <= 200ok <= From
The function can be called from configuration file or via MI interface.
It opens the door for several cute features you can do with the sip
server. Here are couple of usage examples:
- easy integration with web/external applications for Click-To-Dial.
Doing it with kamctl will look loke:
kamctl fifo dlg_bridge sip:from@kamailio.org sip:to@kamailio.org
- wake up/reminder/scheduled call - use rtimer module to run scheduled
calls - you can connect your user to a media server playing a message,
to a conference room or where the user sets its preference
- call again - when a user is calling a busy destination, when that
destination becomes available, the server can initiate the call to
connect the caller with the destination
Documentation is available at:
http://kamailio.org/docs/modules/1.5.x/dialog.html
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
Hi all,
Is it possible to use Openser as the SIP conference server? I understand
that Openser cannot do the media mixing required of a centralized media
server but if it can do the centralized signaling by acting as a focus and
let a media proxy do the media mixing, that would be good. I need ad hoc
conferencing capability. Is there any media proxy that can achieve this
together with openser?
My scenario is as follows:-
Say A and B are in a SIP call, and A and B suddenly decide to have a
conference with C. A puts B on hold and dials C' s number. After call
between A and C is up, if A presses hook flash, this sends an invite to the
conference application namely: conf@openseratlocalhost:5060 (which is the ip
and port number at which my openser proxy would be listening). The server
should then send back 200 Ok with the contact header containing the isfocus"
parameter of the form -Contact: <sip:conference1@mediaproxyip;isfocus> The
isfocus is an RFC 4579 based feature. The 200 Ok responses to other invites
(normal calls that do not create conference) should not include this isfocus
in the contact header of 200 Ok.
Finally, the openser proxy should be able to contact the media proxy on
receiving an invite to create the conference and send that ip and focus
information in the 200 Ok. The UA -A would then send a REFER to B and C to
refer to the media server and they disconnect with A. Then all three UAs
would individually send invite to the uri returned in the contact header and
join the conference.
Thanks,
Padmaja
Hi
I am using solaris 9v. I tried to use SEMS as media server with SER. SEMS is
not compatible with Solaris 9v. Gives compilation errors.
My query is whether any other opensource Media Server is available that uses
SER and compatible with solaris 9v.This would help me a lot.
Thanks in advance.
--
Regards
Rahul
Hello everyone,
Let me introduce to you a new module, available in trunk since yesterday, so
it will be included in 1.5.0 release :
>From http://kamailio.org/docs/modules/devel/purple.html:
*Purple module is a multi-protocol instant-messaging gateway module which
use libpurple, the library on bottom of Pidgin (ex-gaim).*
*This plugin was wrote in order to proof the concept of gateway between SIP
and MSN/Live networks.*
*[...]*
*It's no really adapted to a production environment with a huge user count
but can be used in order to demonstrate the concept or to use it in SOHO
environment.*
I hope you'll enjoy purple module, and I'll welcome all feedbacks.
Eric.