[SR-Users] Re: Branch Route trigger for Withindialog calls?

2024-03-21 Thread Patrick Karton via sr-users
Headers manipulations are per transaction so yes you Will Always need to filter them in a  branch route Le 21 mars 2024 15:54, Benoit Panizzon via sr-users  a écrit :Hi List



I am just wondering...



When I am sending the initial INVITE to a customer CPE, this goes

throug the whole location lookup and through a branch route in which I

make some last adjustments to the headers, like removing header the

customer shall not get (like P-Asserted-Identity which would reveal the

caller identity on a callerid restricted call).



On a Re-Invite (session timer refresh) the call is being routed by

loose_route() and immediately sent to RELAY.



uac_replace and uac_restore seem to work fine for stuff like To and

From Header. But how do I prevent unwanted header to disclose

information to the customer which should ne be disclosed?



Do I need to re-arm the branch trigger also for within dialog calls?



Mit freundlichen Grüssen



-Benoît Panizzon-

-- 

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

__

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: loose_route false when using topos? At which point in the call flow, does topos restore the Route header?

2024-03-21 Thread Patrick Karton via sr-users
Yes topos restores the Route headers as soon as the request enters kamailio. So they are already available before you call loose_route.Le 27 févr. 2024 11:13, Benoit Panizzon via sr-users  a écrit :Hi

By setting: branch_expire to the same value as dialog_expire which is
12 hours, now my headers get correctly restored on UPDATE and BYE.

But in this UPDATE scenario:

CPE A => Registrar A (topos) => Core => Registrar B (topos) => CPE B

I now have the phenomena that the Contact Header is being removed from
the UPDATE by topos on Registrar B.

Any clue what could cause the issue?

I see that Registrar A is adding a P-SR-XUID hader. Maybe I could
filter that header out on the Core?

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
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
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] No 408 generated by tm module on fr_timer when redis crashes

2024-03-21 Thread Patrick Karton via sr-users
Hello im using redis for topos and i noticed that when kamailio sending INVITEs and no response received yet and and if redis crash the retransmissions stop but the fr_timer is never called so no 408 is generated by kamailio.So the transaction lives for a very long long time in memory.Do topos callbacks can affect the the tm retransmission handler this way ? Because i know it is called everytime for retransmissions.Did some already have that kindle of issue ?On the logs i noticed some times EAGAIN error on redis error and ndb_redis seems to use blocking sending socket.Im using kamailio 5.7.0__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Bug in htable in 5.8.0

2024-03-16 Thread Patrick Karton via sr-users
Same bug in 5.7. versionsLe 15 mars 2024 15:08, Brooks Bridges via sr-users  a écrit :

Thanks Daniel, I’ll give that a try.
 


 




Brooks BridgesSr. Developer




​Direct: (888) 444‑
Office: (561) 453‑4085
Email: bbrid...@skyetel.com

902 Clint Moore Road
​Suite 206
​Boca Raton, FL 33487
www.skyetel.com 





From: Daniel-Constantin Mierla 

Sent: Thursday, March 14, 2024 23:16
To: Kamailio (SER) - Users Mailing List 
Cc: Brooks Bridges 
Subject: Re: [SR-Users] Bug in htable in 5.8.0


 
Hello,

On 15.03.24 00:15, Brooks Bridges via sr-users wrote:


We have some scripts that are setting values in an htable for various things, one of which is to disable options replies to take a system “out of service”.  We discovered today upon deploying 5.8.0 that the “htable.seti”
 command appears to be broken.
 
[root@ip-10-52-42-102 ~]# kamcmd htable.seti system_settings option_pings_off 1
error: 500 - Not enough parameters (htable name, key name and value)
 
however if we do htable.sets it works fine (although not an integer so it’s breaking our shutdown scripts).
 
[root@ip-10-52-42-102 ~]# kamcmd htable.sets system_settings option_pings_off 1
Ok. Key set to new value.
[root@ip-10-52-42-102 ~]#
 
I’ve looked through the commit history for htable and haven’t found anything that really stands out as a possible issue, so can the gurus please take a look?

the problem should be with kamcmd+ctl, not htable, use kamctl (or kamcli) instead:
kamctl rpc htable.seti system_settings option_pings_off 1
(kamcli rpc htable.seti system_settings option_pings_off 1)
I will look into kamcmd/ctl, likely is related to conversion of values, many fields are now long instead of int and kamcmd is not much maintained, it uses a custom (undocumented) binary-rpc protocol and none of its original developers
 is active.
Cheers,
Daniel
-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio World Conference, April 18-19, 2024, Berlin -- kamailioworld.com


Confidentiality Notice: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named on the e-mail. If the reader of this e-mail is not the intended recipient, or the
 employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading this e-mail is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your
 system.

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] htable write access state

2024-02-21 Thread Patrick Karton via sr-users
Hello are htable protected for  multiple write access?

can i safely update htable from one process and be sure another process will 
access it for write operation ? if yes is the lock on all the htable or only on 
the bucket where the key belongs ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: ERROR: run_top_route

2023-10-13 Thread Patrick Karton via sr-users
Hi,

ok from kamailio source code,  i see that the returned value of last function 
called in failure route is also taken also as value so that's why you have that 
log error.

you have to find why t_relay() return -1

or you can also do this

failure_route["serial"] {
if (!t_next_contacts()) {
exit;
}

  t_on_failure("serial");
$tu = $ru;
  if (!t_relay())
   drop; // or exit
}

De : satyaprakash ch 
Envoyé : vendredi 13 octobre 2023 13:43
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] ERROR: run_top_route

HI,

failure_route[MANAGE_FAILURE] {
if (t_check_status("3[0-9][0-9]")) {
get_redirects("3:3");
t_load_contacts();
t_next_contacts();
$tu = $ru;
t_on_failure("serial");
t_relay();
exit;
}
}

failure_route["serial"] {
if (!t_next_contacts()) {
exit;
}

  t_on_failure("serial");
$tu = $ru;
  t_relay();
}


t_relay function is returning -1 in serial failure route. Functionality wise 
this code is working fine.
So is there any thing is wrong t_relay is returning -1. Let us know your 
suggestions further.

On Wed, Oct 11, 2023 at 8:58 PM Patrick Karton 
mailto:patrickar...@hotmail.com>> wrote:
Hi,

no we don't need to change any code level.
but in your script just remove the return with negative code.

you probably have in your script

failure_route[MY_FAILURE]{


return -5; // <-- you probably have this. remove this instruction


return route[ANOTHER_ROUTE] // <-- or you have this flavour  . remove the 
return instruction.


}


you should remove any return instruction present in faillure_route.
its not useful to have a return instruction in a faillure_route.

De : satyaprakash ch 
mailto:chiramchetty.satyaprak...@gmail.com>>
Envoyé : mercredi 11 octobre 2023 07:27
À : Patrick Karton mailto:patrickar...@hotmail.com>>
Cc : Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Objet : Re: [SR-Users] ERROR: run_top_route

Hi,

Thanks for the reply,

What if we would get a negative value, Do we need to change any code level,
Will you please suggest what we need to do to resolve this?

Waiting for your reply.


On Mon, Oct 9, 2023 at 11:45 AM satyaprakash ch 
mailto:chiramchetty.satyaprak...@gmail.com>>
 wrote:
Hi,

Thanks for the reply,

What if we would get a negative value, Do we need to change any code level,
Will you please suggest what we need to do to resolve this?



On Wed, Sep 27, 2023 at 9:26 PM Patrick Karton 
mailto:patrickar...@hotmail.com>> wrote:
Hi,

Probably because you are returning negative value in this failure_route

De : satyaprakash ch via sr-users 
mailto:sr-users@lists.kamailio.org>>
Envoyé : mercredi 27 septembre 2023 06:45
À : Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Cc : satyaprakash ch 
mailto:chiramchetty.satyaprak...@gmail.com>>
Objet : [SR-Users] ERROR: run_top_route

Hi,

We are having an error in the Kamailio logs which we need to resolve this issue,

ERROR is ::  /usr/local/sbin/kamailio[10149]: ERROR: tm [t_reply.c:1081]: 
run_failure_handlers(): error running run_top_route for failure handler.

We are getting this error at the time of the 3xx response, Can anyone help me 
on this?


Thank you.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: ERROR: run_top_route

2023-10-11 Thread Patrick Karton via sr-users
Hi,

no we don't need to change any code level.
but in your script just remove the return with negative code.

you probably have in your script

failure_route[MY_FAILURE]{


return -5; // <-- you probably have this. remove this instruction


return route[ANOTHER_ROUTE] // <-- or you have this flavour  . remove the 
return instruction.


}


you should remove any return instruction present in faillure_route.
its not useful to have a return instruction in a faillure_route.

De : satyaprakash ch 
Envoyé : mercredi 11 octobre 2023 07:27
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] ERROR: run_top_route

Hi,

Thanks for the reply,

What if we would get a negative value, Do we need to change any code level,
Will you please suggest what we need to do to resolve this?

Waiting for your reply.


On Mon, Oct 9, 2023 at 11:45 AM satyaprakash ch 
mailto:chiramchetty.satyaprak...@gmail.com>>
 wrote:
Hi,

Thanks for the reply,

What if we would get a negative value, Do we need to change any code level,
Will you please suggest what we need to do to resolve this?



On Wed, Sep 27, 2023 at 9:26 PM Patrick Karton 
mailto:patrickar...@hotmail.com>> wrote:
Hi,

Probably because you are returning negative value in this failure_route

De : satyaprakash ch via sr-users 
mailto:sr-users@lists.kamailio.org>>
Envoyé : mercredi 27 septembre 2023 06:45
À : Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Cc : satyaprakash ch 
mailto:chiramchetty.satyaprak...@gmail.com>>
Objet : [SR-Users] ERROR: run_top_route

Hi,

We are having an error in the Kamailio logs which we need to resolve this issue,

ERROR is ::  /usr/local/sbin/kamailio[10149]: ERROR: tm [t_reply.c:1081]: 
run_failure_handlers(): error running run_top_route for failure handler.

We are getting this error at the time of the 3xx response, Can anyone help me 
on this?


Thank you.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: What is the expected behavior for dispatcher's ds_next_dst?

2023-09-27 Thread Patrick Karton via sr-users
Hi,

before using t_relay you can probably check if next hop uri is still in the 
target group with

ds_is_from_list([groupid [, mode [, uri] ] ])


for example ds_is_from_list("3","3","$du"); all parameters can be variables too.

you can check on documentation the mode parameter to see how comparison is done.



De : geoff.goas--- via sr-users 
Envoyé : mardi 26 septembre 2023 21:02
À : sr-users@lists.kamailio.org 
Cc : geoff.g...@interoptechnologies.com 
Objet : [SR-Users] What is the expected behavior for dispatcher's ds_next_dst?

Hello,

I have some questions about dispatcher's behavior. I noticed that when I first 
ds_select_dst() a specific dispatcher group ID, ds_next_dst() will cycle 
through the active destinations in that group. When it reaches the end of the 
destinations in the group, it does not return "false", instead it starts to 
return destinations that are not a part of that group, ie. those destinations 
which are listed prior to the selected group in the dispatcher.list file. Is 
this the expected behavior? I've observed it on kamailio 5.3 and 5.5 releases.

My dispatcher.list:

# Group 1
1 sip:127.0.0.1:5071;transport=udp 8 0
# Group 2
2 sip:127.0.0.1:5072;transport=udp 8 0
# Group 3
3 sip:127.0.0.1:7010;transport=udp 8 0
3 sip:127.0.0.1:7011;transport=udp 8 0
3 sip:127.0.0.1:7012;transport=udp 8 0
# Group 4
4 sip:127.0.0.1:5071;transport=udp 8 0
4 sip:127.0.0.1:5072;transport=udp 8 0

I have the following in failure_route (excerpt):

$var(dsFoundDestination) = 0;

