Hello!
Is it possible to find out the name of the onreply_route that was set
before?
Something like this:
t_on_reply("MANAGE_REPLY");
...
if ( t_is_set("onreply_route") ) {
get_onreply_route_name();
...
}
--
BR,
Denys Pozniak
I have kamailio behind a TLS termination proxy so the sockets are correctly
deduced to be TCP. However the clients only talk TLS to the proxy and are
confused when the top Via header added by Kamailio is TCP. Is there a way
for Kamailio to forcibly pretend its protocol is TLS? Like
advertised_address but "advertised_protocol" instead.
(With pjsip testing: it has a flag use_tls which ignores TCP from Kamailio
and continues to use the persistent TLS transport to proxy. Linphone fails
because it tries to honor TCP in Via and is unable to establish TCP
transport).
BTW I am using t_relay_to_tcp so Kamailio will return traffic to the proxy
as TCP even though the contact addresses specify transport=TLS.
Hi everybody,
I'm just testing Kamailio 5.4.1 with dialog replication over DMQ. This
seems to work very good. Dialogs are replicated without problems.
When I'm restarting one node I would have expected, that all dialogs are
synced again, just like in dmq_usrloc.
But this does not happen. After a restart the nodes dialog-list is empty.
Did I miss somethin? Is there a special parameter that I have to set?
BR, Björn
--
Björn Klasen, Specialist
TNG Stadtnetz GmbH, Network Management (VoIP)
Projensdorfer Straße 324
24106 Kiel
Germany
T +49 431/ 530530
F +49 431/ 7097-555
mailto: bklasen(a)tng.de
http://www.tng.de
Register: Amtsgericht Kiel HRB 6002 KI
Executive board (Geschäftsführung): Dr.-Ing. Volkmar Hausberg,
Sven Schade, Carsten Tolkmit, Dr. Sven Willert
Tax-Id (Steuernr.): 2029047020, VAT-Id (USt-Id): DE225201428
Hi,
I am building a configuration script where for some traffic flows
parallel forking will be needed, and in this case I need to go beyond
the default max limit of the max amount of branches.
Apart from this specific case the traffic load that kamailio will need
to handle is very low, let's say just one second here and there with up
to 5 concurrent calls at most.
This limit is as far as I understand set here:
usr/local/src/kamailio-5.6/kamailio/src/core/config.h
And the default limit is:
#define MAX_BRANCHES_LIMIT 32 /*!< limit of maximum
number of branches per transaction */
Here are the questions I have related to this:
1) If I increase the value of this constant in config.h, how high is it
reasonable to set this value and still have a stable system?
2) If I increase MAX_BRANCHES_LIMIT beyond 32, are there also other
parameters that needs to be changed for the system to be able to cope,
and if so whichparameters?
Regards,
Lars
Hello,
https://lists.kamailio.org/pipermail/sr-users/2020-October/110792.html
I read this thread very carefully and I think I managed to implement all
the steps described by Daniel. Thank you so much for the detailed
description.
But it looks like I'm stuck on the last step. I can't delete records from
htable when an incoming call cannot reach the registered device (e.g., no
more internet access, power off at the device). I try to do this from
failure route but looks like i kamailio has not access to htable from it.
failure_route[INTERNAL_TO_EXTERNAL_FAILURE] {
if (t_check_status("408")) {
xlog("L_WARN", "$ci|log| hello \n");
xlog("L_WARN", "$ci|log| mid reg token -
$sht(mid_reg_token=>$fU::$si::$sp) \n");
}
}
I do not see xlog message with mid reg token but i see 'hello'.
Yes, htable record exists in case i check using:
kamcmd htable.dump mid_reg_token
Also I need a way to remove registration at the registrar (Freeswitch in my
case). This means I need to send api request from kamailio or just run some
script that will do this. What is the best way ? module exec ?
Please advice,
Thanks
Hi All,
I am facing an issue in understanding how the min_se should be working in
kamailio. As per the SST documentation, it seems like if the min_se is
configured as 500, then any value of Session-Expires OR MIN-SE if lower
than 500, can be responded to by a 422.
However, I strangely see the reverse happening. To investigate further, I
looked in to the ki_sst_check_min() code in the master, and these seems
like a potential issue.
Ref Code: Inside ki_sst_check_min(), there is an if condition like below:
if (sst_min_se < MIN(minse, se.interval)) {
However, shouldn't it be the other way around? ie
if (sst_min_se > MIN(minse, se.interval)) {
because we need to send 422 if the received value(in INVITE etc) is
smaller than the sst configure min_se value?
I also found a different documentation, at
https://git.sgu.ru/oldssu/ex-opensips/blob/cb9df8d59dbb254a9d862569fd5d11f6…
where
the check is as below?
if (sst_min_se > MIN(minse, se.interval)) {
Can someone confirm if this is broken, or my understanding is incorrect?
Regards,
Harneet
--
"Once you eliminate the impossible, whatever remains, no matter how
improbable, must be the truth" - Sir Arthur Conan Doyle
Hi
The http_client module support the somehow old fashioned way to submit
credentials as part of the URL.
Our 'held' server developer would love to use either JWT or a Bearer
Token in the Auth-Header or a 'cookie-jar' to authenticate the
requests.
Is this somehow possible?
--
Mit freundlichen Grüssen
-Benoît Panizzon- @ HomeOffice und normal erreichbar
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web http://www.imp.ch
______________________________________________________
Hi,
*sip_provider_proxy1[* uac module-register] ---> *kamailio* [dispatcher
Module] ----> *Asterisk1*
----> *Asterisk 2*
in my configuration kamailio register to the sip provider using *uac module*,
sip information are stored in database (uacreg).
when a incoming call(INVITE) come to kamailio it will dispatch call to
Asterisk using* "dispatcher module".*
Here i have couple of questions
1. If my SIP provider has a secondary proxy as a failover server
(sip_provider_proxy2), can I configure Kamailio with the uac module to use
the secondary proxy if the primary proxy fails?
2. Since my application is inbound-only, registration failure is only
identified when the registration expires (3600 seconds = 1 hour). Can I use
the dispatcher module to select the SIP proxy and switch the registration
to the secondary proxy if the primary proxy is not reachable (using
OPTIONS)?
Hello kamailio community,
i know its an unusual query but i would like to know if there is a cleaner/proper.right way to disable some (or all) media streams in SDP.
i have come with a solution by sdpops module with subst_body function like this.
route[SDP_DISABLE_UNAUTHORIZED_MEDIA]{
# disable text,media and video media streams
subst_body('#^m=(video|text|audio)[ ]+[0-9/]+(.*)$#m=\1 0 \2#ig');
# update originator ip address
subst_body('#^o=([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)$#o=\1 \2 \3 \4 \5 7.7.7.7#ig');
# 1 2 2 4 5 6
# name sid snumber network net-type addr
# update connection ip address
subst_body('#^c=([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)$#c=\1 \2 7.7.7.7#ig');
# 1 2 3
# network net-type addr
#remove all media attributes
sdp_remove_line_by_prefix("a=fmtp");
sdp_remove_line_by_prefix("a=X-");
sdp_remove_line_by_prefix("a=rtcp");
sdp_remove_line_by_prefix("a=ssrc");
sdp_remove_line_by_prefix("a=sendrecv");
sdp_remove_line_by_prefix("a=sendonly");
sdp_remove_line_by_prefix("a=recvonly");
sdp_remove_line_by_prefix("a=inactive");
sdp_remove_line_by_prefix("b=");
}
is it the right way to do it. if not can someone provide me an alternative solution.
Thanks :)