[SR-Users] Re: dlg_req_within kamailio 5.7 CSeq values

2023-11-16 Thread Jonathan Hunter via sr-users
Hi Carsten,

Thanks for writing its a great feature 

Appreciate yours and Daniels reponse.

Thanks

Jon

From: Carsten Bock via sr-users 
Sent: 13 November 2023 13:26
To: Kamailio (SER) - Users Mailing List 
Cc: Carsten Bock 
Subject: [SR-Users] Re: dlg_req_within kamailio 5.7 CSeq values

Hi,

I wrote it ;-)

You could check a branch with some changes regarding CSeq Handling:
https://github.com/kamailio/kamailio/tree/carstenbock/dialog_cseq_update/src/modules

I use my branch to send frequent in-dialog INFO messages (USSD, 
https://github.com/carstenbock/ussd-poc), which works fine. I haven't found the 
time yet to do more testing, so I haven't done a PR for it yet.

Thanks,
Carsten

--
Carsten Bock I Chief Technology Innovation Officer & Founder


ng-voice GmbH

Trostbrücke 1 I 20457 Hamburg I Germany
T +49 1511 5942983 I www.ng-voice.com<http://www.ng-voice.com/>

Registry Office at Local Court Hamburg, HRB 120189
Managing Directors: Dr. David Bachmann, Carsten Bock, Quirin Maderspacher


Am Mo., 13. Nov. 2023 um 11:46 Uhr schrieb Daniel-Constantin Mierla via 
sr-users mailto:sr-users@lists.kamailio.org>>:

Hello,

On 10.11.23 15:57, Jonathan Hunter via sr-users wrote:



Hi All,



I am playing around with the dlg_req_within to send  a REINVITE to toggle some 
rtpengine parameters and this works fine.



The first time I use the command after tracking the dialog, it sends a REINVITE 
with an incremented CSEQ value.



However when I issue it again, it sends another REINVITE but with the same CSEQ 
value, so again 2 for example.



How can you ensure its incremented or can you set it somehow?



As would like to generate at least 2 reinvites per dialog.

I haven't implemented this function, so I am not sure if it leverages it, but 
the dialog module has a modparam to enable cseq tracking, which is used by uac 
module for auth functionality. If you haven't set that parameter, try with it 
and see if it does the magic.

Cheers,
Daniel

--
Daniel-Constantin Mierla (@ asipto.com<http://asipto.com/>)
twitter.com/miconda<http://twitter.com/miconda> -- 
linkedin.com/in/miconda<http://linkedin.com/in/miconda>
Kamailio Consultancy and Development Services


__
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:
__
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] dlg_req_within kamailio 5.7 CSeq values

2023-11-10 Thread Jonathan Hunter via sr-users

Hi All,

I am playing around with the dlg_req_within to send  a REINVITE to toggle some 
rtpengine parameters and this works fine.

The first time I use the command after tracking the dialog, it sends a REINVITE 
with an incremented CSEQ value.

However when I issue it again, it sends another REINVITE but with the same CSEQ 
value, so again 2 for example.

How can you ensure its incremented or can you set it somehow?

As would like to generate at least 2 reinvites per dialog.

Many thanks

Jon

Sent from Mail for Windows


__
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] topos xavu_field_contact_host kamailio 5.5

2021-12-03 Thread Jonathan Hunter
Hi Karsten,

Ok cool thanks for that I am testing now.

I also have the fun on a NAT’d interface so I am playing with setting 
advertised address as well!

Makes sense thank you for the reply.

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Karsten Horsmann<mailto:khorsm...@gmail.com>
Sent: 03 December 2021 21:13
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

Hi Jonathan,


I placed a new route and set the user part


$xavu(_tps_=>a_contact) = "sbc_a";$xavu(_tps_=>b_contact) = 
"sbc_b";

And for special cases I set the to user part to the To user for some silly pbx 
boxes.
Can also be that in this mode without setting a/b_contact the normal contact 
user part passes through, didn't test that.


Kind regards
Karsten Horsmann

Jonathan Hunter mailto:hunter...@hotmail.com>> schrieb 
am Fr., 3. Dez. 2021, 20:03:
Hi Karsten,

Thank you for your reply.

Thats interesting I will test it, so I see in the documentation it states;



$xavu(_tps_=>a_contact) = "...";

In your case what did you enter so that it just sets the user part?

I assume I could just set it to $sel(contact.uri.user) for example and it would 
then add that and the appropriate listen/ socket value ?

Many thanks!

Jon
Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C0a4a663af88843289b5108d9b6a1c8d2%7C84df9e7fe9f640afb435%7C1%7C0%7C637741628244288948%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=VSgYRMddRbDW2G33ooYGms%2B3Hk8Cqq%2Bd%2B2DhWZk2s3o%3D=0>
 for Windows

From: Karsten Horsmann<mailto:khorsm...@gmail.com>
Sent: 03 December 2021 18:49
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

Hi Jonathan,



I use topos in mode 2 (rewrite user part)
and then it sets the domain part to the listen / socket value AFAIK if you only 
set user part and did not specify the contact host.



#!ifdef WITH_TOPOS
modparam("topos", "storage", "redis")
modparam("topos_redis", "serverid", "CFG_REDIS_NAME")
modparam("topos", "branch_expire", 14400) modparam("topos", 
"dialog_expire", 14400)
modparam("topos", "clean_interval", 60)
#!ifdef WITH_TOPOS_CONTACTmodparam("topos", "contact_mode", 
2)
modparam("topos", "xavu_cfg", "_tps_")modparam("topos", 
"xavu_field_contact_host", "contact_host")
modparam("topos", "xavu_field_a_contact", "a_contact")
modparam("topos", "xavu_field_b_contact", "b_contact")
#!endif
#!endif


Jonathan Hunter mailto:hunter...@hotmail.com>> schrieb 
am Fr., 3. Dez. 2021, 10:50:
Hello Henning,

Ok appreciate the confirmation, could this be a possible option moving forwards 
with the module?

In the meantime I assume other approach is hash tables as I have done before?

Thanks again appreciate your response.

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C0a4a663af88843289b5108d9b6a1c8d2%7C84df9e7fe9f640afb435%7C1%7C0%7C637741628244298942%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=RhHREw2f0afQZCS24A0%2BrIDshbsVO7%2F%2FFDb0e27MJNc%3D=0>
 for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 09:36
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Jonathan,

I see, so you want basically configure different contact addresses for A-side 
and B-side of the call.
This is probably not supported from topos right now, its only possible for the 
user name.

Cheers,

Henning

From: Jonathan Hunter mailto:hunter...@hotmail.com>>
Sent: Friday, December 3, 2021 10:07 AM
To: Henning Westerholt mailto:h...@gilawa.com>>; Kamailio 
(SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Henning,

Yes your comments make perfect sense.

Essentially I want to change the contact in-dialog as essentially the initial 
INVITE comes in on a private interface from the carrier, and then goes out on a 
public interface to the subscriber, so the subscriber only see’s public IP 
address in the SIP contact host and responds to i

Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

2021-12-03 Thread Jonathan Hunter
Hi Karsten,

Thank you for your reply.

Thats interesting I will test it, so I see in the documentation it states;



$xavu(_tps_=>a_contact) = "...";

In your case what did you enter so that it just sets the user part?

I assume I could just set it to $sel(contact.uri.user) for example and it would 
then add that and the appropriate listen/ socket value ?

Many thanks!

Jon
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Karsten Horsmann<mailto:khorsm...@gmail.com>
Sent: 03 December 2021 18:49
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

Hi Jonathan,



I use topos in mode 2 (rewrite user part)
and then it sets the domain part to the listen / socket value AFAIK if you only 
set user part and did not specify the contact host.



#!ifdef WITH_TOPOS
modparam("topos", "storage", "redis")
modparam("topos_redis", "serverid", "CFG_REDIS_NAME")
modparam("topos", "branch_expire", 14400) modparam("topos", 
"dialog_expire", 14400)
modparam("topos", "clean_interval", 60)
#!ifdef WITH_TOPOS_CONTACTmodparam("topos", "contact_mode", 
2)
modparam("topos", "xavu_cfg", "_tps_")modparam("topos", 
"xavu_field_contact_host", "contact_host")
modparam("topos", "xavu_field_a_contact", "a_contact")
modparam("topos", "xavu_field_b_contact", "b_contact")
#!endif
#!endif