if (t_any_replied())
{
xavp_params_implode("_dsdst_", 
"$var(dsDestinations)");
xlog("L_INFO", "FAILURE ROUTE: Already have replies 
on this transaction. Selecting next destination from: [$var(dsDestinations)]");
if (ds_next_dst())
{
xavp_params_implode("_dsdst_", 
"$var(dsDestinations)");
xlog("L_INFO", "FAILURE ROUTE: Next destination 
selected: [$du] from [$var(dsDestinations)]");
$var(dsFoundDestination) = 1;
}
}
else if (ds_select_dst("3", "8")) // Dispatcher Group 3
{
xlog("L_INFO", "FAILURE ROUTE: Did not find any 
replies on this transaction. Selected destination: [$du]");
$var(dsFoundDestination) = 1;
}
if ($var(dsFoundDestination))
{
$var(logString) = "FAILURE ROUTE: Relayed to [" + 
$du + "]";
if (t_relay())
{
xlog("L_INFO", "$var(logString)");
}
}

Produces the following logs:

FAILURE ROUTE: Did not find any replies on this transaction. Selected 
destination: [sip:127.0.0.1:7012;transport=udp]
FAILURE ROUTE: Relayed to [sip:127.0.0.1:7012;transport=udp]
FAILURE ROUTE: Already have replies on this transaction. Selecting next 
destination from: [grp=3;uri=sip:127.0.0.1:7012;transport=udp;]
FAILURE ROUTE: Next destination selected: [sip:127.0.0.1:7011;transport=udp] 
from [grp=3;uri=sip:127.0.0.1:7011;transport=udp;]
FAILURE ROUTE: Relayed to [sip:127.0.0.1:7011;transport=udp]
FAILURE ROUTE: Already have replies on this transaction. Selecting next 
destination from: [grp=3;uri=sip:127.0.0.1:7011;transport=udp;]
FAILURE ROUTE: Next destination selected: [sip:127.0.0.1:7010;transport=udp] 
from [grp=3;uri=sip:127.0.0.1:7010;transport=udp;]
FAILURE ROUTE: Relayed to [sip:127.0.0.1:7010;transport=udp]
FAILURE ROUTE: Already have replies on this transaction. Selecting next 
destination from: [grp=3;uri=sip:127.0.0.1:7010;transport=udp;]
FAILURE ROUTE: Next destination selected: [sip:127.0.0.1:5072;transport=udp] 
from [grp=2;uri=sip:127.0.0.1:5072;transport=udp;]
FAILURE ROUTE: Relayed to [sip:127.0.0.1:5072;transport=udp]
FAILURE ROUTE: Already have replies on this transaction. Selecting next 
destination from: [grp=2;uri=sip:127.0.0.1:5072;transport=udp;]
FAILURE ROUTE: Next destination selected: [sip:127.0.0.1:5072;transport=udp] 
from [grp=2;uri=sip:127.0.0.1:5072;transport=udp;]
FAILURE ROUTE: Relayed to [sip:127.0.0.1:5072;transport=udp]
FAILURE ROUTE: Already have replies on this transaction. Selecting next 
destination from: [grp=2;uri=sip:127.0.0.1:5072;transport=udp;]
FAILURE ROUTE: Next destination selected: [sip:127.0.0.1:5071;transport=udp] 
from [grp=1;uri=sip:127.0.0.1:5071;transport=udp;]
FAILURE ROUTE: Relayed to [sip:127.0.0.1:5071;transport=udp]

I want to stop the loop once there are no more active destinations in group 3. 
Is the solution simply to check that the selected destination is part of the 
desired 

[SR-Users] Re: ERROR: run_top_route

2023-09-27 Thread Patrick Karton via sr-users
Hi,

Probably because you are returning negative value in this failure_route

De : satyaprakash ch via sr-users 
Envoyé : mercredi 27 septembre 2023 06:45
À : Kamailio (SER) - Users Mailing List 
Cc : satyaprakash ch 
Objet : [SR-Users] ERROR: run_top_route

Hi,

We are having an error in the Kamailio logs which we need to resolve this issue,

ERROR is ::  /usr/local/sbin/kamailio[10149]: ERROR: tm [t_reply.c:1081]: 
run_failure_handlers(): error running run_top_route for failure handler.

We are getting this error at the time of the 3xx response, Can anyone help me 
on this?


Thank you.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Missing posops module from 5.7 debian repo

2023-06-20 Thread Patrick Karton
oh sorry my fault.

siptrace is already there.

Thanks

De : Daniel-Constantin Mierla 
Envoyé : mardi 20 juin 2023 09:34
À : Patrick Karton ; Kamailio (SER) - Users Mailing 
List 
Objet : Re: [SR-Users] Missing posops module from 5.7 debian repo


siptrace is definitely packaged, you may need kamailio-extra-modules package 
installed.


Cheers,

Daniel


On 20.06.23 10:21, Patrick Karton wrote:
Possible also to add the siptrace module ?

i dont find it either

De : Daniel-Constantin Mierla <mailto:mico...@gmail.com>
Envoyé : mardi 20 juin 2023 08:27
À : Kamailio (SER) - Users Mailing List 
<mailto:sr-users@lists.kamailio.org>; Patrick 
Karton <mailto:patrickar...@hotmail.com>
Objet : Re: [SR-Users] Missing posops module from 5.7 debian repo


Hello,


the module was not listed in a compiling/packaging group, I just committed an 
update for it. Probably it will show up with the next packaging, if nothing 
else specific has to be done to deb specs.


Cheers,
Daniel


On 19.06.23 21:27, Patrick Karton wrote:
hello ,

i have installed kamailio 5.7 from debian repo 
http://deb.kamailio.org/kamailio57 bullseye  main

but i dont find the posops module in the directory modules.

what is the exactly package where i can find it.


Thanks.



__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to 
sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - www.kamailioworld.com<http://www.kamailioworld.com>

--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - www.kamailioworld.com<http://www.kamailioworld.com>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Missing posops module from 5.7 debian repo

2023-06-20 Thread Patrick Karton
Possible also to add the siptrace module ?

i dont find it either

De : Daniel-Constantin Mierla 
Envoyé : mardi 20 juin 2023 08:27
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] Missing posops module from 5.7 debian repo


Hello,


the module was not listed in a compiling/packaging group, I just committed an 
update for it. Probably it will show up with the next packaging, if nothing 
else specific has to be done to deb specs.


Cheers,
Daniel


On 19.06.23 21:27, Patrick Karton wrote:
hello ,

i have installed kamailio 5.7 from debian repo 
http://deb.kamailio.org/kamailio57 bullseye  main

but i dont find the posops module in the directory modules.

what is the exactly package where i can find it.


Thanks.



__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to 
sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - www.kamailioworld.com<http://www.kamailioworld.com>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Missing posops module from 5.7 debian repo

2023-06-20 Thread Patrick Karton
Thanks Daniel.

De : Daniel-Constantin Mierla 
Envoyé : mardi 20 juin 2023 08:27
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] Missing posops module from 5.7 debian repo


Hello,


the module was not listed in a compiling/packaging group, I just committed an 
update for it. Probably it will show up with the next packaging, if nothing 
else specific has to be done to deb specs.


Cheers,
Daniel


On 19.06.23 21:27, Patrick Karton wrote:
hello ,

i have installed kamailio 5.7 from debian repo 
http://deb.kamailio.org/kamailio57 bullseye  main

but i dont find the posops module in the directory modules.

what is the exactly package where i can find it.


Thanks.



__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to 
sr-users-le...@lists.kamailio.org<mailto:sr-users-le...@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - www.kamailioworld.com<http://www.kamailioworld.com>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Missing posops module from 5.7 debian repo 

2023-06-19 Thread Patrick Karton
hello ,

i have installed kamailio 5.7 from debian repo 
http://deb.kamailio.org/kamailio57 bullseye  main

but i dont find the posops module in the directory modules.

what is the exactly package where i can find it.


Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] DISABLE SDP MEDIA STREAMS

2023-05-29 Thread Patrick Karton
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    22     
 4    5  6
  #    name   sid     snumber    
networknet-typeaddr

  # update connection ip address
  subst_body('#^c=([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)$#c=\1 \2 7.7.7.7#ig');
  #     1       2 3
  #   networknet-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 :)

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: rtpengine module: Actions caused by rtpengine_manage() on reply-codes?

2023-04-21 Thread Patrick Karton
Hello,I dont think rtpengine_manage() does automatically rtpengine on 4xx.You have to explicitly do it. Bécasse rtpengine Can not decide if 4xx is for initial invite or reinvite failure.My advise use rtpengine_offer and rtpengine_answer and rtpengine_delete instead of rtpengine_manage.Le 21 avr. 2023 08:53, Benoît Panizzon  a écrit :Hi all

I wonder, if there is a documentation on what action is performed by
rtpengine_manage() on which kind reply.

Am I right, that rtpengine_manage(), on any 4XX reply causes a delete?

So if there is a re-invite (for example to switch to T.38) and the
other party replies with 488 which in turn is passed through
rtpengine_manage() the existing RTP stream is deleted from rtpengine
instead of being left running with the previously agreed codec?

Has anyone already figured out a list of what reply codes should be
exempt from calling rtpengine_manage()?

-- 
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
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Call recovery for HA with sems

2023-03-08 Thread Patrick Karton
Hello kamailio community i know this is the not really the right place.But i would like to know if Someone here using the open source sems can guidé on the way to implément call recovery for HA on sems.The only way i see now is to use dsm app with sbc part. Its a riche language i think can do it.But if Someone has other Ways to achieve it thanks for help.__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: Call History

2023-02-21 Thread Patrick Karton
Hello,You can use the mqueue module functions to store data about the call on the request route.and use rtimer module to créate additional timer processes to fetch those informations and send it to rabbitmq.You will need to figure Out what interval is best for you to check if data is available on the mqueue.Le 21 févr. 2023 16:55, Anthony Wittig  a écrit :Hello,I'd like to start tracking a call history/log as soon as I receive a call. I'd like the customer to be able to see that there's an incoming call to one of their numbers in real time.I'm thinking of using the RABBITMQ Module to manually emit an event from my main route when I receive an INVITE. Is that a bad idea? What if the broker isn't located on the same host (latency/availability)? I don't want to negatively affect the call processing. I was looking at the Dialog Module and it has three event routes:* event_route[dialog:start]* event_route[dialog:end]* event_route[dialog:failed]It's really close to what I want, but I'd like to capture the dialog before it starts (Unconfirmed or Early). Maybe another option is to scan the Dialog table with an external process and emit events from there.Has anyone had success in creating a realtime call history? Is there a better way to go about doing so?Thanks!--Anthony WittigMango Voice Developer
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] change default 477 response code per case

2023-02-12 Thread Patrick Karton
Hello ,

i would like to know if there is a way to change the default 477 response code 
generated by kamailio in some cases.

for example if kamalio generates 477 because its not able to reach a peer i 
would like to change it to another code before to forward it.


Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Sip messages responses counters per interface

2023-01-31 Thread Patrick Karton
Hello i see that kamailio provides counters for sip requests (INVITE,BYE,ACK,CANCEL,...) and the corresponding responses via core.but this seems to be a sum  from all kamailio interfaces.Is there a way or module to have those counters per kamailio interface ?Thanks.__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: PRACK / ACK issue with topos (was: topos vs topoh, any reason for putting a private IP in the Contact header?)

2023-01-27 Thread Patrick Karton
Hi Benoît,record_route must be called only for initial invite. Then After routing is handled properly for all other in dialog requests (ACK,PRACK,BYE,) by the topos internal hooks.t_check_trans is not linked to topos. Its a tm module function.and yes for positive replies ack and subséquent in dialog requests t_check_trans will always return false because they will belong to différent transaction than initial invite.You should use dialog module dlg_manage and is_known_dlg functions to match all other in dialog requests in your has_to_tag block condition.What backend do you use for topos? Make sure there are no errors from this backend module as well.Le 27 janv. 2023 10:08, Benoît Panizzon  a écrit :Hi Patrick



> Male sure record_route is used in kamailio script.



I will double check by outputing a notice to log before calling

record_route but I'm quite confident this is the case for invites.



Do I need to explicitely call record_route for ACK and PRACK or even

for all messages when using topos? Is this where topos hooks in?



> Normally it should be used in initial invite.



Issue is not only PRACK, but also ACK.

I narrowed down the issue to this:



topos active:



if (has_totag()) {

	# True

	if ( t_check_trans() ) {

		# False

		route(RELAY);

	} else {

		# discard ACK not matching transaction

		exit;

	}

}



I end up discarding ACK and PRACK because they don't match a

transaction.



topos commented out:



if (has_totag()) {

	# True

	if ( t_check_trans() ) {

		# True

		route(RELAY);

	} else {

		# discard ACK not matching transaction

		exit;

	}

}



Ack is routed.



Any explanation why topos causes t_check_trans() to return false on ACK

and PRACK?



-- 

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

__


__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: topos vs topoh, any reason for putting a private IP in the Contact header?

2023-01-26 Thread Patrick Karton
Male sure record_route is used in kamailio script.Normally it should be used in initial invite.Le 26 janv. 2023 16:43, Benoit Panizzon  a écrit :Hi Patrick



Agreed, this could become an issue when we do dual stack ipv4 and ipv6

unless we use a hostname which will probably cause other issues.



> But overall sip compliant component must Always follow Route ip before contact IP.



I will test how the know buggy client behaves.



While testing with topos I came across another issue.



Then I have topos enabled on a REG instance, I see this PRACK

handling:



CPE <=> KAM Reg <=> KAM Core <=> IC



CPE => Invite, supported: 100rel

CPE <= 180 RINGING, required: 100rel



CPE => PRACK => KAM Reg => PRACK to itself looping MANY times adding a

VIA Header on each loop.



I don't understand, why in this situation, the REG is sending PRACK

to itself.



As soon as I comment out topos PRACK is sent correctly to the party

reqesting 100rel.



Any hint where to look?



Mit freundlichen Grüssen



-Benoît Panizzon-

-- 

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

__


__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: topos vs topoh, any reason for putting a private IP in the Contact header?

2023-01-26 Thread Patrick Karton
Hello,You can put any IP for Contact in topoh module private or public.The only issue is that most of the time you dont know Always what is the right IP you need to put there and is even worst if your kamailio listens on More than 2 Ips.Topoh parameter for Contact IP is a static one.so you can not change it dynamically.If your kamailio uses one IP address and you know it from start it will not change you Can put it directly in topoh parameter for Contact IP.But overall sip compliant component must Always follow Route ip before contact IP.Le 26 janv. 2023 15:27, Benoit Panizzon  a écrit :Hi

I'm trying to work around Route-Header and Via Issues with the two
topology hiding modules topoh and topos and trying to figure out, which
one works better for our environment.

My conclusion so far:

topos creates very clean header, but needs a database or redis. I'm
always reluctant in adding more components which could fail or cause
load.

topoh also works, but it worries me a bit that according to the manual:
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
a private IP is used to mask the contact header.

I have come across a CPE which, as far as I see, is misbehaving by
ALWAYS sending a PRACK to the Hostname or IP found in the Contact
header, and ignoring Route and Via Header.

So why using a private IP as 'mask' and not the IP or Hostname of the
actual kamailio instance?

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
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
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


Re: [SR-Users] Increase MAX_BRANCHES_LIMIT

2022-12-10 Thread Patrick Karton
Hellothere is already max_branches parameter you can set in config file.Le 10 déc. 2022 13:02, Lars Jansson  a écrit :
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 which
  parameters?
Regards,
  Lars

  
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting the name of an already set onreply_route

2022-12-07 Thread Patrick Karton
Or transaction variable (xavp) is best for that.Le 7 déc. 2022 12:00, Patrick Karton  a écrit :Hello i dont think so.But probably you can use shared or private variable depending on your needs Le 7 déc. 2022 11:28, Denys Pozniak  a écrit :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
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting the name of an already set onreply_route

2022-12-07 Thread Patrick Karton
Hello i dont think so.But probably you can use shared or private variable depending on your needs Le 7 déc. 2022 11:28, Denys Pozniak  a écrit :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
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] redis template config for topos module

2022-11-30 Thread Patrick Karton
we are using topos with redis backend.

