In my current setup I've register messages replicated to a second server.
Is it possible to also replicate other messages so I can hold dialog
state on both servers?
I've tried to read the documentation and also google but can't find
any examples.
Thanks
./Kristofer
Hello,
I'm trying to dig in to the kamailio XMLRPC interfaces and the limitations
I read in
http://www.kamailio.org/docs/modules/stable/modules/xmlrpc.html#xmlrpc.impl…
is really a no go for us.
For example, when to retrieve user locations and list of dialogs we get a
xml document which is not so well formatted and we can not successfully
parse it in an xmlrpc-parser.
Is there other options for xmlrpc module?
thanks
./Kristofer
What I did to overcome this problem was writing a bash script, that
checks if mysql is running, if so, start Kamailio, if not, start mysql
first, then start Kamailio, and retries if things fail. And in
/etc/rc.local, call this script. Seems to work fine on Ubuntu 10.04. Not
tried 12.04 yet.
Yufei
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 13 Nov 2012 18:15:05 -0500
> From: Moacir Ferreira <moacirferreira(a)hotmail.com>
> Subject: Re: [SR-Users] Returning problem
> To: Kamailio Mail List <sr-users(a)lists.sip-router.org>
> Message-ID: <COL125-W3986EA29065F0966C8AE6C86C0(a)phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> I wish it were that simple... I have done some "reading" and found that Ubuntu has changed to upstart http://upstart.ubuntu.com/cookbook/. However, I could not find how I can start a non "upstart" style init script like Kamailio has before the upstart styled ones... I guess that I have to either to get the Kamailio community to create an upstart script or find some help from the Ubuntu community how to overcome the problem. Anyway, I think the Kamailio team should address it as it will become a problem for everyone using Kamailio on Ubuntu. Any help? Moacir From: 4lists(a)gmail.com
> To: sr-users(a)lists.sip-router.org
> Date: Mon, 12 Nov 2012 14:42:31 -0200
> Subject: Re: [SR-Users] Returning problem
>
> This is more a system initialization problem, so, take a look in your
> /etc/rc<run-level>.d directory (or the correspondent one), specially in
> the S* files and find out the start sequence. There You'll find the answer.
>
> Edson.
>
> Em 09/11/2012 17:03, Moacir Ferreira escreveu:
>> My kamailio start script has the following BEGIN INIT INFO:
>>
>> #
>> ### BEGIN INIT INFO
>> # Provides: kamailio
>> # Required-Start: $syslog $network $local_fs $time mysql
>> # Required-Stop: $syslog $network $local_fs mysql
>> # Default-Start: 2 3 4 5
>> # Default-Stop: 0 1 6
>> # Should-Start: postgresql mysql radius
>> # Should-Stop: postgresql mysql radius
>> # Short-Description: Start the Kamailio SIP proxy server
>> # Description: Start the Kamailio SIP proxy server
>> ### END INIT INFO
>>
>> However, when I boot my server Kamailio will start before mysql. So,
>> after boot I can start Kamalio but at boot time it will fail.
>>
>> Any hints how to fix it? I am running Ubuntu server 12.04 LTS - 64 bits.
>> All the code has been compiled at the server.
>>
>> Cheers!
>>
>> Moacir
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users(a)lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
>
Hi,
When i set a timer to "request time out" kamilio generates a 408 with now
to_tag.
I saved the to_tag from the 183 and try to update the acc table with the
to_tag (i need that for my CDR to work)
My question is (understanding there is no option to set the to_tag on the
408) is:
How to i get the right timing to update using sqlops? i must update after
the acc inserted the row to the acc table....
Any ideas?
Thanks,
Uri
Hello,
I have two Kamailio boxes running.
First one routes calls between my phones and asterisk. Here are the
extra lines compared to the default config that came with my
installation on the first server. Let's call this server kamailio :
loadmodule "pua.so"
loadmodule "pua_mi.so"
loadmodule "pua_dialoginfo.so"
modparam("pua_dialoginfo", "include_localremote", 0)
modparam("pua_dialoginfo", "include_tags", 0)
modparam("pua_dialoginfo", "include_callid", 0)
modparam("pua_dialoginfo", "caller_confirmed", 1)
modparam("pua", "outbound_proxy", "sip:kamailio_presence_ip:5060")
if ( is_method("SUBSCRIBE") )
{
t_relay("kamailio-presence-ip", "5060");
}
The second one handles presence stuff ( SUBSCRIBE and PUBLISH ), let's
call it presence :
After the standard sanity checks :
if(is_method("PUBLISH"))
{
handle_publish();
t_release();
} else if( is_method("SUBSCRIBE"))
{
handle_subscribe();
t_release();
};
exit;
The problem is that I have two phones connected to the same username on
the server.
Here is the sequence of events of a correctly functionning call :
1. Kamailio receives an INVITE
2. It sends the INVITE to each of the two phones
3. The first phone replies 180 Ringing
4. Kamailio sends a PUBLISH to presence
5. Presence replies with an OK, which includes a SIP-ETag header
6. Kamailio recieves the OK
7. Kamailio receives the 180 Ringing from the second phone
8. Kamailio sends a new PUBLISH with the SIP-If-Match using the value
from the SIP-ETag header
9. Presence receives it, updates the presence table and sends an OK.
This is ok, the trouble is when the second 180 Ringing reaches Kamailio
before the OK to the publish with the SIP-ETag.
1. Kamailio receives an INVITE
2. It sends the INVITE to each of the two phones
3. The first phone replies 180 Ringing
4. Kamailio sends a PUBLISH to presence
5. Kamailio receives the 180 Ringing from the second phone
6. Kamailio sends a PUBLISH to presence
7. Presence replies with an OK, which includes a SIP-ETag header
8. Presence replies with an OK, which includes a second SIP-ETag header
9. Kamailio recieves the OK
10. Kamailio recieves the OK
The presence table now has two seperate dialogs for the call because
Kamailio didn't send the SIP-If-Match header as it did not yet receive
the reply from presence.
When the two phones start ringing at the same time, the time between the
two packets arriving at the server is shorter than a round trip to the
presence server.
In the second scenario, Kamailio never updates the presence information
using the first SIP-ETag, so the light on my phone stays stuck at "ringing".
Where do I go from here ?
Thanks,
David
My kamailio start script has the following BEGIN INIT INFO: #
### BEGIN INIT INFO
# Provides: kamailio
# Required-Start: $syslog $network $local_fs $time mysql
# Required-Stop: $syslog $network $local_fs mysql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Should-Start: postgresql mysql radius
# Should-Stop: postgresql mysql radius
# Short-Description: Start the Kamailio SIP proxy server
# Description: Start the Kamailio SIP proxy server
### END INIT INFO
However, when I boot my server Kamailio will start before mysql. So, after boot I can start Kamalio but at boot time it will fail. Any hints how to fix it? I am running Ubuntu server 12.04 LTS - 64 bits. All the code has been compiled at the server. Cheers! Moacir
Curious to know if there is any plans to support LUA 5.2.
Seems like this is a newer release, I tried to build kamailio lua
modules using 5.2 but it was not supported.
Seems like some minor changes in the way LUA handles some things.
Any ideas?
Thanks.
i got the these error messages when my xcap server tried to serve 'GET
xcap-caps' request:
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: INFO: XCAP service GET <xcap-caps>
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [pvapi.c:1305]: no more space for spec value
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [pvapi.c:1314]: buffer overflow -- increase the buffer size...
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: <core> [sr_module.c:1665]: Could not convert the PV-formated string to str
Nov 12 02:01:31 sip /usr/sbin/pres-serv[30613]: ERROR: xhttp [xhttp_mod.c:461]: unable to get body
config code where this comes is this:
xlog("L_INFO", "XCAP service $rm <$xcapuri(u=>auid)>\n");
$var(xbody) =
"<?xml version='1.0' encoding='UTF-8'?>
<xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'>
<auids>
<auid>rls-services</auid>
<auid>pidf-manipulation</auid>
<auid>xcap-caps</auid>
<auid>resource-lists</auid>
<auid>pres-rules</auid>
<auid>org.openmobilealliance.pres-rules</auid>
<auid>org.openmobilealliance.user-profile</auid>
<auid>org.openmobilealliance.pres-content</auid>
<auid>org.openmobilealliance.search</auid>
<auid>org.openmobilealliance.xcap-directory</auid>
</auids>
<extensions>
</extensions>
<namespaces>
<namespace>urn:ietf:params:xml:ns:rls-services</namespace>
<namespace>urn:ietf:params:xml:ns:pidf</namespace>
<namespace>urn:ietf:params:xml:ns:xcap-caps</namespace>
<namespace>urn:ietf:params:xml:ns:resource-lists</namespace>
<namespace>urn:ietf:params:xml:ns:pres-rules</namespace>
<namespace>urn:oma:xml:xdm:user-profile</namespace>
<namespace>urn:oma:xml:prs:pres-content</namespace>
<namespace>urn:oma:xml:xdm:search</namespace>
<namespace>urn:oma:xml:xdm:xcap-directory</namespace>
</namespaces>
</xcap-caps>";
xhttp_reply("200", "OK", "application/xcap-caps+xml",
"$var(xbody)");
i have not checked yet, which buffer should be increased, but would it
be a good idea to make the default bigger?
-- juha
Hi,
rtpproxy_manage() combines both rtpproxy_offer() and
rtpproxy_answer(). Now if i want different flags set for
rtpproxy_offer() and rtpproxy_answer() then how should i use
rtpproxy_manage()?
To specific, what i want :
route[REQUEST]{
.....
rtpproxy_offer("z20");
...
}
onreply_route[]{
....
rtpproxy_answer("z120");
....
}
Now in kamailio.cfg there is one call rtpproxy_manage() in
route[NATMANAGE]. route[NATMANAGE] is called from both route[REQUEST]
and onreply_route[]. So i can't emulate the functionality described
above. My question is using only rtpproxy_manage() is it possible to
emulate the above functionality?
Thanks in advance.
--
-aft