Jonathan Hunter mailto:hunter...@hotmail.com>> schrieb 
am Fr., 3. Dez. 2021, 10:50:
Hello Henning,

Ok appreciate the confirmation, could this be a possible option moving forwards 
with the module?

In the meantime I assume other approach is hash tables as I have done before?

Thanks again appreciate your response.

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C0c191eafe0044b48f33d08d9b68d9ba4%7C84df9e7fe9f640afb435%7C1%7C0%7C637741541592586515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=YoP2dawL1mtfkJEF7%2FodNV%2F4ZqR59S4hP8vrxoDLAYo%3D=0>
 for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 09:36
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Jonathan,

I see, so you want basically configure different contact addresses for A-side 
and B-side of the call.
This is probably not supported from topos right now, its only possible for the 
user name.

Cheers,

Henning

From: Jonathan Hunter mailto:hunter...@hotmail.com>>
Sent: Friday, December 3, 2021 10:07 AM
To: Henning Westerholt mailto:h...@gilawa.com>>; Kamailio 
(SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Henning,

Yes your comments make perfect sense.

Essentially I want to change the contact in-dialog as essentially the initial 
INVITE comes in on a private interface from the carrier, and then goes out on a 
public interface to the subscriber, so the subscriber only see’s public IP 
address in the SIP contact host and responds to it, and the carrier only see’s 
the private IP address in the contact host so they respond to the appropriate 
IP address, so its topology hiding IP addresses across interfaces.

I have done a similar thing with hash tables before and using 
record_route_preset but was hoping I could do a similar thing with  topos and 
leave it to manage the dialog.

Does that make sense?

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C0c191eafe0044b48f33d08d9b68d9ba4%7C84df9e7fe9f640afb435%7C1%7C0%7C637741541592596515%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=s6gmsIXlPOi8AD6V72Tthph7styztfyxmcDkENAHjS8%3D=0>
 for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 08:55
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Jonathan,

Usually, you want to set the appropriate contact host in the initial INVITE and 
then the dialog stays “with” this contact. This can be done by just setting the 
xavp and is the way the topology module usually works.

Maybe you can elaborate why you want to chan

Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

2021-12-03 Thread Jonathan Hunter
Hello Henning,

Ok appreciate the confirmation, could this be a possible option moving forwards 
with the module?

In the meantime I assume other approach is hash tables as I have done before?

Thanks again appreciate your response.

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 09:36
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Jonathan,

I see, so you want basically configure different contact addresses for A-side 
and B-side of the call.
This is probably not supported from topos right now, its only possible for the 
user name.

Cheers,

Henning

From: Jonathan Hunter 
Sent: Friday, December 3, 2021 10:07 AM
To: Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Henning,

Yes your comments make perfect sense.

Essentially I want to change the contact in-dialog as essentially the initial 
INVITE comes in on a private interface from the carrier, and then goes out on a 
public interface to the subscriber, so the subscriber only see’s public IP 
address in the SIP contact host and responds to it, and the carrier only see’s 
the private IP address in the contact host so they respond to the appropriate 
IP address, so its topology hiding IP addresses across interfaces.

I have done a similar thing with hash tables before and using 
record_route_preset but was hoping I could do a similar thing with  topos and 
leave it to manage the dialog.

Does that make sense?

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7Cda431ec621ba41fbdc9808d9b6405251%7C84df9e7fe9f640afb435%7C1%7C0%7C637741209642376789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=%2BQPOZ8SFkU8xuYFBFeWoBFcpUql%2BB%2BQJSuj2Br34Ogk%3D=0>
 for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 08:55
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Jonathan,

Usually, you want to set the appropriate contact host in the initial INVITE and 
then the dialog stays “with” this contact. This can be done by just setting the 
xavp and is the way the topology module usually works.

Maybe you can elaborate why you want to change the contact in-dialog, or even 
in one transaction (onreply_route example below).

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7Cda431ec621ba41fbdc9808d9b6405251%7C84df9e7fe9f640afb435%7C1%7C0%7C637741209642386785%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=sDERfenJGfPJvyTzMhJ60StHZMWdLdMR5KU08bKdiRc%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7Cda431ec621ba41fbdc9808d9b6405251%7C84df9e7fe9f640afb435%7C1%7C0%7C637741209642396776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=PktAtpeqjhgOZArfl5IIK%2FZ0E%2FfIhNjh%2BiAC1%2F6WHy0%3D=0>

From: Jonathan Hunter mailto:hunter...@hotmail.com>>
Sent: Friday, December 3, 2021 9:28 AM
To: Henning Westerholt mailto:h...@gilawa.com>>; Kamailio 
(SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

HI Henning,

Yes sorry late night  and thank you for reply.

Yes I conditionally want to set it, I have tried this but not sure it has 
worked to this point hence why I am wondering if I am missing something.

Say for example I have request coming in from carrier on 10.10.10.10 interface 
and want to route to subscriber who is registered, so flow is simple its just;

Carrier--->kamailio-->subscriber

On branch route out I have set the contact_host to a particular IP address, 
however on_reply I want to change it again to another IP address, can I do that 
using the $xavu ?

So branch sees contact host as one IP address, and onreply I change it to 
another IP.

As currently if I set the Host it stays the same on both sides.

Does that make sense?

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7Cda431ec621ba41fbdc9808d9b6405251%7C84df9e7fe9f640afb435%7C1%7C0%7C637741209642396776%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV

Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

2021-12-03 Thread Jonathan Hunter
Hello Henning,

Yes your comments make perfect sense.

Essentially I want to change the contact in-dialog as essentially the initial 
INVITE comes in on a private interface from the carrier, and then goes out on a 
public interface to the subscriber, so the subscriber only see’s public IP 
address in the SIP contact host and responds to it, and the carrier only see’s 
the private IP address in the contact host so they respond to the appropriate 
IP address, so its topology hiding IP addresses across interfaces.

I have done a similar thing with hash tables before and using 
record_route_preset but was hoping I could do a similar thing with  topos and 
leave it to manage the dialog.

Does that make sense?

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 08:55
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello Jonathan,

Usually, you want to set the appropriate contact host in the initial INVITE and 
then the dialog stays “with” this contact. This can be done by just setting the 
xavp and is the way the topology module usually works.

Maybe you can elaborate why you want to change the contact in-dialog, or even 
in one transaction (onreply_route example below).

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7Cb74ad073c33d41b7361908d9b63aa6fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637741185290034034%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=qnxxMfZZZu02afBIWDuFd%2BD8aWsONREQKi8NRzSwsCw%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7Cb74ad073c33d41b7361908d9b63aa6fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637741185290044023%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=NUTMsNTDmv6tedyftRo%2FTZPrtD2ng2SCusJtmbM4ADs%3D=0>

From: Jonathan Hunter 
Sent: Friday, December 3, 2021 9:28 AM
To: Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Subject: RE: topos xavu_field_contact_host kamailio 5.5

HI Henning,

Yes sorry late night  and thank you for reply.

Yes I conditionally want to set it, I have tried this but not sure it has 
worked to this point hence why I am wondering if I am missing something.

Say for example I have request coming in from carrier on 10.10.10.10 interface 
and want to route to subscriber who is registered, so flow is simple its just;

Carrier--->kamailio-->subscriber

On branch route out I have set the contact_host to a particular IP address, 
however on_reply I want to change it again to another IP address, can I do that 
using the $xavu ?

So branch sees contact host as one IP address, and onreply I change it to 
another IP.

As currently if I set the Host it stays the same on both sides.

Does that make sense?

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7Cb74ad073c33d41b7361908d9b63aa6fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637741185290044023%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=xcxgA%2BwHWf00Cf64A4Mre4duzS38by1VjvZjARsvQnY%3D=0>
 for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 08:08
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello,

There might be a spelling error below, you probably mean:

“$xavu(_tps_=>contact_host) = "2.2.2.2";
And this works fine but obviously sets the contact_host to 2.2.2.2 across both 
interfaces, I ideally want it to change between 10.10.10.10 and 2.2.2.2.”

Not sure if I understand your question correctly. You could just conditionally 
set the contact host to the different values, depending on your configuration 
logic.

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7Cb74ad073c33d41b7361908d9b63aa6fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637741185290054020%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=2vUSFj4kZ3BNtsPpIhMnGf2QvjiMVvofZyQRhBdh3l8%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7Cb74ad073c33d41b7361908d9b63aa6fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637741185290054020

Re: [SR-Users] topos xavu_field_contact_host kamailio 5.5

2021-12-03 Thread Jonathan Hunter
HI Henning,

Yes sorry late night  and thank you for reply.

Yes I conditionally want to set it, I have tried this but not sure it has 
worked to this point hence why I am wondering if I am missing something.

Say for example I have request coming in from carrier on 10.10.10.10 interface 
and want to route to subscriber who is registered, so flow is simple its just;

Carrier--->kamailio-->subscriber

On branch route out I have set the contact_host to a particular IP address, 
however on_reply I want to change it again to another IP address, can I do that 
using the $xavu ?

So branch sees contact host as one IP address, and onreply I change it to 
another IP.

As currently if I set the Host it stays the same on both sides.

Does that make sense?

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Henning Westerholt<mailto:h...@gilawa.com>
Sent: 03 December 2021 08:08
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>
Subject: RE: topos xavu_field_contact_host kamailio 5.5

Hello,

There might be a spelling error below, you probably mean:

“$xavu(_tps_=>contact_host) = "2.2.2.2";
And this works fine but obviously sets the contact_host to 2.2.2.2 across both 
interfaces, I ideally want it to change between 10.10.10.10 and 2.2.2.2.”

Not sure if I understand your question correctly. You could just conditionally 
set the contact host to the different values, depending on your configuration 
logic.

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7C9e49a0c54f4b421b298c08d9b63407ce%7C84df9e7fe9f640afb435%7C1%7C0%7C637741156850497697%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=PyHmeQ57OikxzbdWyDIb2vlko7ySRvsIxHZdER%2BgIjI%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7C9e49a0c54f4b421b298c08d9b63407ce%7C84df9e7fe9f640afb435%7C1%7C0%7C637741156850507690%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=ISPv7j%2FXIzictm8TSevcMqy1Ap4mlTrcfi8H%2B5LzWgA%3D=0>

From: sr-users  On Behalf Of Jonathan 
Hunter
Sent: Friday, December 3, 2021 8:57 AM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] topos xavu_field_contact_host kamailio 5.5

Hi All,

I was wondering if anyone can help, and advise me if I am missing something 
when using topos in an environment where I have more than one interface for 
kamailio.

Essentially I would like to set the contact_host to 2 different values 
depending on the flow of the SIP requests, as we have a private LAN 
interconnect for example 10.10.10.10, and a public interconnect using 2.2.2.2 
(for example).

I notice there is xavu for A-side contact and B-side contact, but what about 
just the contact host?

As I have set for example;

modparam("topos", "xavu_cfg", "_tps_")
modparam("topos", "xavu_field_contact_host", "contact_host")
...
$xavu(_tps_=>contact_host) = "2.2.2.2";

And this works fine but obviously sets the contact_host to 8.8.8.8 across both 
interfaces, I ideally want it to change between 10.10.10.10 and 2.2.2.2.

How can I set more than one contact_host $xavu that topos can use? As my 
understanding is you can only set $xavu once, so is there another way to 
manipulate the contact_host on requests coming in and out on different 
interfaces?  I assume I am missing something? :)