at first we started  using topos with db_text but we noticed too much 
retransmission on kamailio so we switched to redis and retransmission 
disappeared (80 caps 5000 concurrent calls with redis).

now above 120 caps retransmission comes time to time even if acceptable.


We use HA with 2 kamailio so we need to synchronize sessions through redis. of 
course there is also DMQ i think.


have you some numbers results or suggestion to go with redis or DMQ for 
sessions Synchronization ?

Thanks.

De : Henning Westerholt 
Envoyé : mercredi 30 novembre 2022 12:48
À : Kamailio (SER) - Users Mailing List 
Cc : Patrick Karton 
Objet : RE: redis template config for topos module


Hello,



we are using topos and redis in a few customer installations. So far we did not 
had the necessitity to tune it to certain performance requirements from 
Kamailio side. It worked out of the box. I am of course interested what other 
people can share in this regards.



For the dialog module it’s another question, as one usually needs to use the 
db_redis module with dialog database backend. When using a local redis server, 
my suggestion would be to always skip the database and just use the in-memory 
mode of dialog module in the first place, as there are no benefits in this 
setup. Of course for a remote redis server if could be benefitial in some 
scenarios, like restart of dialog module.



Cheers,



Henning





From: sr-users  On Behalf Of Patrick Karton
Sent: Wednesday, November 30, 2022 12:15 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] redis template config for topos module



Hello not a usual question but i would like to know if somebody using topos 
module with redis backend can provide me an optimized redis conf for redis for 
using it topos module. and possibly also when using it with dialog module.



Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] redis template config for topos module

2022-11-30 Thread Patrick Karton
Hello not a usual question but i would like to know if somebody using topos 
module with redis backend can provide me an optimized redis conf for redis for 
using it topos module. and possibly also when using it with dialog module.

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-16 Thread Patrick Karton
You should return -1 or any négative number instead of 0 in route ABC if you want the calling block to continue.Return 0 will end kamailio script. Its équivalent to exit in 5.6.1 and even 5.5.4 if i remember.Le 16 sept. 2022 15:48, Joel Serrano  a écrit :Hi Daniel, So after a lot of digging, this is my finding so far:Chronology:current Kamailio v5.5.2 - everything worksupdate to Kamailio v5.6.1 - issue beginsdowngrade to Kamailio v5.5.4 - issue continuesThat got me triggered, so I added a lot of debug logs to see where I was getting stuck.the last point in the script I get to is something similar to:if(route(ABC)) {    ... do stuff ...}Having:route[ABC] {    if(condition) {        return(1);    } else {        return(0);    }}Right after doing the route(ABC) the call ends.I've done a diff from 5.5.2 to 5.5.4 and I think this commit could be related:https://github.com/kamailio/kamailio/commit/b149906e3c0558fd9cb866d39b36f180efaef656@Daniel-Constantin Mierla any tips? Do I need to rework my config and stop using the logic were a child route can return(1) or return(0) to parent route? I think that when I return(0) effectively the call is ending.I don't see kamailio v5.5.2 in the repo any more are they available? I could downgrade to 5.5.2 to confirm this 100%, but I think I'm finally getting to the root cause.root@csbc01:~# apt-cache policy kamailiokamailio:  Installed: 5.5.4+bpo10  Candidate: 5.5.4+bpo10  Version table: *** 5.5.4+bpo10 500        500 http://deb.kamailio.org/kamailio55 buster/main amd64 Packages        100 /var/lib/dpkg/status     5.2.1-1 500        500 http://ftp.us.debian.org/debian buster/main amd64 Packagesroot@csbc01:~#Let me know what you think.Thanks, Joel.On Thu, Sep 15, 2022 at 9:50 AM Joel Serrano  wrote:In sngrep I do see the the INVITEs coming in, I’ll check more on the OS side and see what I can find. Again, thanks for checking! I’ll follow up with what I find. On Thu, Sep 15, 2022 at 09:16 Daniel-Constantin Mierla  wrote:
  

  
  
Hello,
if the traffic is over UDP, the Kamailio workers were blocked in
  recvfrom(), meaning that nothing is passed from the network layer
  to them. If you see UDP packets coming to Kamailio via
  ngrep/sngrep/..., then is the OS that drops them via firewall or
  some other app that controls the network traffic.
Cheers,
  Daniel

On 15.09.22 07:37, Joel Serrano wrote:


  
  Hi Daniel, 


I've tried with apparmor disabled unfortunately the same
  issue happens. 


I've sent you privately the output of the kamctl trap. I
  personally don't think it's Kamailio's fault per se, this is
  on a standard debian 11. I'm just lost and don't really
  understand what the hell is going on.


Thanks, I appreciate your help with this.
Joel.




  
  
  
On Wed, Sep 14, 2022 at 9:50
  AM Joel Serrano 
  wrote:


  Hi Daniel, 


I've followed your suggestions and compared this "bad"
  server with the two "good" ones.


- Pike:


In all cases we have:


    if (src_ip!=myself && !ds_is_from_list()) {
          if($sht(ipban=>$si)!=$null) {
              xlog("L_ALERT","ALERT: blocked by pike R=$ru
  from $fu (IP:$si:$sp)\n");
              exit;
          }
          if (!pike_check_req()) {
              xlog("L_ALERT","ALERT: pike blocking R=$ru
  from $fu (IP:$si:$sp)\n");
              $sht(ipban=>$si) = 1;
              exit;
          }
      }



And we are not seeing any logs, therefore I'm
  discarding pike.


- Firewall:


I checked all 3 servers, and none of them have -local-
  firewall policies.


- conntrack:


All 3 servers have nf_conntrack loaded in kernel.


- selinux/etc:


The two good servers have "AppArmor" disabled.
The bad server has "AppArmor" enabled. !!
  <-- I'm hoping this could be the cause and I'm
  going to test tonight without it.





  Thanks for checking this, I was so lost I actually
went ahead 

Re: [SR-Users] Kamailio stops processing requests mid script

2022-09-16 Thread Patrick Karton
Return 0 is équivalent to exit in 5.6.1.So if in route ABC you return 0.the script will stop executing there.Le 16 sept. 2022 15:48, Joel Serrano  a écrit :Hi Daniel, So after a lot of digging, this is my finding so far:Chronology:current Kamailio v5.5.2 - everything worksupdate to Kamailio v5.6.1 - issue beginsdowngrade to Kamailio v5.5.4 - issue continuesThat got me triggered, so I added a lot of debug logs to see where I was getting stuck.the last point in the script I get to is something similar to:if(route(ABC)) {    ... do stuff ...}Having:route[ABC] {    if(condition) {        return(1);    } else {        return(0);    }}Right after doing the route(ABC) the call ends.I've done a diff from 5.5.2 to 5.5.4 and I think this commit could be related:https://github.com/kamailio/kamailio/commit/b149906e3c0558fd9cb866d39b36f180efaef656@Daniel-Constantin Mierla any tips? Do I need to rework my config and stop using the logic were a child route can return(1) or return(0) to parent route? I think that when I return(0) effectively the call is ending.I don't see kamailio v5.5.2 in the repo any more are they available? I could downgrade to 5.5.2 to confirm this 100%, but I think I'm finally getting to the root cause.root@csbc01:~# apt-cache policy kamailiokamailio:  Installed: 5.5.4+bpo10  Candidate: 5.5.4+bpo10  Version table: *** 5.5.4+bpo10 500        500 http://deb.kamailio.org/kamailio55 buster/main amd64 Packages        100 /var/lib/dpkg/status     5.2.1-1 500        500 http://ftp.us.debian.org/debian buster/main amd64 Packagesroot@csbc01:~#Let me know what you think.Thanks, Joel.On Thu, Sep 15, 2022 at 9:50 AM Joel Serrano  wrote:In sngrep I do see the the INVITEs coming in, I’ll check more on the OS side and see what I can find. Again, thanks for checking! I’ll follow up with what I find. On Thu, Sep 15, 2022 at 09:16 Daniel-Constantin Mierla  wrote:
  

  
  
Hello,
if the traffic is over UDP, the Kamailio workers were blocked in
  recvfrom(), meaning that nothing is passed from the network layer
  to them. If you see UDP packets coming to Kamailio via
  ngrep/sngrep/..., then is the OS that drops them via firewall or
  some other app that controls the network traffic.
Cheers,
  Daniel

On 15.09.22 07:37, Joel Serrano wrote:


  
  Hi Daniel, 


I've tried with apparmor disabled unfortunately the same
  issue happens. 


I've sent you privately the output of the kamctl trap. I
  personally don't think it's Kamailio's fault per se, this is
  on a standard debian 11. I'm just lost and don't really
  understand what the hell is going on.


Thanks, I appreciate your help with this.
Joel.




  
  
  
On Wed, Sep 14, 2022 at 9:50
  AM Joel Serrano 
  wrote:


  Hi Daniel, 


I've followed your suggestions and compared this "bad"
  server with the two "good" ones.


- Pike:


In all cases we have:


    if (src_ip!=myself && !ds_is_from_list()) {
          if($sht(ipban=>$si)!=$null) {
              xlog("L_ALERT","ALERT: blocked by pike R=$ru
  from $fu (IP:$si:$sp)\n");
              exit;
          }
          if (!pike_check_req()) {
              xlog("L_ALERT","ALERT: pike blocking R=$ru
  from $fu (IP:$si:$sp)\n");
              $sht(ipban=>$si) = 1;
              exit;
          }
      }



And we are not seeing any logs, therefore I'm
  discarding pike.


- Firewall:


I checked all 3 servers, and none of them have -local-
  firewall policies.


- conntrack:


All 3 servers have nf_conntrack loaded in kernel.


- selinux/etc:


The two good servers have "AppArmor" disabled.
The bad server has "AppArmor" enabled. !!
  <-- I'm hoping this could be the cause and I'm
  going to test tonight without it.





  Thanks for checking this, I was so lost I actually
went ahead and did "kamctl trap" last night too just in
case. When I run it, it didn't stop 

Re: [SR-Users] proper way for infinite loop in event_route for evrexec module

2022-08-16 Thread Patrick Karton
Hello lhor,

yes i will do some tests with cron to see if it suits well.

the scenario is we have kamailio connected to redis database.

redis store some configs for kamailio that we want to update (from redis to 
kamailio htable) let say every 5 hours.

but if some reason we need to update some new config values from redis to 
kamailio immediatly. i want a way to trigger that as soon as we need it.

and evrexec  suits well for that i think.

De : Patrick Karton 
Envoyé : mardi 16 août 2022 08:25
À : Kamailio (SER) - Users Mailing List 
Objet : RE: [SR-Users] proper way for infinite loop in event_route for evrexec 
module

Hello lhor,

yes i will do some tests with cron to see if it suits well.

the scenario is we have kamailio connected to redis database.

redis store some configs for kamailio that we want to update (from redis to 
kamailio htable) let say every 5 hours.

but if some reason we need to update some new config values from redis to 
kamailio. i want a way to trigger that as soon as we need it.

and evrexec  suits well for that i think.

De : sr-users  de la part de Ihor 
Olkhovskyi 
Envoyé : mardi 16 août 2022 07:09
À : sr-users@lists.kamailio.org 
Objet : Re: [SR-Users] proper way for infinite loop in event_route for evrexec 
module


Patrick,


Maybe I'm a bit out of context, but could some external process like cron suits 
better for this kind of tasks than internal job?


Le 14/08/2022 à 16:37, Patrick Karton a écrit :
Hello i would like to use the evrexec module to execute background jobs over 
exec module mainly because i want to be able to  trigger that route manually 
via rpc from time to time.

in the documentation its is stated we should use tasks that run forever and 
except using while loop i dont see another way.

and i dont to want to disable max_while_loops. but if i disable it i will get 
error message like runaway while (1091, 9): more then 100 loops.

so is there another way to do it properly ?

Thanks.



__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] proper way for infinite loop in event_route for evrexec module

2022-08-16 Thread Patrick Karton
Hello lhor,

yes i will do some tests with cron to see if it suits well.

the scenario is we have kamailio connected to redis database.

redis store some configs for kamailio that we want to update (from redis to 
kamailio htable) let say every 5 hours.

but if some reason we need to update some new config values from redis to 
kamailio. i want a way to trigger that as soon as we need it.

and evrexec  suits well for that i think.

De : sr-users  de la part de Ihor 
Olkhovskyi 
Envoyé : mardi 16 août 2022 07:09
À : sr-users@lists.kamailio.org 
Objet : Re: [SR-Users] proper way for infinite loop in event_route for evrexec 
module


Patrick,


Maybe I'm a bit out of context, but could some external process like cron suits 
better for this kind of tasks than internal job?


Le 14/08/2022 à 16:37, Patrick Karton a écrit :
Hello i would like to use the evrexec module to execute background jobs over 
exec module mainly because i want to be able to  trigger that route manually 
via rpc from time to time.

in the documentation its is stated we should use tasks that run forever and 
except using while loop i dont see another way.

and i dont to want to disable max_while_loops. but if i disable it i will get 
error message like runaway while (1091, 9): more then 100 loops.

so is there another way to do it properly ?

Thanks.



__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] proper way for infinite loop in event_route for evrexec module

2022-08-14 Thread Patrick Karton
Hello i would like to use the evrexec module to execute background jobs over 
exec module mainly because i want to be able to  trigger that route manually 
via rpc from time to time.

in the documentation its is stated we should use tasks that run forever and 
except using while loop i dont see another way.

and i dont to want to disable max_while_loops. but if i disable it i will get 
error message like runaway while (1091, 9): more then 100 loops.

so is there another way to do it properly ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Change reply code reason other than using change_reply_status

2022-08-12 Thread Patrick Karton
Thanks Alex.

great indeed.

De : sr-users  de la part de Alex Balashov 

Envoyé : vendredi 12 août 2022 18:12
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] Change reply code reason other than using 
change_reply_status

Depending on what you’re trying to accomplish, you could intercept the negative 
reply (if a negative reply is what you’re trying to change) in a failure_route 
and use send_reply() to send back an entirely different reply to the caller, 
functionally altering the status/reason.

— Alex

> On Aug 12, 2022, at 1:00 PM, Patrick Karton  wrote:
>
> hello is there a way to change reply code reason other than using  () 
> function.
>
> because the first parameterc of  change_reply_status needs to be a constant 
> so i can not use pseudo var for first argument of that function.
>
> so i use change_reply_status_code to change to code with a pseudo. but i 
> would also to change the code reason.
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Change reply code reason other than using change_reply_status

2022-08-12 Thread Patrick Karton
hello is there a way to change reply code reason other than using  () function.

because the first parameterc of  change_reply_status needs to be a constant so 
i can not use pseudo var for first argument of that function.

so i use change_reply_status_code to change to code with a pseudo. but i would 
also to change the code reason.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] incomplete values and Wrong Counting for $hfl and $hflc

