Hello,
I have read here about load balancing between multiple gateways by using
carrierroute module, but there is one particular question for which I
found no answer.
Let's say I have two asterisk servers (X und Y), that are my gateways to
PSTN. Let we do it simple. Let's say that each gateway supports only one
outgoing call at the time and there is no incoming calls from PSTN. Now:
Bob calls one number and Kamailio uses X gateway.
Alice calls other number and Kamailio uses Y gateway.
Alice terminates the call.
Alice place a new call, but Bob's call is still in progress.
If we were used round robin algorithm, Kamailio would then use X
gateway, but X gateway is currently occupied. What shell happen now?
And what if Alice didn't tear down call ordinary? What if it her SIP
client simply crashed? (Then kamailio would think that there is now free
gateway)
So the main question is: can kamailio know/detect, how much calls are
going over one particular gateway and what can be done when limit for
this gateway is reached?
Thank you in advance.
Kind Regards,
Sasa Vilic
Hello,
during the last IRC devel meeting, we discussed about next major release
- v3.3.0, proposing to do it before the summer holidays. That means we
are going to have about one more month of development, then go to
testing phase and release end of May/beginning of June.
If anyone is considering different plans/proposals, let us know.
The draft of new features in current devel branch are collected at:
* http://www.kamailio.org/wiki/features/new-in-devel
Please add any missing items there.
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
http://www.asipto.com/index.php/kamailio-advanced-training/
Hi,
it worked. i had some kind of error in my config.
a question - can XMLRPC and XHTTP work together on the same config? is
there no collision there?
BR,
Uri
>Hello,
>
>can you get the http request with ngrep and send it here? It will be
>helpful to see it all, not only what kamailio could parse.
>
>Also, if the http request is not sending content length header, set the
>global parameter:
>
>http://www.kamailio.org/wiki/cookbooks/devel/core#tcp_accept_no_cl
>
>Cheers,
>Daniel
>
>On Tue, Mar 6, 2012 at 9:56 AM, Uri Shacked <ushacked at gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>
wrote:
>
>* hi,
*>*
*>* i need to start some kind of proccess in my kamailio server (manualy,
not
*>* by timer).
*>* the best way i can think of is to send a HTTP request.
*>*
*>* i can do it with the XMLRPC module, but i get an error because i dont
*>* realy send XML.
*>* i try the XHTTP module. but the event_rout[xhttp_request] does not run.
*>*
*>* i get :
*>* 19(2796) ERROR: <core> [tcp_read.c:965]: ERROR: tcp_read_req: bad
request,
*>* state=7, error=4 buf:
*>* POST / HTTP/1.0
*>* User-Agent: Fiddler
*>* Host: 10.2.0.55:5060
*>*
*>* parsed:
*>* POST / HTTP/1.0
*>* User-Agent: Fiddler
*>* Host: 10.2.0.55:5060
*>* any ideas?
*
Hello, how to tell that Kamailio should juse a session_id for tls ?
See ssldump output below. I reckon that this is the reason the
client i use end with "handshake_failure". Because when is use
opensips, there is the session_id, and it's working.
Kristijan
2 1 0.0228 (0.0228) C>S Handshake
ClientHello
Version 3.1
cipher suites
TLS_RSA_WITH_RC4_128_MD5
TLS_RSA_WITH_RC4_128_SHA
TLS_RSA_WITH_NULL_MD5
TLS_RSA_WITH_NULL_SHA
TLS_DH_anon_WITH_3DES_EDE_CBC_SHA
TLS_DH_anon_WITH_RC4_128_MD5
TLS_RSA_WITH_DES_CBC_SHA
TLS_RSA_EXPORT1024_WITH_RC4_56_SHA
TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA
TLS_DH_anon_WITH_DES_CBC_SHA
compression methods
NULL
1 0.0519 (0.0519) C>S TCP FIN
2 2 0.0432 (0.0204) S>C Handshake
ServerHello
Version 3.1
session_id[0]=
cipherSuite TLS_RSA_WITH_RC4_128_MD5
compressionMethod NULL
2 3 0.0432 (0.0000) S>C Handshake
Certificate
2 4 0.0432 (0.0000) S>C Handshake
ServerHelloDone
2 5 0.0452 (0.0020) C>S Alert
level fatal
value handshake_failure
1 0.0744 (0.0225) S>C TCP FIN
2 0.0681 (0.0228) S>C TCP FIN
Guys,
After my previous discovered issue (Kamailio not happy to talk with
Openfire for subscriptions), trying to find work arounds, thought
about using pua_mi to enforce subscriptions coming from XMPP side.
The following events happen:
* I subscribe over mi interface successfully.
* Presence sends NOTIFY out.
* PUA_XMPP rejects the NOTIFY saying that it does not match an
existing dialog.
I was wondering where does PUA_XMPP check the existing dialogs and if
there is other way to fix my issues?
Bellow you can find commands, ngrep as well as kamailio error to syslog.
Ta for any kind of tip,
DanB
"""
###
Console
###
kamctl fifo pua_subscribe sip:dan@hiddendom.com
sip:user01@hiddendom.com presence 3600
###
Trace
###
U 2012/03/02 18:17:07.318753 127.0.0.1:5060 -> 127.0.0.1:5060
SUBSCRIBE sip:dan@hiddendom.com SIP/2.0.
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5ddb.d2ee4046.0.
To: sip:dan@hiddendom.com.
From: sip:user01@hiddendom.com;tag=7bcd2f0283a17a6a3eb34b70a7dbcaec-55da.
CSeq: 10 SUBSCRIBE.
Call-ID: 77d7b19267fdcae8.
Content-Length: 0.
User-Agent: kamailio (3.2.0 (x86_64/linux)).
Max-Forwards: 70.
Event: presence.
Contact: <sip:user01@hiddendom.com>.
Expires: 3610.
.
#
T 2012/03/02 18:17:07.319501 127.0.0.1:35067 -> 127.0.0.1:3306 [AP]
.....select status,reason from watchers where
presentity_uri='sip:dan@hiddendom.com' AND watcher_username='user01'
AND watcher_domain='hiddendom.com' AND event='presence'
#
T 2012/03/02 18:17:07.319795 127.0.0.1:3306 -> 127.0.0.1:35067 [AP]
.....7....def.prxdb.watchers.watchers.status.status.?...........7....def.prxdb.watchers.watchers.reason.reason...@...........................
##
T 2012/03/02 18:17:07.319885 127.0.0.1:35067 -> 127.0.0.1:3306 [AP]
.....insert into watchers
(presentity_uri,watcher_username,watcher_domain,event,status,inserted_time
) values ('sip:dan@hiddendom.com','user01','hiddendom.com','presence',1,1330712227)
#
T 2012/03/02 18:17:07.320079 127.0.0.1:3306 -> 127.0.0.1:35067 [AP]
...........
#
U 2012/03/02 18:17:07.320250 127.0.0.1:5060 -> 127.0.0.1:5060
SIP/2.0 202 OK.
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5ddb.d2ee4046.0;rport=5060.
To: sip:dan@hiddendom.com;tag=c87c23e595340de8a004872f7dfab287-19b1.
From: sip:user01@hiddendom.com;tag=7bcd2f0283a17a6a3eb34b70a7dbcaec-55da.
CSeq: 10 SUBSCRIBE.
Call-ID: 77d7b19267fdcae8.
Expires: 3600.
Contact: <sip:127.0.0.1>.
Server: kamailio (3.2.0 (x86_64/linux)).
Content-Length: 0.
.
#
T 2012/03/02 18:17:07.320317 127.0.0.1:35067 -> 127.0.0.1:3306 [AP]
.....select body,expires,etag,sender from presentity where
domain='hiddendom.com' AND username='dan' AND event='presence' order
by received_time
#
T 2012/03/02 18:17:07.320541 127.0.0.1:3306 -> 127.0.0.1:35067 [AP]
.....7....def.prxdb
presentity
presentity.body.body.?...........=....def.prxdb
presentity
presentity.expires.expires.?...........7....def.prxdb
presentity
presentity.etag.etag...@.....P...;....def.prxdb
presentity
presentity.sender.sender...........................Y.<?xml version="1.0"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:c="urn:ietf:params:xml:ns:pidf:cipid"
entity="dan(a)hiddendom.com">
<tuple id="0x7f7e550f0d70">
<status>
<basic>open</basic>
</status>
</tuple>
</presence>
1330712820.a.1330712207.16317.1.1..........
#
U 2012/03/02 18:17:07.320996 127.0.0.1:5060 -> 127.0.0.1:5060
NOTIFY sip:user01@hiddendom.com SIP/2.0.
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bKae68.a038faa7.0.
To: sip:user01@hiddendom.com;tag=7bcd2f0283a17a6a3eb34b70a7dbcaec-55da.
From: sip:dan@hiddendom.com;tag=c87c23e595340de8a004872f7dfab287-19b1.
CSeq: 2 NOTIFY.
Call-ID: 77d7b19267fdcae8.
Content-Length: 345.
User-Agent: kamailio (3.2.0 (x86_64/linux)).
Max-Forwards: 70.
Event: presence.
Contact: <sip:127.0.0.1>.
Subscription-State: active;expires=3670.
Content-Type: application/pidf+xml.
.
<?xml version="1.0"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:c="urn:ietf:params:xml:ns:pidf:cipid"
entity="dan(a)hiddendom.com">
<tuple id="0x7f7e550f0d70">
<status>
<basic>open</basic>
</status>
</tuple>
</presence>
#############
kamailio.log:
#############
Mar 2 18:17:07 prx3 /usr/sbin/kamailio[16319]: INFO: presence
[notify.c:1593]: NOTIFY sip:user01@hiddendom.com via
sip:user01@hiddendom.com on behalf of sip:dan@hiddendom.com for event
presence
Mar 2 18:17:07 prx3 /usr/sbin/kamailio[16317]: ERROR: pua_xmpp
[simple2xmpp.c:198]: Notify in a non existing dialog
"""
Hi,
I am trying to setup Kamailio in an Active-Active configuration behind a
TCP load balancer.
On the database side, looking at MySQL cluster as independent node set vs.
Kamailio/MySQL
server with Galera synchronous replication.
The first configuration requires 3 or 5 servers. 2 for Kamailio and 3 for
MySQL. The second probably
just requires 2 servers.
I am leaning towards Kamailio/MySQL/Galera. Could you share
setup/performance issue...
Thanks
Krish Kura
Hi,
insert_hf doesn't work for CANCEL messages. It doesn't work either on 487
replies in failure_route..
Why? Is it because they are re-generated on every hop?
Is there a workaround?
Reda
Hi Support,
We have a comrex access unit that we have previously successfully used
for connections using your SIP service. For some reason now though, we
can no longer get the unit to work. We know the username (LCR.ACCESS1)
is ok as we can access the account through the website. However,
entering the same details in to the comrex fails. The comrex status
displays "OFFLINE (Registering)" and does not get any further. Is it
possible for you to check that the account is ok and that the unit has
successfully been authenticated.
regards
Andy
__________________________
Andy Bosley
Supervisor, London Control Room
Technology Operations
Technology Division, BBC
Room 3045, Broadcasting House
Tel External: +44 02077 654976
Tel Internal: 54976
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
hi,
i need to start some kind of proccess in my kamailio server (manualy, not
by timer).
the best way i can think of is to send a HTTP request.
i can do it with the XMLRPC module, but i get an error because i dont realy
send XML.
i try the XHTTP module. but the event_rout[xhttp_request] does not run.
i get :
19(2796) ERROR: <core> [tcp_read.c:965]: ERROR: tcp_read_req: bad request,
state=7, error=4 buf:
POST / HTTP/1.0
User-Agent: Fiddler
Host: 10.2.0.55:5060
parsed:
POST / HTTP/1.0
User-Agent: Fiddler
Host: 10.2.0.55:5060
any ideas?