Thanks in advance

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C9e49a0c54f4b421b298c08d9b63407ce%7C84df9e7fe9f640afb435%7C1%7C0%7C637741156850507690%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000=TFVwLrGks3dvDMd1crtTyZyHcdrs1I3%2Bhu2suO%2BX9ZU%3D=0>
 for Windows


__
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] topos xavu_field_contact_host kamailio 5.5

2021-12-03 Thread Jonathan Hunter
Hi All,

I was wondering if anyone can help, and advise me if I am missing something 
when using topos in an environment where I have more than one interface for 
kamailio.

Essentially I would like to set the contact_host to 2 different values 
depending on the flow of the SIP requests, as we have a private LAN 
interconnect for example 10.10.10.10, and a public interconnect using 2.2.2.2 
(for example).

I notice there is xavu for A-side contact and B-side contact, but what about 
just the contact host?

As I have set for example;

modparam("topos", "xavu_cfg", "_tps_")
modparam("topos", "xavu_field_contact_host", "contact_host")
...
$xavu(_tps_=>contact_host) = "2.2.2.2";

And this works fine but obviously sets the contact_host to 8.8.8.8 across both 
interfaces, I ideally want it to change between 10.10.10.10 and 2.2.2.2.

How can I set more than one contact_host $xavu that topos can use? As my 
understanding is you can only set $xavu once, so is there another way to 
manipulate the contact_host on requests coming in and out on different 
interfaces?  I assume I am missing something? :)

Thanks in advance

Jon

Sent from Mail for Windows

__
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] UAC module register originating from private interface on server

2021-06-02 Thread Jonathan Hunter
Hi Yuriy,

Thank you for the reply! Yes I had seen that but not in 4.4, I assume that’s 
version 5 and above?

Thanks

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Yuriy Gorlichenko<mailto:ovoshl...@gmail.com>
Sent: 02 June 2021 14:16
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC module register originating from private interface 
on server

Ahh sorry I did not see the version of kamailio you are using...

On Wed, 2 Jun 2021, 14:58 Yuriy Gorlichenko, 
mailto:ovoshl...@gmail.com>> wrote:
There is a socket field in the uacreg table you can use to manage which 
interface to use to send register messages from.

On Wed, 2 Jun 2021, 14:15 Jonathan Hunter, 
mailto:hunter...@hotmail.com>> wrote:
Hi,

I am working with the UAC module and trying to register with providers, and can 
see
that kamailio keeps sending the REGISTER from the private IP address socket on 
the server (eth0).

Is it possible to set the default socket or send socket for the REGISTER 
message that gets sent out via kamailio?

I am running version 4.4.7.

I notice SIP OPTIONS are being sent out from the public IP address (eth1) on 
the server (as I have set socket in dispatcher) and was hoping for same 
behaviour with uac module.

Please can anyone advise?

Many thanks

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C312a3925a8d54d6321c708d925c8a2fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637582365917513280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=irrJuXGA%2FeZ%2FeoIAxawrKaYu%2BK6IcGwop2zCBdxujwQ%3D=0>
 for Windows 10

__
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<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users=04%7C01%7C%7C312a3925a8d54d6321c708d925c8a2fe%7C84df9e7fe9f640afb435%7C1%7C0%7C637582365917523351%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=SpDEUsw%2B1mcg4vUkJeT2jKbw63lInmdWa2AC5r%2FsiHQ%3D=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


[SR-Users] UAC module register originating from private interface on server

2021-06-02 Thread Jonathan Hunter
Hi,

I am working with the UAC module and trying to register with providers, and can 
see
that kamailio keeps sending the REGISTER from the private IP address socket on 
the server (eth0).

Is it possible to set the default socket or send socket for the REGISTER 
message that gets sent out via kamailio?

I am running version 4.4.7.

I notice SIP OPTIONS are being sent out from the public IP address (eth1) on 
the server (as I have set socket in dispatcher) and was hoping for same 
behaviour with uac module.

Please can anyone advise?

Many thanks

Jon

Sent from Mail for Windows 10

__
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] segfault kamailio 4.4.6 Registrar

2021-05-25 Thread Jonathan Hunter
Hi Guys,

We are running kamailio 4.4.6 on debian 8 and not had any issues, however we 
did suffer a segfault and a core was generated;

May 25 09:17:06 Kam-HA-1 /usr/sbin/kamailio[9560]: ALERT:  [main.c:740]: 
handle_sigs(): child process 9575 exited by a signal 11
May 25 09:17:06 Kam-HA-1 /usr/sbin/kamailio[9560]: ALERT:  [main.c:743]: 
handle_sigs(): core was generated
May 25 09:17:06 Kam-HA-1 /usr/sbin/kamailio[9560]: INFO:  [main.c:755]: 
handle_sigs(): terminating due to SIGCHLD


Running gdb on the core file generated returns this output;


Reading symbols from /usr/sbin/kamailio...Reading symbols from 
/usr/lib/debug/.build-id/bc/fbd7e44c057e9e7e0680c2a5e8f6a47290c5ba.debug...done.
done.
[New LWP 9575]

warning: Error reading shared library list entry at 0x28250c3348

