Hi,
We’re still using kamailio 4.4 but we’ll be migrating to 5.0 soon.
Cool so it will be fixed when we migrate !
Thanks,
Andreas
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Federico Cabiddu
Sent: vendredi 12 mai 2017 11:56
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] t_drop_replies not working with t_suspend in failure route
Hi,
which version are you using?
A similar case had been reported some months ago and it should be fixed in 5.0.
Regards,
Federico
On Fri, May 12, 2017 at 11:44 AM, Huber Andreas <andreas.huber(a)nagra.com<mailto:andreas.huber@nagra.com>> wrote:
Hello,
We have a use case where we suspend a transaction in a failure_route to give UEs that might be woken by a push notification more time to REGISTER and join the INVITE.
We’d like to drop the previous branches in this case. I tried using t_drop_replies() but it has no effect.
The doc states that t_drop_replies() is only working if a new branch is added. And from my understanding t_suspend() adds a new branch.
But is it possible that t_drop_replies() cannot be used with t_suspend()? Or am I missing something?
Kind Regards,
Andreas
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Dear Team,
I would like to know how to link Kamailio with openIMSCore?I would like to use Kamailio as an Application server.Please guide me or if there is someone who has worked on this subject, I would like to benefit from his help.
Hello there,
According to ,
https://lists.kamailio.org/pipermail/sr-users/2016-March/092058.html, which
talked about B2BUA (just signalling) in Kamailio.
As i have experienced working with SEMS, freeswitch and Kamailio while
using B2BUA feature, Each of them have pros and cons:
1- The sems is a light sip engine server with several applications (like as
sbc) for using b2bua. All incoming and outgoing calls could go to sems
server for doing b2bua like this:
Incoming<=======>Kamailio<========>Sems<========>Kamailio<=======>outgoing
2- In sems, you could disable rtp realying. It forces sems to work just as
b2bua without anchoring RTP
3- Easy to use different active profiles in routing.
Just a couple of things there are in SEMS. For example, the sems adds
itself (local IP) in Via header, and it couldn't be common in b2bua. like
this:
.
.
.
INVITE sip:200@cloud.domain.com;transport=UDP SIP/2.0
Via: SIP/2.0/UDP
10.10.10.200;branch=z9hG4bK2f53.07a3fd9edaa8c8d609ab2ac6b01a087f.0
*================================>Kamailio
public IP*
*Via: SIP/2.0/UDP
127.0.0.1:5080;received=127.0.0.1;branch=z9hG4bKsPRMNast;rport=5080
===============================>private loopback sems ip*
From: <sip:100@cloud.domain.com
;transport=UDP>;tag=6FFDB493-60EABB3600016ECD-379F9700
To: <sip:200@cloud.domain.com;transport=UDP>
CSeq: 10 INVITE
Call-ID: Y2M1ODQxNTZmMjdkZWZjN2U5MmMyYjBmN2Y2OGY1ODQ._leg2
Route: <sip:mo@127.0.0.1:5060;lr>
Max-Forwards: 69
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO,
SUBSCRIBE
User-Agent: Z 3.3.25608 r25552
Content-Type: application/sdp
Contact: <sip:127.0.0.1:5080;transport=udp>
Content-Length: 246
.
.
.
For this reason, Is there a way to avoid this issue? I know it is possible
to do this by using other modules like textops and retransformation ?
And why in Kamailio, there is no b2bua module to perform all b2bua
functionality, yet?
Thanks with Best Regards.
--
--Mojtaba Esfandiari.S
Hello all,
I have a trouble that is related to the way of usage of dispatcher module.
I am working with Kamailio 5.3.2 and using dispatcher module as load
balancer to route calls to the media gateways.
My dispatching routes are below as simply,
route[DISPATCH] {
if(ds_select_domain("2", "4")) {
route(MYRELAY);
} else {
send_reply("503","Service Unavailable - No MGW");
exit;
}
}
route[MYRELAY] {
t_on_failure("MYFAILURE");
if(!t_relay()) {
sl_reply_error();
}
exit;
}
failure_route[MYFAILURE] {
route(NATMANAGE);
revert_uri();
if (t_is_canceled()) {
exit;
}
if ($T_reply_code == 408 || $T_reply_code == 503) {
if(ds_next_domain()) {
route(MYRELAY);
} else {
send_reply("503","Service Unavailable");
exit;
}
} else {
if(ds_select_domain("6", "4")) {
route(MYVMRELAY);
} else {
send_reply(486,"Busy");
exit;
}
}
}
route[MYVMRELAY] {
t_on_failure("MYVMFAILURE");
if(!t_relay()) {
sl_reply_error();
}
exit;
}
failure_route[MYVMFAILURE] {
route(NATMANAGE);
revert_uri();
if (t_is_canceled()) {
exit;
}
if(ds_next_domain()) {
route(MYVMRELAY);
} else {
send_reply("503","Service Unavailable");
exit;
}
}
I have multiple media gateways(setid=2) and voicemail servers(setid=6).
As can be seen from the configuration,
after first routing, for transaction reply code except 408 or 503, I am
routing call to the voicemail server using dispatcher.
In that phase, dispatcher module is remembering previously loaded
destinations that come from first ds_select_domain
and module try to route these destinations in the case that all
voicemail servers are unavailable.
So basically, I want to unload all destinations comes from previous
ds_select_domain.
From the documentation, i tried ds_load_update and ds_load_unset
methods but not worked for me.
Is there any way to overcome that problem or any right usages of these
methods.
Thank you,
Serdar
Hello List,
is there a way to access location data from kamailio script?
I mean data I can see with the command:
kamctl ul show
Regards
--
---
I'm SoCIaL, MayBe
Hi all,
I'm running into some issues with E164 conversions and was wondering if there was a decent standardized method for conversions. Conversions using $rU seem to be working great, but $fU is behaving badly. This is what I have so far:
xlog("$ci - caller id was $avp(src=>callerid)");
if($avp(src=>callerid) =~ "^\+"){
xlog("$ci - caller id already E164");
}else if($(rU{s.substr,0,$(avp(src=>countrycode){s.len})}) == $avp(src=>countrycode)){
$avp(src=>callerid) = "+" + $avp(src=>callerid);
$fU = $avp(src=>callerid);
$avp(uacreplacefromdisplay) = $fU;
$avp(uacreplacefromuri) = $fu;
xlog("$ci - Adding plus to make caller id e164");
}else{
$fU = "+" + $avp(src=>countrycode) + $fU;
$avp(uacreplacefromdisplay) = $fU;
$avp(uacreplacefromuri) = $fu;
xlog("$ci - converting domestic caller id number to $fU ($fu) - $avp(uacreplacefromdisplay) $avp(uacreplacefromuri)");
}
Previously, I'd found a suggestion mentioning using uac_replace_from in the route[RELAY] (which is the purpose of the uacreplacefrom avps), but $fU does not appear to be changing its value. Is there something I'm doing incorrectly?
Hello all,
I have a trouble that is related to the way of usage of dispatcher module.
I am working with Kamailio 5.3.2 and using dispatcher module as load
balancer to route calls to the media gateways.
My dispatching routes are below as simply,
route[DISPATCH] {
if(ds_select_domain("2", "4")) {
route(MYRELAY);
} else {
send_reply("503","Service Unavailable - No MGW");
exit;
}
}
route[MYRELAY] {
t_on_failure("MYFAILURE");
if(!t_relay()) {
sl_reply_error();
}
exit;
}
failure_route[MYFAILURE] {
route(NATMANAGE);
revert_uri();
if (t_is_canceled()) {
exit;
}
if ($T_reply_code == 408 || $T_reply_code == 503) {
if(ds_next_domain()) {
route(MYRELAY);
} else {
send_reply("503","Service Unavailable");
exit;
}
} else {
if(ds_select_domain("6", "4")) {
route(MYVMRELAY);
} else {
send_reply(486,"Busy");
exit;
}
}
}
route[MYVMRELAY] {
t_on_failure("MYVMFAILURE");
if(!t_relay()) {
sl_reply_error();
}
exit;
}
failure_route[MYVMFAILURE] {
route(NATMANAGE);
revert_uri();
if (t_is_canceled()) {
exit;
}
if(ds_next_domain()) {
route(MYVMRELAY);
} else {
send_reply("503","Service Unavailable");
exit;
}
}
I have multiple media gateways(setid=2) and voicemail servers(setid=6).
As can be seen from the configuration,
after first routing, for transaction reply code except 408 or 503, I am
routing call to the voicemail server using dispatcher.
In that phase, dispatcher module is remembering previously loaded
destinations that come from first ds_select_domain
and module try to route these destinations in the case that all
voicemail servers are unavailable.
So basically, I want to unload all destinations comes from previous
ds_select_domain.
From the documentation, i tried ds_load_update and ds_load_unset
methods but not worked for me.
Is there any way to overcome that problem or any right usages of these
methods.
Thank you,
Serdar
Hi there
I am a new user of Kamailio and we are trying to use it to be as a front
end for our asterisk pbx. We are running on Ubuntu 18.04 and Kamailio 5.3.8
with Siremis
Rather than proxying the request through to asterisk we are trying to use
uacreg to send a login to asterisk. Asterisk will think all the users are
appear from the proxy but thats okay. Initially this is just for external
users but eventually all phones etc will register via Kamailio and we will
have the trunks there (and split them across another kamailio but thats
another job)
If I add a user to the uacreg then when I register to Kamailio it sends a
register request but to the realm in the uacreg table and the matching port
Kamailio is running on.
Is this because somewhere we have set Kamailio to directly proxy on and we
need to turn that off first?
This is our uacreg table
mysql> select * from uacreg;
+----+--------+------------+------------+------------+-----------+-----------+---------------+---------------+----------+--------------------+---------+-------+-----------+--------+
| id | l_uuid | l_username | l_domain | r_username | r_domain | realm
| auth_username | auth_password | auth_ha1 | auth_proxy | expires
| flags | reg_delay | socket |
+----+--------+------------+------------+------------+-----------+-----------+---------------+---------------+----------+--------------------+---------+-------+-----------+--------+
| 1 | testuser | testuser | ourdomain.com | 88 | 10.8.8.20 |
10.8.8.20 | 88 | password | '' | sip:10.8.8.20:5060 |
360 | 0 | 3 | |
+----+--------+------------+------------+------------+-----------+-----------+---------------+---------------+----------+--------------------+---------+-------+-----------+--------+
1 row in set (0.00 sec)
All pointer, guides and recommendations will be welcome
Thanks very much
Cheers Duncan