2022-07-21 Thread Patrick Karton
Hello Daniel,

Thanks for feedbacks.


im using $hfl($var(hname)) with $var(hname) being "Record-Route"? and it 
produces wrong results like explained.

and indeed with static name like  $hflc(Record-Route) and $hfl(Record-Route) 
the results are correct. i did not test first with static name because i tought 
the results were the same.

i already opened an issue on github 
https://github.com/kamailio/kamailio/issues/3194
[https://opengraph.githubassets.com/df419938d8c8caea7d003e117bb64b318aef7b31a1d8e09e0c970649db55c3d7/kamailio/kamailio/issues/3194]<https://github.com/kamailio/kamailio/issues/3194>
incomplete values and Wrong Counting for $hfl and $hflc · Issue #3194 · 
kamailio/kamailio<https://github.com/kamailio/kamailio/issues/3194>
Description the counting and values provides by $hfl and $hflc are wrong and 
imcomplete Troubleshooting Reproduction Debugging Data route { $var(hname) = 
Record-Route; if (is_present_hf...
github.com



De : Daniel-Constantin Mierla 
Envoyé : jeudi 21 juillet 2022 15:43
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] incomplete values and Wrong Counting for $hfl and $hflc


Are you using it exactly like $hfl(Record-Route) or is it like 
$hfl($var(hname)) with $var(hname) being "Record-Route"?


The first variant is the one covered by $hfl()/$hflc(), parsing of the name 
being optimized at startup. On the second variant, the name is dynamic at 
runtime, based on the $var() value and simply compares the generic header names 
in the list, without any specific optimization for "Record-Route" case.


I noticed an issue opened on bug tracker and there was the second variant, 
while in this message seems to be the first variant. If the first variant 
fails, then it is a bug there. If it is the second that doesn't provide, it's 
because the feature is not there yet.


Cheers,
Daniel


On 21.07.22 15:00, Patrick Karton wrote:
the counting and values provided by $hfl and $hflc are wrong and incomplete 
from my understanding. looking at the source code these pseudo vars count the 
body values of Via, Record-Route and Route headers.

in kamalio 5.6.1

with
Record-Route: 
Record-Route: 
,

i get $hflc(Record-Route) == 2 instead of 3

and $(hfl(Record-Route)[0]) == 1.1.1.1
   $(hfl(Record-Route)[1]) == 2.2.2.2

 $(hfl(Record-Route)[3]) does not exists.









__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] incomplete values and Wrong Counting for $hfl and $hflc

2022-07-21 Thread Patrick Karton
the counting and values provided by $hfl and $hflc are wrong and incomplete 
from my understanding. looking at the source code these pseudo vars count the 
body values of Via, Record-Route and Route headers.

in kamalio 5.6.1

with
Record-Route: 
Record-Route: 
,

i get $hflc(Record-Route) == 2 instead of 3

and $(hfl(Record-Route)[0]) == 1.1.1.1
   $(hfl(Record-Route)[1]) == 2.2.2.2

 $(hfl(Record-Route)[3]) does not exists.






__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] iterate trough all Record-Route values via @hf_value.Record_Route

2022-07-20 Thread Patrick Karton
Hello Thanks.

i found that in 5.6 version we have new pseudo var

$hfl and $hflc for that.
thats exactly what i needed.

De : sr-users  de la part de Denys Pozniak 

Envoyé : mardi 19 juillet 2022 14:32
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] iterate trough all Record-Route values via 
@hf_value.Record_Route

Hey!

Try this one:
$(hdr(name)[N]) - represents the body of the N-th header identified by 'name'.


вт, 19 июл. 2022 г. в 15:49, Patrick Karton 
mailto:patrickar...@hotmail.com>>:
Hello All,

i would to iterate through all ips in Record-Route through 
@hf_value.Record_Route.

if i put static index like @hf_value.Record_Route[0] it works.

but  $var(i) = 0; @hf_value.Record_Route[$var(i)] does not work.

is there a way to get the count of all headers values through 
@hf_value.Record_Route

For example i would like to iterate through all Record-Route Values if i 
receive it like this

Record-Route: 
Record-Route: ,
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--

BR,
Denys Pozniak


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] iterate trough all Record-Route values via @hf_value.Record_Route

2022-07-19 Thread Patrick Karton
Hello All,

i would to iterate through all ips in Record-Route through 
@hf_value.Record_Route.

if i put static index like @hf_value.Record_Route[0] it works.

but  $var(i) = 0; @hf_value.Record_Route[$var(i)] does not work.

is there a way to get the count of all headers values through 
@hf_value.Record_Route

For example i would like to iterate through all Record-Route Values if i 
receive it like this

Record-Route: 
Record-Route: ,
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Need Suggestion/Idea to set call limit on 3 kamailios.

2022-07-13 Thread Patrick Karton
Use dialog module with dmq.Profiles are propagated in each instance.Le 13 juil. 2022 05:56, Waqar 40  a écrit :Please Read the Scenario in full and then guide me.In my scenario, I have three Kamailio (KamA, KamB, KamC) running in production. They do load balancing for the asterisks which are about 9. Kamailios randomly receive calls from the SIP trunk. I have set the limit of 750 calls on each kamailios. I want to provide only 1000 Calls to my client but they are enjoying calls more than this since each kamailio can receive 750 calls (I have set this limit for redundancy purpose). And I cannot set the limit like 750 on KamA and the rest on KamB and KamC for redundancy purposes. If one kamailio goes down then they send calls on the other kamailios so that no call drops. So, I want to know if there is a module or a way that my redundancy is not affected and I limit total calls on the three kamailios to not exceed 1000. Waiting for a prompt response.Let me know if you need any further information.Regards,Vicky
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] log any rpc command

2022-07-08 Thread Patrick Karton
hello

is there a way to log in kamailio any  kamcmd entered ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Releasing v5.6.1

2022-07-08 Thread Patrick Karton
Thanks. All the team.

Just one question on which base commit pull  requests are merged in current 
branch.

i see some new master commits not been merged in this release.

especially


ims_qos: fix module loading crash

0550a3d44b2addc160b6a20bd2c9bf2831187400

tm: new param to specify reply codes for dns srv failover
062e6daa0f149e01674667f77608afb35b6e099a

Thanks.

De : sr-users  de la part de 
Daniel-Constantin Mierla 
Envoyé : mercredi 6 juillet 2022 07:38
À : Kamailio (SER) - Users Mailing List ; Kamailio 
(SER) - Devel Mailing List 
Objet : Re: [SR-Users] Releasing v5.6.1

Hello,

short notification that the Kamailio 5.6.1 will be released today,
therefore any commits to branch 5.6 should be announced to the sr-dev
mailing list and wait for the ack before pushing to github repo. Once
the announcement of the release is out, commits can be pushed as usual.

Cheers,
Daniel

On 24.06.22 10:35, Daniel-Constantin Mierla wrote:
> Hello,
>
> I am considering to release Kamailio v5.6.1 (out of branch 5.6) on
> Wednesday, July 6, 2022 -- in about 1 week and a half from now. If
> anyone is aware of issues not yet on the bug tracker, report them there
> asap in order to have a better chance to be fixed.
>
> Cheers,
> Daniel
>
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- 
www.linkedin.com/in/miconda


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 5.6.1 minor release

2022-07-06 Thread Patrick Karton
Thanks for feedback. :)

De : sr-users  de la part de 
Daniel-Constantin Mierla 
Envoyé : mercredi 6 juillet 2022 14:49
À : sr-users@lists.kamailio.org 
Objet : Re: [SR-Users] kamailio 5.6.1 minor release


Hello,


at this moment it is no longer on the plan :-) -- probably you missed the 
message on this list before yours, see the archive:


  - https://lists.kamailio.org/pipermail/sr-users/2022-July/date.html


Cheers,
Daniel


On 06.07.22 15:03, Patrick Karton wrote:
Hello Daniel,

you said a couple weeks ago that you plan to release a minor release 5.6.1 for 
this week.

its still on plan ?

Thanks.

--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 5.6.1 minor release

2022-07-06 Thread Patrick Karton
Hello Daniel,

you said a couple weeks ago that you plan to release a minor release 5.6.1 for 
this week.

its still on plan ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] return 0 is not equivalent to exit

2022-07-04 Thread Patrick Karton

Thanks Daniel i upgraded kamailio version

De : Daniel-Constantin Mierla 
Envoyé : lundi 4 juillet 2022 09:59
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] return 0 is not equivalent to exit


There was a missing internal flag set at some point, but it should be fixed in 
5.5 branch as well, be sure you run the latest version there.


Cheers,
Daniel


On 04.07.22 10:52, Patrick Karton wrote:
on 5.5 kamailio wiki for core it is stated that return (0) is the same as exit. 
but that's not true

request_route {

if (route(POS)){
xlog("POS PASS\r\n");
}

if (!route(NEG)){
xlog("NEG PASS\r\n");
}

if (!route(ZERO)) {
xlog("ZERO PASS\r\n");
}

xlog("AFTER ZERO\r\n");
send_reply("400","Error");
return;
}



route[POS]{
return 1;
}

route[NEG]{
return -1;
}

route[ZERO] {
return 0;
}


for example from the config above not only ZERO PASS will be printed but also 
all the actions after route(ZERO) are still executed.

instead if i replace return 0 with exit in route[ZERO]. this work as expected.




__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] compare pseudo var ip to one of kamailio ips

2022-07-04 Thread Patrick Karton
is there a function or way to compare an ip store in pseudo variable to one 
kamailio ips ?

 i would for example

if ( $nh(d) == myself )
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] return 0 is not equivalent to exit

2022-07-04 Thread Patrick Karton
on 5.5 kamailio wiki for core it is stated that return (0) is the same as exit. 
but that's not true

request_route {

if (route(POS)){
xlog("POS PASS\r\n");
}

if (!route(NEG)){
xlog("NEG PASS\r\n");
}

if (!route(ZERO)) {
xlog("ZERO PASS\r\n");
}

xlog("AFTER ZERO\r\n");
send_reply("400","Error");
return;
}



route[POS]{
return 1;
}

route[NEG]{
return -1;
}

route[ZERO] {
return 0;
}


for example from the config above not only ZERO PASS will be printed but also 
all the actions after route(ZERO) are still executed.

instead if i replace return 0 with exit in route[ZERO]. this work as expected.

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] branch_route not called on DNS failover

2022-07-01 Thread Patrick Karton
Thanks for reply but its not possible to set branch_route in failover_route for 
dns failover.

the branch is sent before the failure_route.

i will keep reparse_on_dns_failover to 1 that solves partially .

De : sr-users  de la part de Alex Balashov 

Envoyé : vendredi 1 juillet 2022 20:01
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] branch_route not called on DNS failover


> On Jul 1, 2022, at 10:23 AM, Patrick Karton  wrote:
>
> do i need again to set branch_route in failure_route ?
>

Short answer: yes.

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] branch_route not called on DNS failover

2022-07-01 Thread Patrick Karton
im using dns failover with tm module.
i set parameter reparse_on_dns_failover to 0 so that branch_route is called .

but when trying next peer of dns failover initial transaction branch_route is 
not called.

do i missing something ?

for the first peer branch_route is called and the peer timeout
so kamailio tries next peer but branch_route is not called !.

do i need again to set branch_route in failure_route ?

Thanks for help.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP Proxy Challange

2022-06-27 Thread Patrick Karton
Hello

topos module keeps only one Via header when forwarding

so you can try it


De : sr-users  de la part de Mihai 

Envoyé : vendredi 24 juin 2022 13:58
À : Kamailio (SER) - Users Mailing List 
Objet : [SR-Users] SIP Proxy Challange

Hello !

I have this issue with the telco provider they give the sip trunk on a private 
connection with private ips, the problem is that i am trying to relocate the 
sip trunk in remote server and I've tried though basic networking/tunnels/vpn 
and no go; their sbc is dropping requests and rejects if they are more via 
headers, they force me to use that connection and the ip allocated.

The challenge is how to do this in kamailio, basically I just want to transport 
the trunk (similar to a reverse proxy for web) to its new destination and from 
there handle everything.

Any hints on how to achieve this?
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to handle a 301 redirect request from a client?

2022-06-24 Thread Patrick Karton
if something is still  appended to From User thats means you updated $fU also 
before update it in branch_route.

surely you update $fU also in route[IMP_ROUTE_TO_CORE] thats why.

all updates to $fU must be done once otherwise you concatenate it.






De : Benoît Panizzon 
Envoyé : vendredi 24 juin 2022 16:10
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] How to handle a 301 redirect request from a client?

Salut Patrick

> since you want to apply manipulation on the new user received from
> 300 response you need to use branch_route for this. thats one of his
> purpose.

So that is what I attempted...

if (t_check_status("(301)|(302)") or (t_branch_timeout() and 
!t_branch_replied())) {
t_on_branch("TEST_BR");
route(IMP_ROUTE_TO_CORE);
exit;
}

branch_route[TEST_BR]
{
xlog("L_ERR", "$cfg(route): HERE WE ARE\n"); # To verify via logs this 
was triggered
$fU = "+41441234567";
}

I still end up with +41441234567 being appended to the From User HF I
have set previously for the invite towards the CPE which then replied
with 302

For better understanding, this is the situation:

We want to use e164 on the 'core' as this is the format we have defined
as 'normalized' format and which is also in use on IC to other TSP.
Only to/from the customer CPE we translate numbers to from the mostly
used national format.

Basically replacing +41 with '0' and + with '00' and the other way round.

So in this example From user is +41441234567 and location lookup is performed.
Then From user is translated to 0441234567 to reflect the national
notation and display the callerID in a usual format to the customer.

But when I get a 302 from that CPE and need to send the call back on an
IC. I want to preserve the original From: username and translate
it back to e164. But as I already have set $fU = "0441234567" when I do an
additional $fU = "+41441234567" in branch_route, I and up with

From: "John Doe" <0441234567+41441234...@sip.example.com>;user=phone

as setting $fU is APPENDING. No matter if I do this on a failure route
or a branch route.

Or did I miss a trick? :-)

Would I need to also use branch_route to send the initial call towards
the customer CPE and set the 'localized' $fU there? Is this message
being dropped and the original one used again when triggering
failure_route? Is this how it's supposed to work?

--
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 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to handle a 301 redirect request from a client?

2022-06-24 Thread Patrick Karton
its not a good idea to make manipulations in failure_route like you do.

in failure_route you are working on the initial request.

since you want to apply manipulation on the new user received from 300 response 
you need to use branch_route for this. thats one of his purpose.


De : Benoît Panizzon 
Envoyé : vendredi 24 juin 2022 15:06
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] How to handle a 301 redirect request from a client?

Salut Patrick

Thank you for your help.

I ended up with this:

if (t_check_status("(301)|(302)") or (t_branch_timeout() and 
!t_branch_replied())) {
$avp(destination) = $(T_rpl($ct){tobody.user});
xlog("L_ERR", "$cfg(route): Got: $avp(rstatus) $avp(rtext) 
towards $T_rpl($ct) => $avp(destination)");
append_hf("IMP-cust-profile-code: $var(cust_profile_code)\r\n");
$var(newai) = "";
append_hf("P-Asserted-Identity: $var(newai)\r\n");
$var(newdi) = ";reason=unknown";
append_hf("IMP-screening: no\r\n" );
append_hf("Diversion: $var(newdi)\r\n");
route(IMP_TRANSLATE_INBOUND);
route(IMP_ROUTE_TO_CORE);
exit;
}

It sort of starts working, but I'm not there yet :-)

The next issue I am right now bumping into is that I translated some
'write is append' header towards the CPE ($tU and $fU) and now I am
translating them again (as if they were sent from the CPE) and writing
to them again so I end up with the original destination and new
destination concatenated.

Is there a way to 'reset' the $tU and $fU after setting them once, so
that they can be set again?

--
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 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to handle a 301 redirect request from a client?

2022-06-24 Thread Patrick Karton
you can do whatever manipulation you want in branch_route

just update what you want in branch_route either $rd , $rp.

no ,need to change $rU because it alreay contains the new user returned from 
300.

t_on_failure("REDIRECT");

failure_route[REDIRECT] {
if(!t_check_status("3[0-9][0-9]")) {
exit;
}
if ( get_redirects("3:1") ) {
t_on_branch("REDIRECT_ADD_DIVERSION");
t_relay();
}

}

branch_route[REDIRECT_ADD_DIVERSION]{
$rd = 'PUT_THE_DOMAIN_YOU_WANT_OR_THE_ONE_BEFORE_300';
# $rU = no need to change it ; it already contains the new user from 300
add_diversion("user-busy");
add_diversion("user-busy", "$ru");
}

____
De : Benoît Panizzon 
Envoyé : vendredi 24 juin 2022 14:11
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] How to handle a 301 redirect request from a client?

Hi Gang

> if ( get_redirects("3:1") ) {
> t_on_branch("REDIRECT_ADD_DIVERSION");
> t_relay();

Not working quite as expected. This seems to consider the complete URI
received from the customer. I am only interested in the 'user' part
containing the new target phone number not some bogus domain sent by the
customer.

Is the 302 reply contact uri or user put in any PV I could access and do
some manipulations before sending on (like translating from local
notation to e164).

So I also attempted to extract the username from $ct only to notice,
that $ct contains the value of the INVITE contact header sent to the
customer, not of the 302 reply contact header.

--
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 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Releasing v5.6.1

2022-06-24 Thread Patrick Karton
Hello Daniel ,

this is not  a directly response to your mail but how much time  will it take 
to include this 5.6.1 version on debian repository after the release ?

Thanks.

De : sr-users  de la part de 
Daniel-Constantin Mierla 
Envoyé : vendredi 24 juin 2022 09:35
À : Kamailio (SER) - Users Mailing List ; Kamailio 
(SER) - Devel Mailing List 
Objet : [SR-Users] Releasing v5.6.1

Hello,

I am considering to release Kamailio v5.6.1 (out of branch 5.6) on
Wednesday, July 6, 2022 -- in about 1 week and a half from now. If
anyone is aware of issues not yet on the bug tracker, report them there
asap in order to have a better chance to be fixed.

Cheers,
Daniel

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- 
www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to handle a 301 redirect request from a client?

2022-06-24 Thread Patrick Karton
t_on_failure("REDIRECT");

failure_route[REDIRECT] {
if(!t_check_status("3[0-9][0-9]")) {
exit;
}
if ( get_redirects("3:1") ) {
t_on_branch("REDIRECT_ADD_DIVERSION");
t_relay();
}

}

branch_route[REDIRECT_ADD_DIVERSION] {
add_diversion("user-busy");
add_diversion("user-busy", "$ru");
}

____
De : sr-users  de la part de Patrick 
Karton 
Envoyé : vendredi 24 juin 2022 11:21
À : Benoît Panizzon 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] How to handle a 301 redirect request from a client?

No the uac_redirect module does not create Diversion header.

but thats not a big issue.

we can still use branch_route to add a Diversion with diversion module before 
forwarding the request.
____
De : Benoît Panizzon 
Envoyé : vendredi 24 juin 2022 11:11
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] How to handle a 301 redirect request from a client?

Hi Patrick

> You can check the uac_redirect module.
>
> Not sure it handle Diversion header but its a good starting point.

Merci! That sounds promising I'll try. The ability to add a 'reason'
let's me hope it might create a Diversion header.

--
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 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to handle a 301 redirect request from a client?

2022-06-24 Thread Patrick Karton
No the uac_redirect module does not create Diversion header.

but thats not a big issue.

we can still use branch_route to add a Diversion with diversion module before 
forwarding the request.

De : Benoît Panizzon 
Envoyé : vendredi 24 juin 2022 11:11
À : Patrick Karton 
Cc : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] How to handle a 301 redirect request from a client?

Hi Patrick

> You can check the uac_redirect module.
>
> Not sure it handle Diversion header but its a good starting point.

Merci! That sounds promising I'll try. The ability to add a 'reason'
let's me hope it might create a Diversion header.

--
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 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to handle a 301 redirect request from a client?

2022-06-24 Thread Patrick Karton
Hello,You can check the uac_redirect module.Not sure it handle Diversion header but its a good starting point.Le 24 juin 2022 07:46, Benoît Panizzon  a écrit :Hi Gang
We want to allow customers to send a 301 to forward calls to mimik ISDN
PARE.
The new destination is in the contact user HF.
So I guess I could handle this on the t_on_failure route to catch that
error, extract the contact user HF, craft an appropriate Diversion
header and send the call on.
But I wonder, is there maybe a module which handles all of this out of
the box?
-- 
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
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] update PAI Header User part

2022-06-21 Thread Patrick Karton
hello is there a cleaner/fastest way to update PAI header user part other than 
using subst

i come up with
subst('/^P-Asserted-Identity:(.*)(sip|sips|tel|tels):([^@]*)@([a-zA-Z0-9.]+)(.*)$/P-Asserted-Identity:\1\2:$var(newPAIUser)@\4\5/ig');

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Record-Route advertised per branch

2022-06-16 Thread Patrick Karton
It only work for request route.Le 16 juin 2022 14:19, Ilie Soltanici  a écrit :Hello,Thank you, added it now - still the same, unfortunately.Regards,On Thu, 16 Jun 2022 at 13:29, Sergiu Pojoga  wrote:Have you tried calling t_save_lumps() before relaying, even before RR?On Thu, Jun 16, 2022 at 7:59 AM Ilie Soltanici  wrote:Hello,Is there any way to advertise a different IP Address in the Record-Route header individually per branch?I have a setup here - where Kamailio is listening on 2 different interfaces: Local IP and External IP. At the moment if the packet is coming through the internal interface - I'm checking where is it going to and based on that I'm setting the Record-Route header accordingly - and everything works well, except when I have multiple branches: one going through the internal interface and another one through the external one, so in this case, I have to add a different record-route header per branch, by doing this in the branch_route - it's not working and getting the error: w_record_route_advertised_address(): Double attempt to record-route.What would be another way to accomplish this?
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] problem getting the rtp packet source port

2022-06-13 Thread Patrick Karton
Thé port in SDP is the port from which the endpoint wants to receive. It is not mandatory to use the same port to send traffic.Unless you know the endpoint will use symetric rtp. There is no way to know in avance which port it will use to send.Le 12 juin 2022 14:40, hamed r  a écrit :hello i have problem on receive source port rtp packet client-ip = 5.202.105.250 server-ip = 194.5.205.33 client2-ip = 188.212.241.46In the 200 ok packet from client2 ,The value 4002 is set in the audio portI expect rtp packets to be sent to me from source port 4002, but these packets are sent to me from another source , which is port 55755 in the image below, and I just opened this port(4002) in the firewall.If I turn on my firewall service, all packets will be dropped. I have to have this firewallthanks for help me
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] remove headers with less than 5 characters with textops

2022-06-07 Thread Patrick Karton
in fact it was just example when i said 5.

i just wondered if the remove_hf_re function understands that regular 
expression.

it seems the regular expression that we can use with that function is limited. 
i did not look in details in source code right now.

De : sr-users  de la part de Ben Kaufman 

Envoyé : mardi 7 juin 2022 17:00
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] remove headers with less than 5 characters with textops


I know it’s not really a direct answer to your question, but wouldn’t that 
remove the Cseq: header.  Are you sure that’s desirable?



Ben Kaufman



From: sr-users  On Behalf Of Patrick Karton
Sent: Tuesday, June 7, 2022 9:59 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] remove headers with less than 5 characters with textops



Hello



im trying to textops module  to remove headers with name length less than 5 
characters with regular expression but it seems impossible or the module does 
not handle $ char



remove_hf_re("^.{1,5}$")


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] remove headers with less than 5 characters with textops

2022-06-07 Thread Patrick Karton
Hello

im trying to textops module  to remove headers with name length less than 5 
characters with regular expression but it seems impossible or the module does 
not handle $ char


remove_hf_re("^.{1,5}$")

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] DNS Failover try next destination on receiving code other than 503

2022-05-30 Thread Patrick Karton
Thanks for Feedback.I will create PR.Le 30 mai 2022 11:28, Daniel-Constantin Mierla  a écrit :
Hello,


probably you have to extend the C code to support this feature,
  if there is no module parameter in tm module that allows
  customization at this moment.


Cheers,
  Daniel



On 23.05.22 16:48, Patrick Karton
  wrote:


  
  
  
Hello, 
  

  
  
im using DNS Failover and everything works well except i would
like to try other resolved ips when i receive a 408 from the
previous ones
  

  
  
As far as i know only a received 503 will trigger next
destinations and there is no config parameters in tm module to
handle that behaviour.
  

  
  
so how can i implement it ?
  

  
  
set a failure route before relay and just call t_relay() after
again ? 
  

  
  
also is there a way in failure route to know how many
destinations are left to exit failure route.
  

  
  
Thanks for help.
  
  
  __
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
  
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] TOPOS + RE-INVITE problem - Contact IP not updated

2022-05-24 Thread Patrick Karton
Hello,

try to apply this setting for topos module.

modparam("topos", "contact_mode", 0)

10.10.70.70 does not put the full contact uri in the R-INVITE.

try put contact_mode to 0 (and not 1 or 2).


De : sr-users  de la part de c c 

Envoyé : lundi 23 mai 2022 08:38
À : sr-users@lists.kamailio.org 
Objet : [SR-Users] TOPOS + RE-INVITE problem - Contact IP not updated


It seems that TOPOS is not working properly on RE-INVITE and stop masking IP 
and contact on some RE-INVITE.

When a RE-INVITE is send with Kamailio IP as Request-URI TOPOS is not operating.


Note : we are using the HTABLE trick to rewrite $ru and match the call but we 
would need to have TOPOS re-evaluating the dialog once done.


We use a standard configuration with 2 modifications.

  1.  in route[DISPATCH] to set the HTABLE

if(is_method("INVITE")) {
 $sht(ct=>$ci::$ft) = $sel(contact.uri);
}


  1.  in route[WITHINDLG] to find the call if R-URI = myself

if(has_totag() && uri==myself) {
 if($sht(ct=>$ci::$ft) != $null && $T_reply_code > 400) $shtex(ct=>$ci::$ft) = 
10 ;
  if($sht(ct=>$ci::$tt) != $null) {
 $ru = $sht(ct=>$ci::$tt);
 if (is_method("BYE")) $shtex(ct=>$ci::$tt) = 10 ;
 route(RELAY);
  }
}


As you can see in the PCAP the RE-INVITE goes directly to calling stating with 
the Contact not updated and the 200 OK is also sent to called party with wrong 
Contact info too.




This behavior breaks the BYE procedure.


Any advice ?


Chris
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] get and store destination ip address and port that the request will be sent to

2022-05-23 Thread Patrick Karton
Hello is there a way or pseudo var to get ip address & port  that the request 
will be sent to and save it in to another variable.

i want a way to get it to store it.

im not able to save it with to_ip and to_port of the onsend_route.

TThanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] DNS Failover try next destination on receiving code other than 503

2022-05-23 Thread Patrick Karton
Hello,

im using DNS Failover and everything works well except i would like to try 
other resolved ips when i receive a 408 from the previous ones