warning: Error reading shared library list entry at 0x79c0850018bf73e8
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f 
/etc/kamailio/kamailio.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00589cce in lval_pvar_assign (lv=, rv=, msg=, h=) at lvalue.c:353
353 lvalue.c: No such file or directory.
(gdb) bt full
#0  0x00589cce in lval_pvar_assign (lv=, rv=, msg=, h=) at lvalue.c:353
r_avp = 0x6
destroy_pval = -874501672
pvar = 0x0
pval = {rs = {s = 0x0, len = 0}, ri = 0, flags = 0}
avp_val = {n = -874501704, s = {s = 0x7fb6cbe029b8 "\272/}", len = 
5807505}, re = 0x7fb6cbe029b8}
v = 6
#1  lval_assign (h=0x7fb6cbe029d8, msg=0x344, lv=0x0, rve=0x0) at lvalue.c:400
rv = 0x7fb6cbe029b8
ret = -874501672
__FUNCTION__ = "lval_assign"
#2  0x in ?? ()
No symbol table info available.

Is this  of any help? Could someone advise what next steps might be?

Should we be looking to upgrade or is there a way to get more detail out of the 
core dump?

Many Thanks

Jon

Sent from Mail for Windows 10

__
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] Cockroachdb and kamailio 5.4

2021-03-01 Thread Jonathan Hunter
Noah,

Completely understand.

Good news however is with 5.4 and secure cockroach, it works for my 
requirements with the postgres api for location and subscriber table 
interaction, having created tables using scripts.

I will be using an API for other routing, and I can make sure of permissions 
and dispatcher files whilst in a containerised environment.

Will let you know if I run into any other issues. Thanks again!

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Noah Mehl<mailto:noahm...@gmail.com>
Sent: 26 February 2021 14:17
To: Jonathan Hunter<mailto:hunter...@hotmail.com>
Cc: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>; 
Henning Westerholt<mailto:h...@skalatan.de>
Subject: Re: Cockroachdb and kamailio 5.4

Jon,

Realistically, this is alpha functionality, at best.  If you, and/or your 
organization, do not have the expertise, resources, and/or risk tolerance for 
this, I couldn’t in good faith recommend that you do it.

There are many other clustering technologies for MySQL and PostgreSQL that are 
mature, and *should* be compatible with the existing implementation.  Perhaps 
someone on the list can let us know if they’re using one of the following:

- MySQL Galera
- PostgreSQL replication (either using Pacemaker/Corosync or Zookeeper to 
provide automated failover and/or Master/Master)
- Vitess: 
https://github.com/vitessio/vitess<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvitessio%2Fvitess=04%7C01%7C%7C50369d445ce04ed280d608d8da614417%7C84df9e7fe9f640afb435%7C1%7C0%7C637499458574111672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=pPBfQYkCw801LNTrAj%2FxouPuUH7cClWm1YeyeR9YKAA%3D=0>
- Some other solution not listed here?

That being said, I’ve spend as much time on this as I can.  I solved the 
permissions module issue in this way:

diff --git a/utils/kamctl/postgres/permissions-create.sql 
b/utils/kamctl/postgres/permissions-create.sql
index f397ca22f4..66de10ddcb 100644
--- a/utils/kamctl/postgres/permissions-create.sql
+++ b/utils/kamctl/postgres/permissions-create.sql
@@ -20,10 +20,10 @@ CREATE SEQUENCE address_id_seq;

 CREATE TABLE address (
 id integer PRIMARY KEY NOT NULL DEFAULT nextval('address_id_seq'),
-grp INTEGER DEFAULT 1 NOT NULL,
+grp INT4 DEFAULT 1 NOT NULL,
 ip_addr VARCHAR(50) NOT NULL,
-mask INTEGER DEFAULT 32 NOT NULL,
-port SMALLINT DEFAULT 0 NOT NULL,
+mask INT4 DEFAULT 32 NOT NULL,
+port INT2 DEFAULT 0 NOT NULL,
 tag VARCHAR(64)
 );


diff --git a/src/modules/db_postgres/km_res.c b/src/modules/db_postgres/km_res.c
index 13ac138c1a..f4813cafcc 100644
--- a/src/modules/db_postgres/km_res.c
+++ b/src/modules/db_postgres/km_res.c
@@ -151,11 +151,11 @@ int db_postgres_get_columns(const db1_con_t *_h, 
db1_res_t *_r)
case VARCHAROID:
case NAMEOID:
case BPCHAROID:
+   case TEXTOID:
LM_DBG("use DB1_STRING result type\n");
RES_TYPES(_r)[col] = DB1_STRING;
break;

-   case TEXTOID:
case BYTEAOID:
LM_DBG("use DB1_BLOB result type\n");
RES_TYPES(_r)[col] = DB1_BLOB;

For the schema update, it becomes CockroachDB specific, hence the need to start 
creating CockroachDB specific migration files.  For the  km_res.c change, this 
is where things are probably not ideal.  I’m hoping that Henning and/or Daniel 
can respond.  Essentially, CockroachDB stores all character/string datatypes 
the same way, and then presents this as a TEXTOID datatype.  I think the 
problem with moving this to the DB1_STRING type is that we *could* have memory 
overruns?  That’s just my guess.  Maybe it’s completely safe?

Thanks!

~Noah


On Feb 26, 2021, at 5:15 AM, Jonathan Hunter 
mailto:hunter...@hotmail.com>> wrote:

Hi Noah,

Hope you are well?

Realistically do you think you will be able to spend some time on this or do 
you think I need to look at other options in the short term?

I guess the primary requirements for me are being able to use these modules 
which require database interaction (mainly Permissions,userloc,dispatcher).

I have started to work through it but I am pondering if in the short term I 
need to focus on a support database and look to migrate when available.

Thanks!

Jon



Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C50369d445ce04ed280d608d8da614417%7C84df9e7fe9f640afb435%7C1%7C0%7C637499458574121672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=7KtoBKFV2TYoeRZzQe

Re: [SR-Users] Cockroachdb and kamailio 5.4

2021-02-26 Thread Jonathan Hunter
Hi Noah,

Hope you are well?

Realistically do you think you will be able to spend some time on this or do 
you think I need to look at other options in the short term?

I guess the primary requirements for me are being able to use these modules 
which require database interaction (mainly Permissions,userloc,dispatcher).

I have started to work through it but I am pondering if in the short term I 
need to focus on a support database and look to migrate when available.

Thanks!

Jon



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Jonathan Hunter<mailto:hunter...@hotmail.com>
Sent: 22 February 2021 11:20
To: Henning Westerholt<mailto:h...@skalatan.de>; Noah 
Mehl<mailto:noahm...@gmail.com>
Cc: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] Cockroachdb and kamailio 5.4

Hi Noah and Henning,

Thank you for your responses, I am currently digesting them!

If I can be of any help testing/working on this please let me know as Im very 
keen to implement it so will review and also happy to take direction as I will 
be testing this week on it.

Thanks again

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435%7C1%7C0%7C637495896580748983%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=wfJ2SNI115vi8gpeFb1bs%2BYTLSGCc6BMCZjG9AzMXNk%3D=0>
 for Windows 10

From: Henning Westerholt<mailto:h...@skalatan.de>
Sent: 22 February 2021 07:44
To: Noah Mehl<mailto:noahm...@gmail.com>; Jonathan 
Hunter<mailto:hunter...@hotmail.com>
Cc: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: RE: Cockroachdb and kamailio 5.4

Hi Noah,

sure – let me give you some pointers. So basically, the SQL files are generated 
from the XSL infrastructure in the quoted directory. This file e.g. is for 
postgres:
https://github.com/kamailio/kamailio/blob/5.4/doc/stylesheets/dbschema/xsl/postgres.xsl<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Fblob%2F5.4%2Fdoc%2Fstylesheets%2Fdbschema%2Fxsl%2Fpostgres.xsl=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435%7C1%7C0%7C637495896580748983%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=133XFlkVh6RSwjeJJR9rNgxJda%2BHp6kwwCiqjxEBrCc%3D=0>

You basically need to copy it to a new file and adapt the types in it to the 
cockroachdb types. If you execute “make dbschema” in the kamailio source tree, 
it will generate all the SQL files. Then you could generate the appropriate SQL 
files also for your database and it will stay in sync after future changes. 
There might be also a small extension necessary in the Makefile, but we can 
have a look to this later on.

About the questions why the SQL files are then also checked in after creation – 
because otherwise everybody needs to install the xstl dependencies just for 
installing Kamailio.

About the rand()/random() topic – I did not find anything in the LCR module as 
well. It might be obsolete. I would consider dropping this, maybe after asking 
on the sr-dev list for this again.

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435%7C1%7C0%7C637495896580758973%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=WyJLH7SRrx2P0DQ8qBV6qof%2FByJvrQ%2B1q%2FKCqlkANXc%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435%7C1%7C0%7C637495896580768968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=ecql4Cf5n%2B%2Fw6sVxJHMphXwNT82g3NwXzH8D%2FNvbSBk%3D=0>

From: Noah Mehl 
Sent: Sunday, February 21, 2021 8:47 PM
To: Jonathan Hunter 
Cc: Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Subject: Re: Cockroachdb and kamailio 5.4

Jon,

I’m not sure what would get my branch accepted.  Henning mentioned on 9/16/2020 
that the .sql files are generated from XML/XLST scripts, I have found: 
https://github.com/kamailio/kamailio/tree/5.4/doc/stylesheets/dbschema<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Ftree%2F5.4%2Fdoc%2Fstylesheets%2Fdbschema=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435%7C1%7C0%7C637495896580768968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C100

Re: [SR-Users] Cockroachdb and kamailio 5.4

2021-02-22 Thread Jonathan Hunter
Hi Noah and Henning,

Thank you for your responses, I am currently digesting them!

If I can be of any help testing/working on this please let me know as Im very 
keen to implement it so will review and also happy to take direction as I will 
be testing this week on it.

Thanks again

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Henning Westerholt<mailto:h...@skalatan.de>
Sent: 22 February 2021 07:44
To: Noah Mehl<mailto:noahm...@gmail.com>; Jonathan 
Hunter<mailto:hunter...@hotmail.com>
Cc: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Subject: RE: Cockroachdb and kamailio 5.4

Hi Noah,

sure – let me give you some pointers. So basically, the SQL files are generated 
from the XSL infrastructure in the quoted directory. This file e.g. is for 
postgres:
https://github.com/kamailio/kamailio/blob/5.4/doc/stylesheets/dbschema/xsl/postgres.xsl<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Fblob%2F5.4%2Fdoc%2Fstylesheets%2Fdbschema%2Fxsl%2Fpostgres.xsl=04%7C01%7C%7C766ebba71e894eb9d01708d8d705af48%7C84df9e7fe9f640afb435%7C1%7C0%7C637495766710504154%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=kijcb4WNevh7fL35qNk15YoK0OrNG8G9fhw92r3hxlQ%3D=0>

You basically need to copy it to a new file and adapt the types in it to the 
cockroachdb types. If you execute “make dbschema” in the kamailio source tree, 
it will generate all the SQL files. Then you could generate the appropriate SQL 
files also for your database and it will stay in sync after future changes. 
There might be also a small extension necessary in the Makefile, but we can 
have a look to this later on.

About the questions why the SQL files are then also checked in after creation – 
because otherwise everybody needs to install the xstl dependencies just for 
installing Kamailio.

About the rand()/random() topic – I did not find anything in the LCR module as 
well. It might be obsolete. I would consider dropping this, maybe after asking 
on the sr-dev list for this again.

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7C766ebba71e894eb9d01708d8d705af48%7C84df9e7fe9f640afb435%7C1%7C0%7C637495766710504154%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=e3yfFt8MTVjJ%2FYB8n3KJL%2B%2FvrfPV1Dep7L1khXusfwg%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7C766ebba71e894eb9d01708d8d705af48%7C84df9e7fe9f640afb435%7C1%7C0%7C637495766710514151%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=r9z1BrUCDcXmrCAohpeGLqWQxY3CGa32KblX0FrJG2I%3D=0>

From: Noah Mehl 
Sent: Sunday, February 21, 2021 8:47 PM
To: Jonathan Hunter 
Cc: Henning Westerholt ; Kamailio (SER) - Users Mailing List 

Subject: Re: Cockroachdb and kamailio 5.4

Jon,

I’m not sure what would get my branch accepted.  Henning mentioned on 9/16/2020 
that the .sql files are generated from XML/XLST scripts, I have found: 
https://github.com/kamailio/kamailio/tree/5.4/doc/stylesheets/dbschema<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Ftree%2F5.4%2Fdoc%2Fstylesheets%2Fdbschema=04%7C01%7C%7C766ebba71e894eb9d01708d8d705af48%7C84df9e7fe9f640afb435%7C1%7C0%7C637495766710514151%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=YtCmOw2MHGBnwVWUSF%2Fh%2FRD%2FEgzjZnR2FkyiRsYwEZI%3D=0>
 which was updated just 3 days ago.  However, I don’t understand how this is 
used to generate the .sql files for Postgres. I’m also confused as to why the 
.sql files are checked into the repository if they’re generated?  Henning, can 
you point me in the right direction?

That being said, this is what’s changed in the 
branch<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Fcompare%2F5.4...reperio%3Acockroachdb-compat%3Fexpand%3D1=04%7C01%7C%7C766ebba71e894eb9d01708d8d705af48%7C84df9e7fe9f640afb435%7C1%7C0%7C637495766710524147%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=IMj0vgjhkdA2SlBAQkfsv%2FU4gbFTNy3YD3dFCpiS1%2B8%3D=0>:

kamdbctl.pgsql

- I’ve updated the psql command for my preferences regarding output
- I’ve made the function checking more verbose
- I’ve added the gen_random_uuid() function (by adding pgcrypto to Postgres, 
it’s native in CockroachDB), this isn’t required, but we are using UUID for 
usrloc in production
- I’ve updated the GRANT commands so they’re compatible with both Postgres and 
CockroachDB

Some things 

Re: [SR-Users] Cockroachdb and kamailio 5.4

2021-02-18 Thread Jonathan Hunter
Hi Noah,

Hope you are well?

I work as a consultant for a company in the UK, and I am building a new hosted 
telephony platform for them in docker initially, and as we are deploying across 
multiple servers they want to use cockroachdb to allow easy management of a 
cluster environment.

I could see from your posts you got it working using your own branch, and I 
wondered what changes you made to make things work correctly and what would be 
needed to get the kamailio dev’s to accept it into the main stream of code? 
(Happy to help here where I can).

Unless you will maintain your branch forever  Or are the changes small so its 
not too much of a concern? I just want to assess the risk really, and like you 
I think mainly we will just be using userloc and dispatcher for DB interaction 
so its positive to hear they work fine.  We would also be using rtpengine, 
routing data will be done via API so that should be fine. FYI Id like to run 
kamailio 5.4 initially.

I see your comments about table creation (in previous posts), that is the 
initial problem I am seeing when trying to use postgres based commands direct 
from a pgdump to create the kamailio database structure, does your branch 
contain all the creation scripts for the db/tables that I can use for testing?

Thanks again in advance  for the response!

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Henning Westerholt<mailto:h...@skalatan.de>
Sent: 17 February 2021 16:18
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>; Noah 
Mehl<mailto:noahm...@gmail.com>
Subject: RE: Cockroachdb and kamailio 5.4

Hi Jonathan,

no – I do not think that there has been more work done so far, apart from the 
discussion that you referenced below.
If you are also interested in getting this forward, why not reaching out to the 
other guy starting this discussion earlier? Just to see if you can maybe join 
forces to get something of this work into a pull request for review and later a 
possible merge into our code base.

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307382972%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=WVL5vzihg1kUYxeDwnDwHPksVaf0EaM6ANXuBBBthZE%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307392967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=Zkxs8506K%2FpvHX%2FPcHEj3fyYBei%2BnpuzPmpHdtkFfn4%3D=0>

From: sr-users  On Behalf Of Jonathan 
Hunter
Sent: Wednesday, February 17, 2021 1:59 PM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] Cockroachdb and kamailio 5.4

Hi Guys,

Hope all are well?

We are looking to implement kamailio with cockroachdb due to the advantages it 
gives us in terms of postgres management and clustering.

I can see from a previous string 
http://sip-router.1086192.n5.nabble.com/CockroachDB-and-Kamailio-td189233.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsip-router.1086192.n5.nabble.com%2FCockroachDB-and-Kamailio-td189233.html=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307392967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=8E15g5pgP%2BpY%2BgEz%2FtP%2BaLcv6r4s60hCwk5MV0yGn4I%3D=0>
 that someone has attempted this and even created their own branch.

Has any further work been done on this, and if so has anyone got any 
advice/tips relating to it? As I am nervous about potentially using a branch 
and not a general release of kamailio moving forwards.