As far as i know only a received 503 will trigger next destinations and there 
is no config parameters in tm module to handle that behaviour.

so how can i implement it ?

set a failure route before relay and just call t_relay() after again ?

also is there a way in failure route to know how many destinations are left to 
exit failure route.

Thanks for help.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] sanity_reply not available from sanity module

2022-05-04 Thread Patrick Karton
Thanks!


De : Daniel-Constantin Mierla 
Envoyé : mercredi 4 mai 2022 14:35
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] sanity_reply not available from sanity module


Hello,


indeed there was an error with the exported function name. I pushed a commit 
for it:


  * 
https://github.com/kamailio/kamailio/commit/7c52c05b09abdf2cf754cc02f3a1ea0855cdedd0


It will be backported.


Cheers,
Daniel


On 04.05.22 15:55, Patrick Karton wrote:
Hello ,

the sanity_reply function from sanity is not available in kamailio script so i 
get an error when i want to use it.


in the module source i see this

static cmd_export_t cmds[] = {

{"sanity_check", (cmd_function)w_sanity_check, 0, 0, 0,

REQUEST_ROUTE|ONREPLY_ROUTE},

{"sanity_check", (cmd_function)w_sanity_check, 1, fixup_igp_null, 0,

REQUEST_ROUTE|ONREPLY_ROUTE},

{"sanity_check", (cmd_function)w_sanity_check, 2, fixup_igp_igp, 0,

REQUEST_ROUTE|ONREPLY_ROUTE},

{"sanity_check", (cmd_function)w_sanity_reply, 0, 0, 0,

REQUEST_ROUTE|ONREPLY_ROUTE},

{"bind_sanity",  (cmd_function)bind_sanity,0, 0, 0, 0 },

{0, 0, 0, 0, 0, 0}

};


why is sanity_check linked again in w_sanity_reply ?

is this an error ?

i want to setup specific responses for some errors and let the default ones 
from module work as usual.

Thanks.



__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Online
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] sanity_reply not available from sanity module

2022-05-04 Thread Patrick Karton
Hello ,

the sanity_reply function from sanity is not available in kamailio script so i 
get an error when i want to use it.


in the module source i see this

static cmd_export_t cmds[] = {
{"sanity_check", (cmd_function)w_sanity_check, 0, 0, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_check, 1, fixup_igp_null, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_check, 2, fixup_igp_igp, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"sanity_check", (cmd_function)w_sanity_reply, 0, 0, 0,
REQUEST_ROUTE|ONREPLY_ROUTE},
{"bind_sanity",  (cmd_function)bind_sanity,0, 0, 0, 0 },
{0, 0, 0, 0, 0, 0}
};


why is sanity_check linked again in w_sanity_reply ?

is this an error ?

i want to setup specific responses for some errors and let the default ones 
from module work as usual.

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] FAILEDOVER ROUTING WITH DNS SRV Records

2022-05-04 Thread Patrick Karton
Hello,

im using kamaliio 5.5.3 and I want to do failedover routing with DNS SRV 
Records.

in my lab i have these SRV records

;; ANSWER SECTION:
voip.oov-obs-tools-dev.svc.cluster.local. 5 IN SRV 0 33 5060 
100-68-7-74.voip.oov-obs-tools-dev.svc.cluster.local.
voip.oov-obs-tools-dev.svc.cluster.local. 5 IN SRV 0 33 5060 
100-68-7-75.voip.oov-obs-tools-dev.svc.cluster.local.
voip.oov-obs-tools-dev.svc.cluster.local. 5 IN SRV 0 33 5060 
100-68-7-76.voip.oov-obs-tools-dev.svc.cluster.local.

;; ADDITIONAL SECTION:
100-68-7-76.voip.oov-obs-tools-dev.svc.cluster.local. 5 IN A 100.68.7.76
100-68-7-75.voip.oov-obs-tools-dev.svc.cluster.local. 5 IN A 100.68.7.75
100-68-7-74.voip.oov-obs-tools-dev.svc.cluster.local. 5 IN A 100.68.7.74


my config script

use_dns_cache=on
use_dns_failover=on
dns_srv_lb=on

$du = "voip.oov-obs-tools-dev.svc.cluster.local";

t_relay();


after t_relay() is called the INVITE is send to one the 3 ips corresponding to 
fqdn but if the first ip does not
send response. the two others ips are not tried.


what i want is that all the ips resolved are tried until one succeeds.

is there something to do to achieve that ?
do i need to interact with failure route to try next ips ?


Thanks for help.


version: kamailio 5.5.3 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, 
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, 
DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, 
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, 
TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, 
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 10.2.1





__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] pseudo var for From and To sip uri port

2022-03-21 Thread Patrick Karton
Thanks for uac tip 

De : Henning Westerholt 
Envoyé : lundi 21 mars 2022 09:13
À : Kamailio (SER) - Users Mailing List 
Cc : Patrick Karton 
Objet : RE: pseudo var for From and To sip uri port


Hello,



you can get the header port with “transformations”.



If you want to set the port for From/To, you should not use the PVs but the uac 
module functions for this. You should also think about why you want to do this, 
as the From/To are coming from the user agent and are not set from the proxy 
usually. 



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com<https://gilawa.com/>



From: sr-users  On Behalf Of Patrick Karton
Sent: Sunday, March 20, 2022 2:57 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] pseudo var for From and To sip uri port



Hello,



is there a pseudo variable for setting only sip uri port for From and To 
Headers like  $rp for R-URI ?






__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] pseudo var for From and To sip uri port

2022-03-20 Thread Patrick Karton
Hello,

is there a pseudo variable for setting only sip uri port for From and To 
Headers like  $rp for R-URI ?



__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] dialog module issues (BYE Request issued) when topos is enabled

2022-03-19 Thread Patrick Karton
i am using dialog and topos module.

but i have an issue i think with topos module.

When topos module is disabled all the call flow works well but when i enable 
topos module i have this weird behaviour :

after Caller sends BYE and complete the call , i receive later a BYE Request 
issued by the dialog module towards Caller and Callee.


Does anyone already had that issue ?


modparam("dialog", "enable_stats", 1)
modparam("dialog", "hash_size", 1024)
modparam("dialog", "rr_param", "oovdlg")
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "db_mode", 0)
modparam("dialog", "db_update_period", 30)
modparam("dialog", "wait_ack", 1)
modparam("dialog", "ka_timer", 10)
modparam("dialog", "ka_interval", 30)
modparam("dialog", "profiles_with_value", "concurrent_calls")
modparam("dialog", "end_timeout", 180)
modparam("dialog", "default_timeout", 3600)
modparam("dialog", "noack_timeout", 90)
modparam("dialog", "early_timeout", 300)
modparam("dialog", "dlg_extra_hdrs", "X-OOV-Hint: Dlg-hit\r\n")


modparam("db_text", "db_mode", 0)
modparam("db_text", "emptystring", 0)
modparam("db_text", "file_buffer_size", 8192)
modparam("db_text", "max_result_rows", 1000)

modparam("topos", "storage", "db")
modparam("topos", "db_url", "text:///home/sbc/database")
modparam("topos", "mask_callid", 0)
modparam("topos", "sanity_checks", 0)
modparam("topos", "contact_mode", 0)
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Can Kamailio send an ACK to a final response?

2022-03-19 Thread Patrick Karton
No.Kamailio can not genrate an ACK by itself.it just forwards or absorb thème.Le 19 mars 2022 12:34, Marrold  a écrit :Hello,I'm exploring using Kamailio as a dumb edge proxy, and as such I want to keep things as lean as possible.In some scenarios I would like the "core" proxies to signal to the edge that a request should be dropped without a response. This could be with a custom header in the reply or perhaps a 444 response ( nginx uses this internally to drop a request without responding )I have discovered that if I drop the response in the reply_route, the edge proxy doesn't send an ACK and keeps retransmitting the request until it times out, at which point it sends a 408 back to the UA.Is there any way to ACK the response from the core and destroy the transaction?ThanksMatthew
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] help to configure topos module configuration

2022-03-18 Thread Patrick Karton
Thanks,

I finally made it work.

i only needed to remove contact_host param  so that the Contact headers for 
Caller and Callee are taken from Record-Route.

De : sr-users  de la part de Marrold 

Envoyé : vendredi 18 mars 2022 10:42
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] help to configure topos module configuration

Hi,

I recently looked into this and I don't believe it's possible.

As a work around I used split DNS and an FQDN in the contact.

Thanks
Matthew

On Fri, Mar 18, 2022 at 8:44 AM Patrick Karton 
mailto:patrickar...@hotmail.com>> wrote:

Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee


I have this set up of kamailio with 2 interfaces.

i use topos module for topology hiding and what i want to do is to
send  external_IP in Contact Header of request relayed to Callee and internal_IP
in Contact Header of response relayed to Caller.

i noticed that :
when i use topos module with contact_mode to 0
all Record-Route and Caller Via Header are removed and thats great.
but i dont find way to put 2 different  ip addresses in Request and Response 
Contact Header?

when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore 
removed thats bad for
topology hiding. And its seems we can not use $xavu(_tps_=>contact_host)  
parameter of module
to put 2 different  ip addresses in Request and Response Contact Header.


What i want is :

- remove all Record-Route and Caller Via Header for request like when 
contact_mode to 0

- and put 2 different  ip addresses in Request and Response Contact Header

is it possible to achieve it ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] MESSAGE METHOD - Send message to a softphone - $uac_req

2022-03-18 Thread Patrick Karton
hello,

generally speaking, from and to Header are not used for routing sip request.

in kamailio the relayed request is based on ip:port of request uri ($ru pseudo 
var ) or destination ($du var ).

so the ip:port of the next element to reach must be in $ru or $du.

in your case it is in the ruri.


De : sr-users  de la part de Youssef 
Boujraf 
Envoyé : vendredi 18 mars 2022 17:40
À : sr-users@lists.kamailio.org 
Objet : Re: [SR-Users] MESSAGE METHOD - Send message to a softphone - $uac_req

Finally,

Send Message : Softphone 1 -> Kamailio -> Softphone 2

I fixed myself the issue to forward the MESSAGE through kamailio and get reply 
correct status.

Now just need some understanding why on a message generated from Kamailio, I 
need to reach the physical ip address of the callee instead of this contact fe 
: 9919995@domain ?

Best Regards


On Friday, March 18, 2022 03:18 CET, "Youssef Boujraf" 
 wrote:


Dear,

I am expecting to send a MESSAGE METHOD to a softphone supporting MESSAGE.

route[SEND_MESSAGE_METHOD]{
$uac_req(method)="MESSAGE";
$uac_req(ruri)="sip:192.168.1.29:5066";
$uac_req(furi)="sip:192.168.1.41:5066";
// $uac_req(turi)="sip:9919995@192.168.1.24:5066";
$uac_req(callid)=$(mb{s.md5});
$uac_req(hdrs)="Subject: Emergency Alert\r\n";
$uac_req(hdrs)=$uac_req(hdrs) + "Content-Type: text/plain\r\n";
$uac_req(body)="Emergency Message";
$uac_req(evroute)=1;
uac_req_send();

}

event_route[uac:reply] {
xlog("MY_SEVERITY"," -- MESSAGE PROCESSING - received reply code is: 
$uac_req(evcode)\n");
}

My use case is to send message from KAMAILIO -> SOFTPHONE

kamailio : sip:192.168.1.41:5066 (physical ip address of the kamailio)
softphone : sip:192.168.1.29:5066 (physical ip address of the softphone)

$uac_req(ruri)="sip:192.168.1.29:5066";
$uac_req(furi)="sip:192.168.1.41:5066";
// $uac_req(turi)="sip:9919995@192.168.1.24:5066";


The sip capture :

2022/03/18 02:20:58.947603 192.168.1.29:5066 -> 192.168.1.41:5066
MESSAGE sip:192.168.1.41:5066@192.168.1.41:5066 SIP/2.0
Via: SIP/2.0/UDP 
192.168.1.29:5066;branch=z9hG4bKPj40bcc72324d647f8b96fc783e181f611
Max-Forwards: 70
From: "codec7-private" 
;tag=416038ac55514b439a5cd5894770c3d8
To: 
Call-ID: 9381648157be49ff845b5e413dc9a95c
CSeq: 9148 MESSAGE
User-Agent: MicroSIP/3.20.7
Content-Type: text/plain
Content-Length: 3

;-)

2022/03/18 02:20:58.948822 192.168.1.41:5066 -> 192.168.1.29:5066
SIP/2.0 200 Stored
Via: SIP/2.0/UDP 
192.168.1.29:5066;branch=z9hG4bKPj40bcc72324d647f8b96fc783e181f611;rport=5066
From: "codec7-private" 
;tag=416038ac55514b439a5cd5894770c3d8
To: 
;tag=cbfe6543b9079987bce3b5b9a0d1195a.b63b503b
Call-ID: 9381648157be49ff845b5e413dc9a95c
CSeq: 9148 MESSAGE
Server: kamailio (5.5.4 (x86_64/linux))
Content-Length: 0


Now, if I want to use his username@domain

kamailio : sip:192.168.1.41:5066 (physical ip address of the kamailio)
softphone : sip:9919997@192.168.1.41:5066

The message is sent to kamailio itself not to the softphone

2022/03/18 02:30:39.285927 192.168.1.41:5060 -> 192.168.1.41:5066
MESSAGE sip:9919997@192.168.1.41:5066 SIP/2.0
Via: SIP/2.0/UDP 
xxx.xxx.xxx.210:5060;branch=z9hG4bK0cb8.a39b5180.0
To: 
From: ;tag=b4685c5f5f5fc30f8dcbb49a48fe9e25-4047894c
CSeq: 10 MESSAGE
Call-ID: 4cb973823835008ec4b20d1c67d9fb84
Max-Forwards: 70
Content-Length: 17
User-Agent: kamailio (5.5.4 (x86_64/linux))
Subject: Emergency Alert
Content-Type: text/plain

Emergency Message