I appreciate you cant support all database types but I would just be interested 
to hear people’s thoughts on the topic.

Many thanks!

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307402965%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=tCO%2FU3IF9d01%2Fwc7APzZZvr2kcFiqIsZox3p%2BjwegyM%3D=0>
 for Windows 10


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Cockroachdb and kamailio 5.4

2021-02-17 Thread Jonathan Hunter
Hi Henning,

Thank you for the response, yes certainly interested in moving this forwards 
for sure.

Noah,  I will email you direct if you don’t mind later today?

Thanks again!

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Henning Westerholt<mailto:h...@skalatan.de>
Sent: 17 February 2021 16:18
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>
Cc: Jonathan Hunter<mailto:hunter...@hotmail.com>; Noah 
Mehl<mailto:noahm...@gmail.com>
Subject: RE: Cockroachdb and kamailio 5.4

Hi Jonathan,

no – I do not think that there has been more work done so far, apart from the 
discussion that you referenced below.
If you are also interested in getting this forward, why not reaching out to the 
other guy starting this discussion earlier? Just to see if you can maybe join 
forces to get something of this work into a pull request for review and later a 
possible merge into our code base.

Cheers,

Henning

--
Henning Westerholt – 
https://skalatan.de/blog/<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307382972%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=WVL5vzihg1kUYxeDwnDwHPksVaf0EaM6ANXuBBBthZE%3D=0>
Kamailio services – 
https://gilawa.com<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307392967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=Zkxs8506K%2FpvHX%2FPcHEj3fyYBei%2BnpuzPmpHdtkFfn4%3D=0>

From: sr-users  On Behalf Of Jonathan 
Hunter
Sent: Wednesday, February 17, 2021 1:59 PM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] Cockroachdb and kamailio 5.4

Hi Guys,

Hope all are well?

We are looking to implement kamailio with cockroachdb due to the advantages it 
gives us in terms of postgres management and clustering.

I can see from a previous string 
http://sip-router.1086192.n5.nabble.com/CockroachDB-and-Kamailio-td189233.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsip-router.1086192.n5.nabble.com%2FCockroachDB-and-Kamailio-td189233.html=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307392967%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=8E15g5pgP%2BpY%2BgEz%2FtP%2BaLcv6r4s60hCwk5MV0yGn4I%3D=0>
 that someone has attempted this and even created their own branch.

Has any further work been done on this, and if so has anyone got any 
advice/tips relating to it? As I am nervous about potentially using a branch 
and not a general release of kamailio moving forwards.

I appreciate you cant support all database types but I would just be interested 
to hear people’s thoughts on the topic.

Many thanks!

Jon

Sent from 
Mail<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=04%7C01%7C%7C548d23e7d9544667296a08d8d35fb5d3%7C84df9e7fe9f640afb435%7C1%7C0%7C637491755307402965%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000=tCO%2FU3IF9d01%2Fwc7APzZZvr2kcFiqIsZox3p%2BjwegyM%3D=0>
 for Windows 10


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Cockroachdb and kamailio 5.4

2021-02-17 Thread Jonathan Hunter
Hi Guys,

Hope all are well?

We are looking to implement kamailio with cockroachdb due to the advantages it 
gives us in terms of postgres management and clustering.

I can see from a previous string 
http://sip-router.1086192.n5.nabble.com/CockroachDB-and-Kamailio-td189233.html 
that someone has attempted this and even created their own branch.

Has any further work been done on this, and if so has anyone got any 
advice/tips relating to it? As I am nervous about potentially using a branch 
and not a general release of kamailio moving forwards.

I appreciate you cant support all database types but I would just be interested 
to hear people’s thoughts on the topic.

Many thanks!

Jon

Sent from Mail for Windows 10

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 5.3.5 - none local route header

2020-07-27 Thread Jonathan Hunter
Hi Daniel,

Thanks for the reply.

I don’t see the CARRIER_IP listed as an alias, and I have only 1 domain listed 
and that’s local. I also toggled the register_myself parameter and it is still 
removing the none local CARRIER_IP.

The route header containing the CARRIER_IP doesn’t contain a from tag, apart 
from that it looks normal and I cant fine any reference to it locally.

I haven’t seen this before, however this is my first time implementing things 
in Azure and on centos 7. Its only on outbound calls as well, what other steps 
do you suggest if any?

Thanks for the reply.

Jon

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Daniel-Constantin Mierla<mailto:mico...@gmail.com>
Sent: 27 July 2020 09:04
To: Kamailio (SER) - Users Mailing List<mailto:sr-users@lists.kamailio.org>; 
Jonathan Hunter<mailto:hunter...@hotmail.com>; Kamailio (SER) - Users Mailing 
List<mailto:sr-us...@lists.sip-router.org>
Subject: Re: [SR-Users] kamailio 5.3.5 - none local route header


Hello,

that can happen if you have CARRIER_IP as value for alias global parameter or 
inside the domain module records with register_myself modparam enabled. Can you 
chack if any of those cases happens?

Cheers,
Daniel
On 24.07.20 12:58, Jonathan Hunter wrote:
Hi Guys,

Sorry if this is too generic or silly a question but I am testing
kamailio 5.3.5 within Azure and its behind NAT.

I am having an issue with passing an ACK from our internal side back out to
the carrier side and it appears having run loose_route a none local 
route-header is
consistently being removed by kamailio at this point.

ie Route: 

Is this normal or configuration related?

As I am unsure within what scenario I would remove a route header which doesnt 
contain the local
Proxy IP.

Please can someone advise?

Many thanks

Jon

Sent from 
Mail<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986=02%7C01%7C%7C4a6c036f98e446ab86ec08d83203adb2%7C84df9e7fe9f640afb435%7C1%7C0%7C637314338657967884=VDmyqv%2BAtQjg9pfS1GfCxkH1Z1KtDcKyiAGcDzykrBk%3D=0>
 for Windows 10




___

Kamailio (SER) - Users Mailing List

sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>

https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users=02%7C01%7C%7C4a6c036f98e446ab86ec08d83203adb2%7C84df9e7fe9f640afb435%7C1%7C0%7C637314338657977879=cJ0imbe44ne4H9qzwb61orfVg9Qbi0bVs9GPZXJ%2BX58%3D=0>

--

Daniel-Constantin Mierla -- 
www.asipto.com<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.asipto.com%2F=02%7C01%7C%7C4a6c036f98e446ab86ec08d83203adb2%7C84df9e7fe9f640afb435%7C1%7C0%7C637314338657977879=Tcz4WnXWfZSau9kATS6O7mn2VgP9EfzI1R5wiXG9AvI%3D=0>

www.twitter.com/miconda<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.twitter.com%2Fmiconda=02%7C01%7C%7C4a6c036f98e446ab86ec08d83203adb2%7C84df9e7fe9f640afb435%7C1%7C0%7C637314338657977879=3TKqjKKsN2kPZPvrSgu8IpZ10vxKm9Ic5TkXcIhdNFM%3D=0>
 -- 
www.linkedin.com/in/miconda<https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda=02%7C01%7C%7C4a6c036f98e446ab86ec08d83203adb2%7C84df9e7fe9f640afb435%7C1%7C0%7C637314338657987873=9qYTiFuMwyyYjku8lBTulY4sOWSQ4XXrqdVKXlCvmPo%3D=0>

Funding: 
https://www.paypal.me/dcmierla<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.paypal.me%2Fdcmierla=02%7C01%7C%7C4a6c036f98e446ab86ec08d83203adb2%7C84df9e7fe9f640afb435%7C1%7C0%7C637314338657987873=jV%2FMxPitAEk0BUV9ZlCXQPHiDAdM3a64HuW%2F%2B6H4rek%3D=0>

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 5.3.5 - none local route header

2020-07-24 Thread Jonathan Hunter
Hi Guys,

Sorry if this is too generic or silly a question but I am testing
kamailio 5.3.5 within Azure and its behind NAT.

I am having an issue with passing an ACK from our internal side back out to
the carrier side and it appears having run loose_route a none local 
route-header is
consistently being removed by kamailio at this point.

ie Route: 

Is this normal or configuration related?

As I am unsure within what scenario I would remove a route header which doesnt 
contain the local
Proxy IP.

Please can someone advise?

Many thanks

Jon

Sent from Mail for Windows 10

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] xhttp_prom - Adding new metrics for dispatcher list to monitor SIP trunk availability

2020-03-12 Thread Jonathan Hunter
Thanks for reply Henning!

Yes I agree with the external collector, I am using it without issue will stick 
with it.

Many thanks


From: Henning Westerholt 
Sent: 12 March 2020 11:12
To: Kamailio (SER) - Users Mailing List 
Cc: Jonathan Hunter 
Subject: RE: xhttp_prom - Adding new metrics for dispatcher list to monitor SIP 
trunk availability


Hello,



It should be possible to use e.g. a timer route to periodically fetch the 
status from localhost with RPC commands and to feed this into the counters 
etc.. from xhttp_prom.



But the easier way is probably just to use an external collector.



Cheers,



Henning





--

Henning Westerholt – 
https://skalatan.de/blog/<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F=02%7C01%7C%7Cf8482e2aab8b41a356f908d7c6764b74%7C84df9e7fe9f640afb435%7C1%7C0%7C637196083676078315=li1nfUXPpQE5SF4o4x1KNSpYp8dEsac4zGY6JEgNMQI%3D=0>

Kamailio services – 
https://gilawa.com<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F=02%7C01%7C%7Cf8482e2aab8b41a356f908d7c6764b74%7C84df9e7fe9f640afb435%7C1%7C0%7C637196083676088284=B%2BqXbHF1hS5qATm80FQrtWBCbny8L%2BSR85fihjAlzto%3D=0>



From: sr-users  On Behalf Of Jonathan 
Hunter
Sent: Tuesday, March 10, 2020 4:13 PM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] xhttp_prom - Adding new metrics for dispatcher list to 
monitor SIP trunk availability



Hi Guys,



We are running kamailio 5.3 in our dev environment with a view to using the 
xhttp_prom module, so that we can monitor using prometheous.



It works fine in terms of getting all the internal stats and groups, however is 
it possible to grab the dispatcher.list output/stats using the module?



I know there is a collector that does this and provides the dispatcher gateway 
trunk status, but wondered if it could be implemented using xhttp_prom, or if 
external code would be required to grab the states using rpc etc?



Many thanks



Jon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] xhttp_prom - Adding new metrics for dispatcher list to monitor SIP trunk availability

2020-03-10 Thread Jonathan Hunter
Hi Guys,

We are running kamailio 5.3 in our dev environment with a view to using the 
xhttp_prom module, so that we can monitor using prometheous.

It works fine in terms of getting all the internal stats and groups, however is 
it possible to grab the dispatcher.list output/stats using the module?

I know there is a collector that does this and provides the dispatcher gateway 
trunk status, but wondered if it could be implemented using xhttp_prom, or if 
external code would be required to grab the states using rpc etc?

Many thanks

Jon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Active-Active Registrar setup with users behind NAT persistence in event of server failure

2020-02-19 Thread Jonathan Hunter
Hi Daniel,

Thanks for the reply, I will use the server_id method that should work for 
changes required.

Many thanks!

Jon


From: Daniel-Constantin Mierla 
Sent: 19 February 2020 12:28
To: Kamailio (SER) - Users Mailing List ; Jonathan 
Hunter ; Kamailio (SER) - Users Mailing List 

Subject: Re: [SR-Users] Active-Active Registrar setup with users behind NAT 
persistence in event of server failure


Hello,


I didn't spent time on understanding the exact issue, but from database point 
of view, do you want to avoid having two different tables for specific reasons, 
like external applications accessing it?


Have you looked at setting the server_id, maybe that can help to have the 
records grouped by each server.


Cheers,
Daniel


On 19.02.20 09:40, Jonathan Hunter wrote:
Hi Guys,

I have a quick question wondered if anyone could provide some suggestions 
please?!

We have a setup of two registrars in EC2 (kamailio 4.4 running on debian VMs) 
which act in an active/active fashion with a number of devices
behind NAT where  we use the DMQ dmq_t_replicate function to send the 
registration details between each server and append the PATH parameter
so the registrar the device registered with is always associated with the 
client device.

This all works fine, the only issue is persistency should we have a failure of 
one of the registrars, be it process or server and recovering the correct
PATH detail so the end device can still be reached.

I have tried this with separate databases with each registrar, which works when 
using cache and db but I ideally want the same database for the two servers and 
not
change the architecture at this time unless it is a necessary.

I have also tested with dmq_usrloc but this again provides the usrlocation 
details of the notification servers in the group(not path), again which I 
understand but I wondered
if there is anything else I could try or its just a question of in the event of 
a failure half the registrations will be effected until it recovers and they
re-register again if I dont want to have separate databases (location tables) 
or I add more network elements into the flow, such as HA pair or load balancer 
but just want to
make sure I have exhausted all options or consider the risk before I look to do 
this.

Many thanks!

Jon



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users=02%7C01%7C%7C35aeb316e5724148274008d7b53738f1%7C84df9e7fe9f640afb435%7C1%7C0%7C637177121086897335=w9rHzQKqhC2XONZjxAEI5rxxw11NwZyl8JT2lg61BpE%3D=0>


--
Daniel-Constantin Mierla -- 
www.asipto.com<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.asipto.com%2F=02%7C01%7C%7C35aeb316e5724148274008d7b53738f1%7C84df9e7fe9f640afb435%7C1%7C0%7C637177121086907333=hFrLqAo2sA5yOqHxkgWwWxO%2F4FdxsAPvBSbOkQvX3Jg%3D=0>
www.twitter.com/miconda<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.twitter.com%2Fmiconda=02%7C01%7C%7C35aeb316e5724148274008d7b53738f1%7C84df9e7fe9f640afb435%7C1%7C0%7C637177121086907333=32OjIMQsM7l3BE6SN4S0F9mrNQ%2ByvqyV2sVJV7MJLgg%3D=0>
 -- 
www.linkedin.com/in/miconda<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fmiconda=02%7C01%7C%7C35aeb316e5724148274008d7b53738f1%7C84df9e7fe9f640afb435%7C1%7C0%7C637177121086917328=wWFKPE8YJdyhBezzI6uDsD8EMYiiDltpTyNWjh1d%2BDE%3D=0>
Kamailio Advanced Training - March 9-11, 2020, Berlin - 
www.asipto.com<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.asipto.com%2F=02%7C01%7C%7C35aeb316e5724148274008d7b53738f1%7C84df9e7fe9f640afb435%7C1%7C0%7C637177121086927320=ClIGG7IEw9xt5gD%2BEYzIG6l%2Byyp1kuEeBVXpMfBDSWQ%3D=0>
Kamailio World Conference - April 27-29, 2020, in Berlin -- 
www.kamailioworld.com<https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kamailioworld.com%2F=02%7C01%7C%7C35aeb316e5724148274008d7b53738f1%7C84df9e7fe9f640afb435%7C1%7C0%7C637177121086937316=Aj8vXwikpl1MKBp6hMkxZBGbxOii1Y87Bc4GoUWbRHw%3D=0>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Active-Active Registrar setup with users behind NAT persistence in event of server failure

2020-02-19 Thread Jonathan Hunter
Hi Guys,

I have a quick question wondered if anyone could provide some suggestions 
please?!

We have a setup of two registrars in EC2 (kamailio 4.4 running on debian VMs) 
which act in an active/active fashion with a number of devices
behind NAT where  we use the DMQ dmq_t_replicate function to send the 
registration details between each server and append the PATH parameter
so the registrar the device registered with is always associated with the 
client device.

This all works fine, the only issue is persistency should we have a failure of 
one of the registrars, be it process or server and recovering the correct
PATH detail so the end device can still be reached.

I have tried this with separate databases with each registrar, which works when 
using cache and db but I ideally want the same database for the two servers and 
not
change the architecture at this time unless it is a necessary.

I have also tested with dmq_usrloc but this again provides the usrlocation 
details of the notification servers in the group(not path), again which I 
understand but I wondered
if there is anything else I could try or its just a question of in the event of 
a failure half the registrations will be effected until it recovers and they
re-register again if I dont want to have separate databases (location tables) 
or I add more network elements into the flow, such as HA pair or load balancer 
but just want to
make sure I have exhausted all options or consider the risk before I look to do 
this.

Many thanks!

Jon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] VRF routing with kamailio 5.2

2019-04-15 Thread Jonathan Hunter
Hi All,

Hope everyone in community is well.

I was wondering if anyone could let me know if VRF is supported with kamailio 
5.2 ?