2022/03/18 02:30:39.287590 192.168.1.41:5066 -> 192.168.1.41:5060
SIP/2.0 200 Stored
Via: SIP/2.0/UDP 
xxx.xxx.xxx.210:5060;branch=z9hG4bK0cb8.a39b5180.0;rport=5060;received=192.168.1.41
To: 
;tag=cbfe6543b9079987bce3b5b9a0d1195a.76a88393
From: ;tag=b4685c5f5f5fc30f8dcbb49a48fe9e25-4047894c
CSeq: 10 MESSAGE
Call-ID: 4cb973823835008ec4b20d1c67d9fb84
Server: kamailio (5.5.4 (x86_64/linux))
Content-Length: 0


- finaly, how to relay the message from one softphone to another softphone 
through kamailio proxy?

Best Regards

--
Youssef


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] help to configure topos module configuration

2022-03-18 Thread Patrick Karton

Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee


I have this set up of kamailio with 2 interfaces.

i use topos module for topology hiding and what i want to do is to
send  external_IP in Contact Header of request relayed to Callee and internal_IP
in Contact Header of response relayed to Caller.

i noticed that :
when i use topos module with contact_mode to 0
all Record-Route and Caller Via Header are removed and thats great.
but i dont find way to put 2 different  ip addresses in Request and Response 
Contact Header?

when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore 
removed thats bad for
topology hiding. And its seems we can not use $xavu(_tps_=>contact_host)  
parameter of module
to put 2 different  ip addresses in Request and Response Contact Header.


What i want is :

- remove all Record-Route and Caller Via Header for request like when 
contact_mode to 0

- and put 2 different  ip addresses in Request and Response Contact Header

is it possible to achieve it ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] enable topology hiding on one side or dynamic ip in topoh module Contact and Via Header

2022-03-18 Thread Patrick Karton

Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee


I have this set up of kamailio with 2 interfaces.

i use topos module for topology hiding and what i want to do is to
send  external_IP in Contact Header of request relayed to Callee and internal_IP
in Contact Header of response relayed to Caller.

i noticed that :
when i use topos module with contact_mode to 0
all Record-Route and Caller Via Header are removed and thats great.
but i dont find way to put 2 different  ip addresses in Request and Response 
Contact Header?

when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore 
removed thats bad for
topology hiding. And its seems we can not $xavu(_tps_=>contact_host)  parameter 
of module
to put 2 different  ip addresses in Request and Response Contact Header.


What i want is :
- remove all Record-Route and Caller Via Header for request like when 
contact_mode to 0
- and put 2 different  ip addresses in Request and Response Contact Header

is it possible to achieve it ?

Thanks.

De : sr-users  de la part de Patrick 
Karton 
Envoyé : jeudi 17 mars 2022 19:39
À : Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Objet : Re: [SR-Users] enable topology hiding on one side or dynamic ip in 
topoh module Contact and Via Header

Thanks For the link.

but i dont know exactly how to make the topos module work!

i have enabled it on my kamailio script but i have some issues.


  *in the relayed request, received Via is removed and only kamailio Via is 
left. thats great for topology hiding.

  *   in the relayed request there is no Contact Header. i assume the module 
removes the received one  and must insert a new one .

loadmodule "db_text.so"
loadmodule "topos.so"


modparam("db_text", "db_mode", 0)
modparam("db_text", "emptystring", 0)
modparam("db_text", "file_buffer_size", 8192)
modparam("db_text", "max_result_rows", 1000)

modparam("topos", "storage", "db")
modparam("topos", "db_url", "text:///home/sbc/database")
modparam("topos", "mask_callid", 0)
modparam("topos", "sanity_checks", 0)
modparam("topos", "contact_host", "127.0.0.1")
modparam("topos", "contact_mode", 0)


### topos_t file table
id(int,auto) rectime(int,null) x_context(string,null) s_method(string,null) 
s_cseq(string,null) a_callid(string,null) a_uuid(string,null) 
b_uuid(string,null) direction(int,null) x_via(string,null) 
x_vbranch(string,null) x_rr(string,null) y_rr(string,null) s_rr(string,null) 
x_uri(string,null) a_contact(string,null) b_contact(string,null) 
as_contact(string,null) bs_contact(string,null) x_tag(string,null) 
a_tag(string,null) b_tag(string,null) a_srcaddr(string,null) 
b_srcaddr(string,null) a_socket(string,null) b_socket(string,null)

do i need to insert some records in table or the module does it ?




De : Henning Westerholt 
Envoyé : jeudi 17 mars 2022 17:37
À : Kamailio (SER) - Users Mailing List 
Cc : Patrick Karton 
Objet : RE: enable topology hiding on one side or dynamic ip in topoh module 
Contact and Via Header


Hello,



have a look at this event route: 
https://kamailio.org/docs/modules/5.5.x/modules/topos.html#topos.e.msg_outgoing



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com<https://gilawa.com/>



From: sr-users  On Behalf Of Patrick Karton
Sent: Wednesday, March 16, 2022 7:28 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] enable topology hiding on one side or dynamic ip in topoh 
module Contact and Via Header



Hello ,



im using kamailio with two interfaces external and internal.



i need a way either to :



· enable topoh hiding only when outgoing interface is external ( mask 
contact and Via ip only when ougoing interface is external

· or if it is not possible to enable it only in one direction.i want to 
know how to configure dynamic(for example in xavp or avp) ip to put in Contact 
and Via when topoh is enabled.

i see that the 'mask_ip' parameter of topoh module is a string. so we can not 
set a dynamic value here unfortunately.



Thanks




__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] enable topology hiding on one side or dynamic ip in topoh module Contact and Via Header

2022-03-17 Thread Patrick Karton
Thanks For the link.

but i dont know exactly how to make the topos module work!

i have enabled it on my kamailio script but i have some issues.


  *in the relayed request, received Via is removed and only kamailio Via is 
left. thats great for topology hiding.

  *   in the relayed request there is no Contact Header. i assume the module 
removes the received one  and must insert a new one .

loadmodule "db_text.so"
loadmodule "topos.so"


modparam("db_text", "db_mode", 0)
modparam("db_text", "emptystring", 0)
modparam("db_text", "file_buffer_size", 8192)
modparam("db_text", "max_result_rows", 1000)

modparam("topos", "storage", "db")
modparam("topos", "db_url", "text:///home/sbc/database")
modparam("topos", "mask_callid", 0)
modparam("topos", "sanity_checks", 0)
modparam("topos", "contact_host", "127.0.0.1")
modparam("topos", "contact_mode", 0)


### topos_t file table
id(int,auto) rectime(int,null) x_context(string,null) s_method(string,null) 
s_cseq(string,null) a_callid(string,null) a_uuid(string,null) 
b_uuid(string,null) direction(int,null) x_via(string,null) 
x_vbranch(string,null) x_rr(string,null) y_rr(string,null) s_rr(string,null) 
x_uri(string,null) a_contact(string,null) b_contact(string,null) 
as_contact(string,null) bs_contact(string,null) x_tag(string,null) 
a_tag(string,null) b_tag(string,null) a_srcaddr(string,null) 
b_srcaddr(string,null) a_socket(string,null) b_socket(string,null)

do i need to insert some records in table or the module does it ?




De : Henning Westerholt 
Envoyé : jeudi 17 mars 2022 17:37
À : Kamailio (SER) - Users Mailing List 
Cc : Patrick Karton 
Objet : RE: enable topology hiding on one side or dynamic ip in topoh module 
Contact and Via Header


Hello,



have a look at this event route: 
https://kamailio.org/docs/modules/5.5.x/modules/topos.html#topos.e.msg_outgoing



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com<https://gilawa.com/>



From: sr-users  On Behalf Of Patrick Karton
Sent: Wednesday, March 16, 2022 7:28 PM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] enable topology hiding on one side or dynamic ip in topoh 
module Contact and Via Header



Hello ,



im using kamailio with two interfaces external and internal.



i need a way either to :



· enable topoh hiding only when outgoing interface is external ( mask 
contact and Via ip only when ougoing interface is external

· or if it is not possible to enable it only in one direction.i want to 
know how to configure dynamic(for example in xavp or avp) ip to put in Contact 
and Via when topoh is enabled.

i see that the 'mask_ip' parameter of topoh module is a string. so we can not 
set a dynamic value here unfortunately.



Thanks




__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamctl or kamcmd way to enable/disable sections of configs

2022-03-17 Thread Patrick Karton
Hello,Maybe you can use htable to store Dynamic configuration. And change value of htable value from kamcmd.Le 16 mars 2022 15:29, Joshua Young  a écrit :#!define MYSECTION"    route("1");    #!ifdef MYSECTION    route("2");    #!endifI have declarations like this in my kamailio.cfg file, and was curious if there was a way to use kamctl or kamcmd to enable or disable the defined value in a live system. Or if there is another approach/mechanism I'm unaware of the "Serial Forking Based on Q Value" stuff and use it in other parts, but I am looking for a general way to manually manipulate routing on live system using cli commands if possible...Thanks,Joshua
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] enable topology hiding on one side or dynamic ip in topoh module Contact and Via Header

2022-03-16 Thread Patrick Karton
Hello ,

im using kamailio with two interfaces external and internal.

i need a way either to :


  *   enable topoh hiding only when outgoing interface is external ( mask 
contact and Via ip only when ougoing interface is external
  *   or if it is not possible to enable it only in one direction.i want to 
know how to configure dynamic(for example in xavp or avp) ip to put in Contact 
and Via when topoh is enabled.

i see that the 'mask_ip' parameter of topoh module is a string. so we can not 
set a dynamic value here unfortunately.

Thanks


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] properly removing First Via header received

2022-03-16 Thread Patrick Karton
i tried also with remove_hf_value  but still the same problem.

sometimes i have a line only with
";received=x.x.x.x;rport="

and sometimes even worse the next header does not start on a new line like this
";received=x.x.x.x;rport=Max-Forward: 70"

De : sr-users  de la part de James Browne 

Envoyé : mercredi 16 mars 2022 12:30
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] properly removing First Via header received

I don't know about the lump, but maybe try remove_hf_value instead.
This should also work if/when multiple Via values are comma-separated
in a single header field.
https://www.kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.f.remove_hf_value

James

On Wed, 16 Mar 2022 at 08:19, Patrick Karton  wrote:
>
> i want to remove the First Via Header received from uac to kamailio.
>
> so in my script i use remove_hf("Via") but in the relayed request  i see that 
>  ";received=x.x.x.x;rport=" is left without any header before it.
>
> i think internally kamailio adds a lump before i call the remove_hf function.
>
> how to do it properly ?
>
> Thanks
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] properly removing First Via header received

2022-03-16 Thread Patrick Karton
i want to remove the First Via Header received from uac to kamailio.

so in my script i use remove_hf("Via") but in the relayed request  i see that  
";received=x.x.x.x;rport=" is left without any header before it.

i think internally kamailio adds a lump before i call the remove_hf function.

how to do it properly ?

Thanks
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] clean an easy way to get sip uri of contact header

2022-03-15 Thread Patrick Karton
Yes just want to know how to strip down display name in Contact header if present.Le 15 mars 2022 01:54, Alex Balashov  a écrit :Won’t $ct vs $hdr(Contact) address that?—Sent from mobile, with due apologies for brevity and errors.On Mar 14, 2022, at 8:51 PM, Patrick Karton  wrote:






hello,




i want a generic way to get the sip uri in contact header.




for example if 




Contact: Sipp ;tid=700




i want a way to get both




 (without header param)


and 

;tid=700 (with header param)





Thanks.


__Kamailio - Users Mailing List - Non Commercial Discussions  * sr-users@lists.kamailio.orgImportant: keep the mailing list in the recipients, do not reply only to the sender!Edit mailing list options or unsubscribe:  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] clean an easy way to get sip uri of contact header

2022-03-14 Thread Patrick Karton
hello,

i want a generic way to get the sip uri in contact header.

for example if

Contact: Sipp ;tid=700

i want a way to get both

 (without header param)
and
;tid=700 (with header param)

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] limit the length of Via branch parameter

2022-03-14 Thread Patrick Karton
hello ,
he one that is generated from Kamailio

De : Henning Westerholt 
Envoyé : lundi 14 mars 2022 11:39
À : Kamailio (SER) - Users Mailing List 
Cc : Patrick Karton 
Objet : RE: limit the length of Via branch parameter


Hello,



not sure why one wants to do this, but anyway - do you mean the value that is 
processed from Kamailio, or the one that is generated from Kamailio?



Cheers,



Henning



--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com<https://gilawa.com/>



From: sr-users  On Behalf Of Patrick Karton
Sent: Sunday, March 13, 2022 10:44 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] limit the length of Via branch parameter



Hello,



i would like to know if there is a way or option to limit the length of the 
value of branch parameter in Via header ?



Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] limit the length of Via branch parameter

2022-03-13 Thread Patrick Karton
Hello,

i would like to know if there is a way or option to limit the length of the 
value of branch parameter in Via header ?

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP server port service cannot be changed from default value (5060)

2022-02-16 Thread Patrick Karton
There is no need to change source code for that.First you have to change kamailio default port liké said before.Second you restart kamailio.Third you make sure your client connects kamailio on the new port you provided and not the default one.Use sngprep to troubleshoot.Le 16 févr. 2022 13:00, bayu p  a écrit :When I changed the kamailio.cfg, then I performed tcpdump to tracing, found that "Type: 3 (Destination unreachable) Code: 3 (Port unreachable)".That means, the defined port is cannot be reached by the client sip server side.Any other process to change the port ?Thanks & RegardsPada tanggal Rab, 16 Feb 2022 pukul 18.53 bayu p <bayupm...@gmail.com> menulis:It is my basic process, that  changes default port in kamailio.cfg, then I share this problem here. Does need more procedure to change the port besides assign other port in kamailio.cfg ?How to compile the source, because there are many parameter use 5060 port in the source, it may need more changes further.Pada tanggal Rab, 16 Feb 2022 pukul 15.59 Patrick Karton <patrickar...@hotmail.com> menulis:






you have to explicitly set the new port you want.




listen=udp:127.0.0.1:7070 