Essentially I am looking to put kamailio between two SBCs and bridge the 
networks together.

So currently Server A 1.1.1.1 connects to Server B 2.2.2.2 and they pass calls 
fine, and I want to add kamailio in between without changing any IPs, so using 
VRF I have one network interface intA with 1.1.1.1 and the other intB with 
2.2.2.2.

What I want to do is listen on both interfaces, which is fine but bridge or 
force traffic between the two.

Is this possible with kamailio?  As doing force socket and listening on both 
1.1.1.1 and 2.2.2.2 kamailio just loops and routes to itself, and force socket 
doesnt help.

Do you have any suggestions?

Would running two instances of kamailio on same server help or even introducing 
to separate kamailio instances and force routing between the two for requests.

I am currently just testing with SIP OPTIONS and it is already proving tricky.

Any help or comments appreciated.

I appreciate this might not be the best solution however we have a lead time 
with providers to make changes which are proving quite slow and impractical so 
just trying to work a solution.

Thanks

Jon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Strongswan on same Server in EC2 as kamailio 4.4

2018-02-23 Thread Jonathan Hunter
Hi Guys,

I have an issue with sending a BYE message back down a strongswan VPN tunnel on 
a server in the Amazon EC2 environment.

To get the configuration working correctly I have the Public IP address bound 
to a loopback virtual interface, and I also have kamailio listening to it.


Calls establish without issue, but when the called party send a BYE, I cant 
seem to force the SIP message down the correct interface.

Due to client confidentiality I need to be careful what information I send but 
does anyone have a similar configuration set up, and working, I am just looking 
for reasons as to why force_socket and mhomed=1 doesnt appear to force the BYE 
message via the Public Interface but the private IP address on the server as 
its a NAT'd environment.

So essentially call establishes;


CLIENT-(VIA IPSEC)-INVITE->(UDP)KAMAILIO PUBLIC 
IP>(UDP)KAMAILIO PRIVATE IP(TCP)->CLIENT B
   ||  |  |
   |<-(VIA IPSEC)-100 TRYING|<--100 
TRYING---|<--100 TRYING|
   | |  |   |
   |<-(VIA IPSEC)-180 RINGING---|<--180 
RINGING--|<--180 RINGING---|
   |||  
|
   |<-(VIA IPSEC)-200OK |<--200OK 
---|<--200OK |
   | || 
  |
   |--(VIA IPSEC)-ACk-> 
|---ACk->|---ACk-->|


   How can I ensure the BYE is forced out via the PUBLIC IP?

So I do this;
   CLIENT-(VIA IPSEC)-INVITE->(UDP)KAMAILIO PUBLIC 
IP>(UDP)KAMAILIO PRIVATE IP(TCP)->CLIENT B

   |<-BYE (VIA IPSEC)--|<--BYE 
|<--BYE ---|

   As it appears to be going from Private IP and not being pushed down the 
IPSEC tunnel

   CLIENT-(VIA IPSEC)-INVITE->KAMAILIO PUBLIC IP>KAMAILIO 
PRIVATE IP->CLIENT B

   |<-BYE --<--BYE 
|<--BYE ---|


   on the BYE I have tried;

   force_send_socket(KAMAILIO PUBLIC IP);

   However doesnt appear to work, is this an issue for ip routing on the server 
to push the BYE correctly down the IPSEC tunnel? or is it configuration related?

   Any comments welcome if people have had this issue before.


   Many thanks

   Jon


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 4.4 - jansson_get_field parse error actions

2017-11-17 Thread Jonathan Hunter
Hi Guys,


Looks like return code = -1 does the trick for me?!


Sorry for noise please comment if there is a better way.


thanks


Jon



From: sr-users <sr-users-boun...@lists.kamailio.org> on behalf of Jonathan 
Hunter <hunter...@hotmail.com>
Sent: 17 November 2017 14:56
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] kamailio 4.4 - jansson_get_field parse error actions


Hi Guys,

I am looking to send calls to a default route should we have issues when 
connecting to our API which provides routing instructions.

On scenario is handling an invalid JSON response , which would result in a 
parse error.

Is it possible to capture when there is a failed to parse error when dealing 
with JSON responses to an http query in kamailio?

In particular when using the jansson_get_field, I am looking to default to a 
route should their be a parse error, so I am forcing an erro, I get this in the 
logs, but can I grab to act on it?

Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:59]: janssonmod_get(): failed to parse: 200 OK
Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:61]: janssonmod_get(): json error at line 1: 
'[' or '{' expected near '200'
Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:59]: janssonmod_get(): failed to parse: 200 OK
Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:61]: janssonmod_get(): json error at line 1: 
'[' or '{' expected near '200'


On receipt of this I would then like to hit a default route.


Many thanks


Jon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 4.4 - jansson_get_field parse error actions

2017-11-17 Thread Jonathan Hunter
Hi Guys,

I am looking to send calls to a default route should we have issues when 
connecting to our API which provides routing instructions.

On scenario is handling an invalid JSON response , which would result in a 
parse error.

Is it possible to capture when there is a failed to parse error when dealing 
with JSON responses to an http query in kamailio?

In particular when using the jansson_get_field, I am looking to default to a 
route should their be a parse error, so I am forcing an erro, I get this in the 
logs, but can I grab to act on it?

Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:59]: janssonmod_get(): failed to parse: 200 OK
Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:61]: janssonmod_get(): json error at line 1: 
'[' or '{' expected near '200'
Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:59]: janssonmod_get(): failed to parse: 200 OK
Nov 17 14:37:25 ip-172-31-34-165 /usr/local/kamailio-4.4/sbin/kamailio[9735]: 
ERROR: jansson [jansson_funcs.c:61]: janssonmod_get(): json error at line 1: 
'[' or '{' expected near '200'


On receipt of this I would then like to hit a default route.


Many thanks


Jon
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 4.4 registering to a SIP trunk provider using UAC then outbound routing to it.

2017-09-13 Thread Jonathan Hunter
Hi Daniel,


Thanks for the response.


My problem appears to be kamailio proxying the 407 response to the originating 
SIP trunk, which I appreciate it will do as its a proxy.


I presume if I want to absorb the 407 and handle only on the kamailio proxy 
which is the last point to the SIP carrier, this is more B2BUA, as I would 
normally have FreeSWITCH/ASterisk registering with the outbound sip provider 
and proxy the request via kamailio, where as in this case I am registering 
direct from kamailio so making it a little more complex in terms of handling 
the 407.


Jon



From: sr-users <sr-users-boun...@lists.kamailio.org> on behalf of Daniel Tryba 
<d.tr...@pocos.nl>
Sent: 13 September 2017 15:44
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] kamailio 4.4 registering to a SIP trunk provider using 
UAC then outbound routing to it.

On Wed, Sep 13, 2017 at 03:33:19PM +0000, Jonathan Hunter wrote:
> I have a SIP provider who only accept registrations from users, so I
> have registered my kamailio Server with them using the uac module.
>
> It is registered fine, and I can get inbound calls on the trunk.
>
> My query is the best way to send outbound calls out via the registered
> sip gateway?

Normally there is no correlation between REGISTERs (to tell an other
server where to send incoming INVITEs) and outgoing INVITEs. So just do
whatever you normally do and be prepared to respond to a challend (with
auc_auth).


___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
sr-users -- Kamailio (SER) - Users Mailing 
List<https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
lists.kamailio.org
SIP Router Users Mailing list - online email forum for communities of SIP 
Express Router (SER) and Kamailio (OpenSER) projects. Subscription is open to 
anyone that ...



___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 4.4 registering to a SIP trunk provider using UAC then outbound routing to it.

2017-09-13 Thread Jonathan Hunter
Hi Guys,

I have a SIP provider who only accept registrations from users, so I have 
registered my kamailio Server with them using the uac module.

It is registered fine, and I can get inbound calls on the trunk.

My query is the best way to send outbound calls out via the registered sip 
gateway?

I would normally load balance using dispatcher if it was to IP authenticating 
providers, but as they are using registration, what would be best practice to 
send outbound calls via the registration which is establised with the uac 
module?

Is it just a question of doing it within the configuration file, as again they 
will look to auth requests as well with a 401/407 so I assume I can use 
uac_auth() for that.

Just wondering what other people have done if anything, is my other option is 
to register using a B2Bua on the same server, and leave kamailio just as a 
proxy.

Many thanks

Jon

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users