De : sr-users <sr-users-boun...@lists.kamailio.org> de la part de bayu p <bayupm...@gmail.com>
Envoyé : mercredi 16 février 2022 09:16
À : sr-users@lists.kamailio.org <sr-users@lists.kamailio.org>
Objet : [SR-Users] SIP server port service cannot be changed from default value (5060)
 












Hello Experts,
Please help me to change port service from default 5060 port into other port due to security reason. Since I have change port in kamailio.cfg file, but services cannot fly normally
 that shown client unable login online (status not online).

Besides, I need to run the kamailio services after install default kamailio, I have not found where procedure found in this installation process on github.com/kamailio. 
Could you please share if there another steps of compiling Kamailio source, install, deploy process, and running command for this specific installation process?
Thanks
Gb













__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SIP server port service cannot be changed from default value (5060)

2022-02-16 Thread Patrick Karton
you have to explicitly set the new port you want.

listen=udp:127.0.0.1:7070

De : sr-users  de la part de bayu p 

Envoyé : mercredi 16 février 2022 09:16
À : sr-users@lists.kamailio.org 
Objet : [SR-Users] SIP server port service cannot be changed from default value 
(5060)



Hello Experts,

Please help me to change port service from default 5060 port into other port 
due to security reason. Since I have change port in kamailio.cfg file, but 
services cannot fly normally that shown client unable login online (status not 
online).
[image]

Besides, I need to run the kamailio services after install default kamailio, I 
have not found where procedure found in this installation process on 
github.com/kamailio.

Could you please share if there another steps of compiling Kamailio source, 
install, deploy process, and running command for this specific installation 
process?

Thanks
Gb
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] get kamailio sip processes id

2022-02-09 Thread Patrick Karton
thanks a lot Daniel. great and more clean output indeed.

De : Daniel-Constantin Mierla 
Envoyé : mercredi 9 février 2022 08:24
À : Kamailio (SER) - Users Mailing List ; Patrick 
Karton 
Objet : Re: [SR-Users] get kamailio sip processes id


The approach is similar, but you can use 'kamctl ps' which returns a json 
document that can be parsed with jq for a more structured navigation.


Cheers,
Daniel


On 08.02.22 17:39, Patrick Karton wrote:
thanks a lot james.

De : sr-users 
<mailto:sr-users-boun...@lists.kamailio.org>
 de la part de James Browne <mailto:ja...@frideo.com>
Envoyé : mardi 8 février 2022 13:31
À : Kamailio (SER) - Users Mailing List 
<mailto:sr-users@lists.kamailio.org>
Objet : Re: [SR-Users] get kamailio sip processes id

Maybe you can try the `kamcmd ps` command. Something like this may work for you.

top -c -p $(kamcmd ps | grep receiver | awk '{ print $1 }' | xargs | tr ' ' ,)

James

On Tue, 8 Feb 2022 at 11:26, Patrick Karton 
<mailto:patrickar...@hotmail.com> wrote:
>
> hello,
> as we are all aware kamailio create a lot of processes for many tasks.
>
> im using kamailio in kubernetes and i would like to monitor only sip 
> processes with top command.
>
> i only need a way to get only kamailio sip processes id (udp receiver that 
> handle sip request) .
>
> but i dont knwo how to get it.
>
> top -c -p id1,id2,id3,id4
>
>
> Thanks
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-08 Thread Patrick Karton
Thanks again Alex :). I will make further read about FOSS licensing.Using open source at large scale is relatively new for us.We have Law department so WE will discuss in more details about it.Thanks again.Le 8 févr. 2022 20:57, Alex Balashov  a écrit :Then you should not have any problem using SEMS as an input into commercial services. :-) As a general rule, open-source licensing is not concerned with _how_ you can use the software, only how you distribute it and/or any modifications you make to it. Think, for example, about something like Linux, which you are likely also using. You are free to use Linux to make money.
However, it is surprising that you are not familiar with the GPL (GNU General Public Licence), since it is all but ubiquitous and probably the most popular open-source licence out there. I would take the time to research it, get familiar with its basic premises, and, of course, consult a lawyer if you have any truly esoteric questions.
— Alex
> On Feb 8, 2022, at 2:50 PM, Patrick Karton  wrote:
> 
> Thanks for explanation Alex.
> 
> Im a service provider.
> 
> Le 8 févr. 2022 20:14, Alex Balashov  a écrit :
> You can Google the meaning of “per se” for a richer explanation, but it means “as such” or “the thing itself”. :-)
> 
> “Per se” in this context means that you cannot sell SEMS as a _software_ product, because it is free software.
> 
> Are you a service provider, or are you in the business of selling software for service providers?
> 
> > On Feb 8, 2022, at 12:37 PM, Patrick Karton  wrote:
> > 
> > Hi Alex,
> > 
> > Thank you very much for the response.
> > 
> > i did not understand your last phrase "You may not, however, sell SEMS per se". what is per se ? 
> > 
> > as i said i only want to use the sems sbc module and eventually annoucement and ivr module. but thats all the functionnality i want from sems.
> >
> 
> -- 
> Alex Balashov | Principal | Evariste Systems LLC
> 
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
> 
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> 
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>  * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-08 Thread Patrick Karton
Thanks for explanation Alex.Im a service provider.Le 8 févr. 2022 20:14, Alex Balashov  a écrit :You can Google the meaning of “per se” for a richer explanation, but it means “as such” or “the thing itself”. :-)
“Per se” in this context means that you cannot sell SEMS as a _software_ product, because it is free software. 
Are you a service provider, or are you in the business of selling software for service providers?
 
> On Feb 8, 2022, at 12:37 PM, Patrick Karton  wrote:
> 
> Hi Alex,
> 
> Thank you very much for the response.
> 
> i did not understand your last phrase "You may not, however, sell SEMS per se". what is per se ? 
> 
> as i said i only want to use the sems sbc module and eventually annoucement and ivr module. but thats all the functionnality i want from sems.
> 
-- 
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SEMS license with kamailio and rtpengine

2022-02-08 Thread Patrick Karton
Hi Alex,

Thank you very much for the response.

i did not understand your last phrase "You may not, however, sell SEMS per se". 
what is per se ?

as i said i only want to use the sems sbc module and eventually annoucement and 
ivr module. but thats all the functionnality i want from sems.



De : sr-users  de la part de Alex Balashov 

Envoyé : mardi 8 février 2022 17:51
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] SEMS license with kamailio and rtpengine

You do not need to purchase a licence to incorporate SEMS into a service 
platform to sell telephony to customers. You may not, however, sell SEMS per se.

That’s the very, very simple version.

—
Sent from mobile, with due apologies for brevity and errors.

On Feb 8, 2022, at 11:47 AM, Patrick Karton  wrote:


Hello im using kamailio and rtpengine to build a custom SBC.

i was using freeswitch as my b2bua but i noticed a lot of issues when cps and 
simultaneous increased so i tried sems and i have better results.

But i do not really understand sems license so i want to know if i can use it.

i read from sems github


"It is licensed under dual
 license terms, the GPL (v2+) and proprietary license. This
 program is released under the GPL with the additional exemption
 that compiling, linking, and/or using OpenSSL is allowed.

 For a license to use SEMS under non-GPL terms, please contact
 FRAFOS GmbH at i...@frafos.com"

so my question is if i want to use sems as b2bua with kamailio and rtpengine 
and make profit of it do i need to purchase a license each time i want to sell 
it to a customer ?


Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
 * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
 * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] SEMS license with kamailio and rtpengine

2022-02-08 Thread Patrick Karton
Hello im using kamailio and rtpengine to build a custom SBC.

i was using freeswitch as my b2bua but i noticed a lot of issues when cps and 
simultaneous increased so i tried sems and i have better results.

But i do not really understand sems license so i want to know if i can use it.

i read from sems github


"It is licensed under dual
 license terms, the GPL (v2+) and proprietary license. This
 program is released under the GPL with the additional exemption
 that compiling, linking, and/or using OpenSSL is allowed.

 For a license to use SEMS under non-GPL terms, please contact
 FRAFOS GmbH at i...@frafos.com"

so my question is if i want to use sems as b2bua with kamailio and rtpengine 
and make profit of it do i need to purchase a license each time i want to sell 
it to a customer ?


Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] get kamailio sip processes id

2022-02-08 Thread Patrick Karton
thanks a lot james.

De : sr-users  de la part de James Browne 

Envoyé : mardi 8 février 2022 13:31
À : Kamailio (SER) - Users Mailing List 
Objet : Re: [SR-Users] get kamailio sip processes id

Maybe you can try the `kamcmd ps` command. Something like this may work for you.

top -c -p $(kamcmd ps | grep receiver | awk '{ print $1 }' | xargs | tr ' ' ,)

James

On Tue, 8 Feb 2022 at 11:26, Patrick Karton  wrote:
>
> hello,
> as we are all aware kamailio create a lot of processes for many tasks.
>
> im using kamailio in kubernetes and i would like to monitor only sip 
> processes with top command.
>
> i only need a way to get only kamailio sip processes id (udp receiver that 
> handle sip request) .
>
> but i dont knwo how to get it.
>
> top -c -p id1,id2,id3,id4
>
>
> Thanks
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] get kamailio sip processes id

2022-02-08 Thread Patrick Karton
hello,
as we are all aware kamailio create a lot of processes for many tasks.

im using kamailio in kubernetes and i would like to monitor only sip processes 
with top command.

i only need a way to get only kamailio sip processes id (udp receiver that 
handle sip request) .

but i dont knwo how to get it.

top -c -p id1,id2,id3,id4


Thanks
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] use $var or $avp in ds_list_exists & ds_select dispatcher function

2022-01-19 Thread Patrick Karton
Hello im using kamailio 5.5.3

and im trying to use pseudo vars in ds_list_exists and ds_select function but 
it does not work.

ds_list_exists  return -2

with ds_list_exists("6") it works

$var(dset)=6 or $avp(dset)=6 it does not work

ds_list_exists("$var(dset)") --> return -2
ds_list_exists("$avp(dset)") --> return -2


Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Experiences with Kamailio on Debian 11 Bullseye

2021-11-17 Thread Patrick Karton
Hello,I am using kamailio 5.5.2 on debian 11 bullseye on kubernetes.Not Seen any issue so far.Le 17 nov. 2021 21:42, George Diamantopoulos  a écrit :Hello all,I'm also considering an upgrade in the coming weeks, but I'm a little reluctant seeing there has been no feedback from anyone on the list.I'll try it with an instance I can quickly restore back first and let the list know if there's any unexpected issues (or not).If anyone's tried the bullseye builds and hasn't had any problems, I'd like to hear from them too :-).BR,GeorgeOn Tue, 26 Oct 2021 at 09:35, Daniel-Constantin Mierla  wrote:Hello,

has anyone experienced issues with Kamailio running on Debian 11 Bullseye?

It's now more than 2 months since Debian 11 release and I wonder if
people started to migrate to it for production systems.

So far I did only basic tests on it, although I have a Debian Testing
that I used for compilation and simple tests during the past several
months before Debian 11 release.

If someone discovers issues or changes in behaviour with various
libraries or applications/database servers, report them to the tracker
to try to address them as soon as possible.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
Nov 08-11, 2021 (Europe Timezone) - Nov 22-25, 2021 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/


__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] configuration dispatcher

2021-11-17 Thread Patrick Karton
Hello the kamailio dispatcher module is well documented.You just need to set UP your asterisk IP/PORT in the database of dispatcher module.And then select which algorithm you want to use for dispatching based on your need.Le 17 nov. 2021 17:11, sondes boughdiri  a écrit :Hi ALL I need to configure dispatcher call to the server asterisk i have a 21 server and i need to dispatcher call to all the server AGENT> kamailio    --->asterisk1                                      --->  asteisk2                                       --->      -                                     --->       -                                      --->      -                                            --->    asterisk21please i need your helpTHANK YOU
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] ki_jsonrpcs_dispatch(): invalid json doc

2021-11-16 Thread Patrick Karton
hello ,

im using kamailio and rtpengine.

i use rtpengine with rtp timeout as follows

rtpengine  --timeout=240 --silent-timeout=600 
-b2b-url=http://kamailioip:5060/RPC --xmlrpc-format=2

and in kamailio

modparam("jsonrpcs", "pretty_format", 1)
modparam("jsonrpcs", "transport", 7)

event_route[xhttp:request] {

if ($hu =~ "^/RPC") {
jsonrpc_dispatch();
xhttp_reply("200", "OK", "text/xml", 
"OK");
exit;
}

}


rtpengine successfully reaches the rpc endpoint but i have an error on the 
jsonrpcs module

43(50) ERROR: jsonrpcs [jsonrpcs_mod.c:1275]: ki_jsonrpcs_dispatch(): invalid 
json doc [[

dlg.terminate_dlg

1-10@172.22.244.139
10SIPpTag091
8U173ymKpc1pp


]]


and so the dialog module can not ends the call


Kamailio 5.5.2 on debian bullseye
rtpengine 10.0.1.8 on debian bullseye

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] xavp functionnality in htable

2021-11-15 Thread Patrick Karton
Thanks Alex.I will take a look.Le 15 nov. 2021 20:54, Alex Balashov  a écrit :No, but you could easily store nonscalar values like JSON blobs and deserialise them with the help of the jansson module, and iterate through array values.—Sent from mobile, with due apologies for brevity and errors.On Nov 15, 2021, at 2:42 PM, Patrick Karton  wrote:






hello,




do we have something like xavp in htable or a module that implements having multiple values in stack like xavp but not tied to transaction.




i want data be seen by all processes but with the functionnality of xavp.




Thanks.


__Kamailio - Users Mailing List - Non Commercial Discussions  * sr-users@lists.kamailio.orgImportant: keep the mailing list in the recipients, do not reply only to the sender!Edit mailing list options or unsubscribe:  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] xavp functionnality in htable

2021-11-15 Thread Patrick Karton
hello,

do we have something like xavp in htable or a module that implements having 
multiple values in stack like xavp but not tied to transaction.

i want data be seen by all processes but with the functionnality of xavp.

Thanks.
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


  1   2   >