[SR-Users] Help

2023-07-28 Thread Shravan Kumar
Hello,
 How can I configure my Kamalio server to work as multihoming for
sctp testing... Please ASAP!!
__
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] Help with rtpengine_delete()

2023-01-09 Thread Jose Figueroa
Hello everyone!

I've been struggling with a kamailio scenario with the rtpengine_delete. My
scenario is the following:

I've setup a Kamailio multihomed, since some of my vendors has provided us a
direct link using a different local subnet in eth2 and I have my public IP in
eth1. The kamailio i've been working on is using app_lua module.

SIP A  <-> 200.XXX.XXX.14 (eth1) [Kamailio 5.6] (eth2) 
10.203.5.8 <--> Vendor 10.203.5.20
100.XXX.XXX.22

Basically, I receive a call from public IP eth1 and according to the logic
from the vendor I forward statefully the call to 10.203.5.20 in second branch.

I've been reading a lot of issues and documentation such as:[#840 rptengine],
[#875 rtpengine] and [# kamailio], but I don't really get working the
rtpengine_delete() correctly, since I go to netstat -plan|grep rtpengine and I
see some sessions still that are not freed.

My second case is the following when I receive a 503 from another GW:

SIP A  <-> 200.XXX.XXX.14 (eth1) [Kamailio 5.6]  (eth1) 
200.XXX.XXX.14 <---> Vendor GW 233.XXX.XXX.19
100.XXX.XXX.22

In that case I still see the rtpengine ports, mostly with my public IP
200.XXX.XXX.14 but some of them with the LAN 10.203.5.8 IP.

Also, something curious I see on my 2nd use case is the following: 
https://pastebin.com/raw/B4vCgExX

So, it would be great if someone can point me to the right direction, how and
when I should use rtpengine_delete in order to finish the rtpengine sessions
correctly and the ports can be freed up.

Any help will be great!

[840] https://github.com/sipwise/rtpengine/issues/840
[875] https://github.com/sipwise/rtpengine/issues/875
[] https://github.com/kamailio/kamailio/issues/

-- 
Regards,
Jose Figueroa


signature.asc
Description: PGP signature
__
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] 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] help to configure topos module configuration

2022-03-18 Thread Marrold
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 
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
> 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] 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] Help with rewriting headers for NAT manually

2022-01-17 Thread Chad

David,
Thank you for the suggestion.
Do you have any sample config files you can point me at?

--
^C


On 1/17/22 12:41 AM, David Villasmil wrote:

Take a look at freeSWITCH

On Mon, 17 Jan 2022 at 00:58, Chad mailto:ccolu...@hotmail.com>> wrote:

Hmm, it did not fix it (calls still work with my other carriers).
It looks to me like it should work, it does use the external IP for 
everything.

It generates an error in the log about making your existing address:
topoh [topoh_mod.c:179]: mod_init(): mask address matches myself 
[209.###.###.###]

Here is ther 200 and ACK.
SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bKf229.9bb425c2.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bKrs8bqi00cg14535baf70.1
Record-Route: 

Record-Route: 
Record-Route: 
From: "Anonymous" ;tag=as471a1f75
To: ;tag=as199dc3d1
Call-ID: 3510f7167e1a0f6a5423234b1d176a8b@10.44.###.###:5060
CSeq: 102 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Contact: 

Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1644013823 1644013823 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 19180 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=nortpproxy:yes


ACK 
sip:209.###.###.###;line=sr-1RaGXx7VX8CAKx1yp8oFKfFqKfFqKfFqKfFVXx9GpxF* SIP/2.0
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bKf229.9bb425c2.2
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bKvtgb6f1048h1g6l9s890.1
Max-Forwards: 67
From: "Anonymous" ;tag=as471a1f75
To: ;tag=as199dc3d1
Contact: 
Call-ID: 3510f7167e1a0f6a5423234b1d176a8b@10.44.###.###:5060
CSeq: 102 ACK
User-Agent: packetrino
Content-Length: 0
Route: 
Route: 


--
^C


On 1/16/22 3:16 PM, Ovidiu Sas wrote:
 > Use your 209.x external IP.
 >
 > On Sun, Jan 16, 2022 at 18:07 Chad mailto:ccolu...@hotmail.com>
>> wrote:
 >
 >     Yes I am using a 172.16.x.x IP and it works, it rewrites the 
headers, but again because 172.16.x.x is also a
private IP
 >     it is the same as using my real 10.x.x.x IP. The carrier's ACK 
throws away the local IP and sends the
response to my
 >     209.x external IP.
 >
 >
 >     --
 >     ^C
 >
 >
 >     On 1/16/22 1:38 PM, Ovidiu Sas wrote:
 >      > Have you tried using the mask_ip param:
 >      > 
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip


 >     
>
 >      > 

 >     
>>
 >      >
 >      > -ovidiu
 >      >
 >      > On Sun, Jan 16, 2022 at 16:09 Chad mailto:ccolu...@hotmail.com>
>
 >      
      >
 >      >     I found a sample config file using topoh, which I copied 
(with some changes) and added the topoh
module to my
 >     config.
 >      >     It works fine, but it does not solve the problem.
 >      >     In fact it has the exact same problem, because all the topoh 
module does is replace one private IP with
 >     another in the
 >      >     2nd (top most) Record-Route header.
 >      >     So the carrier still changes the ACK to the public IP and the 
call is still broken in the exact same way.
 >      >     It was super easy to add, but does not work, 1 possible 
solution down.
 >      >
 >      >     --
 >      >     ^C
 >      >
 >      >
 >      >     On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 >      >      > Most of the time, if you get the right person on the 
carrier's side
 >      >      > and you explain the situation, they will come up with a 
solution.
 >      >      > If not, you need to break the RFC in a way that will 
counterpart their breakage.
 >      >      >
 >      >      > The carrier is also using a 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-17 Thread Chad

Michael,
Thank you for the feedback.

--
^C


On 1/16/22 4:02 PM, Michael Young wrote:

Chad,

In my experience, if you carrier partner is one of the bigger carriers, and\or you use multiple carriers, Kamailio is 
the best solution available. With some of the smaller carriers\resellers it just makes more sense to use Asterisk rather 
than argue with them about how they are ignoring and breaking RFCs. While Asterisk can be inefficient, it generally 
"just works" in those situations. Based on what I have read of your situation in the list I think I can guess which 
company you are working with. Their "SBC" is Freeswitch-based. I have had a similar debate with them about RFCs, and 
yes, you are better off with Asterisk in that case.


Michael


On 1/16/2022 5:20 PM, Chad wrote:

I have been reading a lot more about the problem and it seems my 
mangle/unmangle solution is basically B2BUA.
So I need a B2BUA solution and it seems like Kamailio does not really do B2BUA.
Instead of installing something else I don't know (SEMS or Sippy), it makes more sense to find something that can 
handle it all.
I have read that opensips has B2BUA functionality built in, so I am seriously considering simply replacing Kamailio 
with opensips.
In reality my system has such a low load I can probably replace Kamailio with Asterisk as a B2BUA and it would be 
fine, but from what I have read Asterisk is very inefficient for B2BUA.


--
^C


On 1/16/22 1:38 PM, Ovidiu Sas wrote:

Have you tried using the mask_ip param:
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip 



-ovidiu

On Sun, Jan 16, 2022 at 16:09 Chad mailto:ccolu...@hotmail.com>> wrote:

    I found a sample config file using topoh, which I copied (with some changes) and added the topoh module to my 
config.

    It works fine, but it does not solve the problem.
    In fact it has the exact same problem, because all the topoh module does is replace one private IP with another 
in the

    2nd (top most) Record-Route header.
    So the carrier still changes the ACK to the public IP and the call is still 
broken in the exact same way.
    It was super easy to add, but does not work, 1 possible solution down.

    --
    ^C


    On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 > Most of the time, if you get the right person on the carrier's side
 > and you explain the situation, they will come up with a solution.
 > If not, you need to break the RFC in a way that will counterpart their 
breakage.
 >
 > The carrier is also using a SIP proxy (maybe kamailio, who knows).
 > In the old days, the default kamailio config was using
 > fix_nated_contact() to deal with NATed devices and this is exactly the
 > behavior that you are seeing.
 > The recommended way to deal with NATed devices is to use
 > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
 >
 > There are several solution for this scenario:
 >   - mangle the signaling to allow proper routing on your end
 >   - use a B2BUA in between your kamailio and carrier
 >   - configure kamailio to use one of the topology hiding modules:
 > topoh, topos, topos_redis
 >   - maybe something else ... :)
 >
 > There's no right or wrong approach, one must be comfortable with the
 > chosen solution to be able to maintain it.
 >
 > -ovidiu
 >
 > On Sat, Jan 15, 2022 at 9:14 PM Chad mailto:ccolu...@hotmail.com>> wrote:
 >>
 >> Ok so in short I was not doing anything wrong (although I had some 
miss-configurations), but the carrier is
    (i.e. they
 >> are a bad actor). When they said I was doing it wrong, they did not mean in the RFC sense they meant in the 
"to work
 >> with us" sense. Now in order for me to get it to work with their SBC I have to mangle the contact on the way 
out an

 >> unmangle it on the return in Kamailio somehow, as I originally purposed.
 >> However I have no idea how to do that :)
 >>
 >> Shouldn't we (the Kamailio community) assume there are lots of bad actors out there and possibly many 
Kamailio users
 >> with this exact same issue (I personally know of at least 2 bad actor carriers right now) and create some 
kind of

 >> template or snippet that we can publicly publish on the Kamailio docs 
or wiki for all of the Kamailio community
    to use
 >> for this use case?
 >>
 >> I have been fighting with carriers about this for years and they always 
said I was doing it wrong and I don't
    know the
 >> SIP RFC well enough to fight back. So why not build a solution for 
everyone out there that has to deal with a
    bad actor?
 >>
 >> --
 >> ^C
 >>
 >>
 >> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
 >>> As expected, your carrier is bogus and "thinks" it knows better.
 >>> Your carrier is treating your setup as a dumb 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-17 Thread David Villasmil
Take a look at freeSWITCH

On Mon, 17 Jan 2022 at 00:58, Chad  wrote:

> Hmm, it did not fix it (calls still work with my other carriers).
> It looks to me like it should work, it does use the external IP for
> everything.
>
> It generates an error in the log about making your existing address:
> topoh [topoh_mod.c:179]: mod_init(): mask address matches myself
> [209.###.###.###]
>
> Here is ther 200 and ACK.
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bKf229.9bb425c2.0
> Via: SIP/2.0/UDP
> 206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bKrs8bqi00cg14535baf70.1
> Record-Route:
> 
> Record-Route: 
> Record-Route: 
> From: "Anonymous" ;tag=as471a1f75
> To: ;tag=as199dc3d1
> Call-ID: 3510f7167e1a0f6a5423234b1d176a8b@10.44.###.###:5060
> CSeq: 102 INVITE
> Server: Asterisk PBX 16.18.0
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
> PUBLISH, MESSAGE
> Supported: replaces, timer
> Contact:
> 
> Content-Type: application/sdp
> Content-Length: 274
>
> v=0
> o=root 1644013823 1644013823 IN IP4 209.###.###.###
> s=Asterisk PBX 16.18.0
> c=IN IP4 209.###.###.###
> t=0 0
> m=audio 19180 RTP/AVP 0 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=ptime:20
> a=maxptime:150
> a=sendrecv
> a=nortpproxy:yes
>
>
> ACK
> sip:209.###.###.###;line=sr-1RaGXx7VX8CAKx1yp8oFKfFqKfFqKfFqKfFVXx9GpxF*
> SIP/2.0
> Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bKf229.9bb425c2.2
> Via: SIP/2.0/UDP
> 206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bKvtgb6f1048h1g6l9s890.1
> Max-Forwards: 67
> From: "Anonymous" ;tag=as471a1f75
> To: ;tag=as199dc3d1
> Contact: 
> Call-ID: 3510f7167e1a0f6a5423234b1d176a8b@10.44.###.###:5060
> CSeq: 102 ACK
> User-Agent: packetrino
> Content-Length: 0
> Route: 
> Route:
> 
>
> --
> ^C
>
>
> On 1/16/22 3:16 PM, Ovidiu Sas wrote:
> > Use your 209.x external IP.
> >
> > On Sun, Jan 16, 2022 at 18:07 Chad  ccolu...@hotmail.com>> wrote:
> >
> > Yes I am using a 172.16.x.x IP and it works, it rewrites the
> headers, but again because 172.16.x.x is also a private IP
> > it is the same as using my real 10.x.x.x IP. The carrier's ACK
> throws away the local IP and sends the response to my
> > 209.x external IP.
> >
> >
> > --
> > ^C
> >
> >
> > On 1/16/22 1:38 PM, Ovidiu Sas wrote:
> >  > Have you tried using the mask_ip param:
> >  >
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> > <
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> >
> >  > <
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> > <
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> >>
> >  >
> >  > -ovidiu
> >  >
> >  > On Sun, Jan 16, 2022 at 16:09 Chad  ccolu...@hotmail.com>
> > >> wrote:
> >  >
> >  > I found a sample config file using topoh, which I copied
> (with some changes) and added the topoh module to my
> > config.
> >  > It works fine, but it does not solve the problem.
> >  > In fact it has the exact same problem, because all the topoh
> module does is replace one private IP with
> > another in the
> >  > 2nd (top most) Record-Route header.
> >  > So the carrier still changes the ACK to the public IP and the
> call is still broken in the exact same way.
> >  > It was super easy to add, but does not work, 1 possible
> solution down.
> >  >
> >  > --
> >  > ^C
> >  >
> >  >
> >  > On 1/16/22 8:26 AM, Ovidiu Sas wrote:
> >  >  > Most of the time, if you get the right person on the
> carrier's side
> >  >  > and you explain the situation, they will come up with a
> solution.
> >  >  > If not, you need to break the RFC in a way that will
> counterpart their breakage.
> >  >  >
> >  >  > The carrier is also using a SIP proxy (maybe kamailio, who
> knows).
> >  >  > In the old days, the default kamailio config was using
> >  >  > fix_nated_contact() to deal with NATed devices and this is
> exactly the
> >  >  > behavior that you are seeing.
> >  >  > The recommended way to deal with NATed devices is to use
> >  >  > add_contact_alias([ip_addr, port, proto]) which is RFC
> compliant.
> >  >  >
> >  >  > There are several solution for this scenario:
> >  >  >   - mangle the signaling to allow proper routing on your
> end
> >  >  >   - use a B2BUA in between your kamailio and carrier
> >  >  >   - configure kamailio to use one of the topology hiding
> modules:
> >  >  > topoh, topos, topos_redis
> >  >  >   - maybe something else ... :)
> >  >  >
> >  >  > There's no right or wrong approach, one must be
> comfortable 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Michael Young

Chad,

In my experience, if you carrier partner is one of the bigger carriers, 
and\or you use multiple carriers, Kamailio is the best solution 
available. With some of the smaller carriers\resellers it just makes 
more sense to use Asterisk rather than argue with them about how they 
are ignoring and breaking RFCs. While Asterisk can be inefficient, it 
generally "just works" in those situations. Based on what I have read of 
your situation in the list I think I can guess which company you are 
working with. Their "SBC" is Freeswitch-based. I have had a similar 
debate with them about RFCs, and yes, you are better off with Asterisk 
in that case.


Michael


On 1/16/2022 5:20 PM, Chad wrote:
I have been reading a lot more about the problem and it seems my 
mangle/unmangle solution is basically B2BUA.
So I need a B2BUA solution and it seems like Kamailio does not really 
do B2BUA.
Instead of installing something else I don't know (SEMS or Sippy), it 
makes more sense to find something that can handle it all.
I have read that opensips has B2BUA functionality built in, so I am 
seriously considering simply replacing Kamailio with opensips.
In reality my system has such a low load I can probably replace 
Kamailio with Asterisk as a B2BUA and it would be fine, but from what 
I have read Asterisk is very inefficient for B2BUA.


--
^C


On 1/16/22 1:38 PM, Ovidiu Sas wrote:

Have you tried using the mask_ip param:
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip 
 



-ovidiu

On Sun, Jan 16, 2022 at 16:09 Chad > wrote:


    I found a sample config file using topoh, which I copied (with 
some changes) and added the topoh module to my config.

    It works fine, but it does not solve the problem.
    In fact it has the exact same problem, because all the topoh 
module does is replace one private IP with another in the

    2nd (top most) Record-Route header.
    So the carrier still changes the ACK to the public IP and the 
call is still broken in the exact same way.
    It was super easy to add, but does not work, 1 possible solution 
down.


    --
    ^C


    On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 > Most of the time, if you get the right person on the carrier's 
side

 > and you explain the situation, they will come up with a solution.
 > If not, you need to break the RFC in a way that will 
counterpart their breakage.

 >
 > The carrier is also using a SIP proxy (maybe kamailio, who 
knows).

 > In the old days, the default kamailio config was using
 > fix_nated_contact() to deal with NATed devices and this is 
exactly the

 > behavior that you are seeing.
 > The recommended way to deal with NATed devices is to use
 > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
 >
 > There are several solution for this scenario:
 >   - mangle the signaling to allow proper routing on your end
 >   - use a B2BUA in between your kamailio and carrier
 >   - configure kamailio to use one of the topology hiding modules:
 > topoh, topos, topos_redis
 >   - maybe something else ... :)
 >
 > There's no right or wrong approach, one must be comfortable 
with the

 > chosen solution to be able to maintain it.
 >
 > -ovidiu
 >
 > On Sat, Jan 15, 2022 at 9:14 PM Chad > wrote:

 >>
 >> Ok so in short I was not doing anything wrong (although I had 
some miss-configurations), but the carrier is

    (i.e. they
 >> are a bad actor). When they said I was doing it wrong, they 
did not mean in the RFC sense they meant in the "to work
 >> with us" sense. Now in order for me to get it to work with 
their SBC I have to mangle the contact on the way out an
 >> unmangle it on the return in Kamailio somehow, as I 
originally purposed.

 >> However I have no idea how to do that :)
 >>
 >> Shouldn't we (the Kamailio community) assume there are lots 
of bad actors out there and possibly many Kamailio users
 >> with this exact same issue (I personally know of at least 2 
bad actor carriers right now) and create some kind of
 >> template or snippet that we can publicly publish on the 
Kamailio docs or wiki for all of the Kamailio community

    to use
 >> for this use case?
 >>
 >> I have been fighting with carriers about this for years and 
they always said I was doing it wrong and I don't

    know the
 >> SIP RFC well enough to fight back. So why not build a 
solution for everyone out there that has to deal with a

    bad actor?
 >>
 >> --
 >> ^C
 >>
 >>
 >> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
 >>> As expected, your carrier is bogus and "thinks" it knows 
better.

 >>> Your carrier is treating your setup as a dumb endpoint and is
 >>> re-writing the Contact header:
 >>> 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Chad

Hmm, it did not fix it (calls still work with my other carriers).
It looks to me like it should work, it does use the external IP for everything.

It generates an error in the log about making your existing address:
topoh [topoh_mod.c:179]: mod_init(): mask address matches myself 
[209.###.###.###]

Here is ther 200 and ACK.
SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bKf229.9bb425c2.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bKrs8bqi00cg14535baf70.1
Record-Route: 

Record-Route: 
Record-Route: 
From: "Anonymous" ;tag=as471a1f75
To: ;tag=as199dc3d1
Call-ID: 3510f7167e1a0f6a5423234b1d176a8b@10.44.###.###:5060
CSeq: 102 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Contact: 

Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1644013823 1644013823 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 19180 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=nortpproxy:yes


ACK sip:209.###.###.###;line=sr-1RaGXx7VX8CAKx1yp8oFKfFqKfFqKfFqKfFVXx9GpxF* 
SIP/2.0
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bKf229.9bb425c2.2
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bKvtgb6f1048h1g6l9s890.1
Max-Forwards: 67
From: "Anonymous" ;tag=as471a1f75
To: ;tag=as199dc3d1
Contact: 
Call-ID: 3510f7167e1a0f6a5423234b1d176a8b@10.44.###.###:5060
CSeq: 102 ACK
User-Agent: packetrino
Content-Length: 0
Route: 
Route: 


--
^C


On 1/16/22 3:16 PM, Ovidiu Sas wrote:

Use your 209.x external IP.

On Sun, Jan 16, 2022 at 18:07 Chad mailto:ccolu...@hotmail.com>> wrote:

Yes I am using a 172.16.x.x IP and it works, it rewrites the headers, but 
again because 172.16.x.x is also a private IP
it is the same as using my real 10.x.x.x IP. The carrier's ACK throws away 
the local IP and sends the response to my
209.x external IP.


--
^C


On 1/16/22 1:38 PM, Ovidiu Sas wrote:
 > Have you tried using the mask_ip param:
 > 
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip


 > 
>
 >
 > -ovidiu
 >
 > On Sun, Jan 16, 2022 at 16:09 Chad mailto:ccolu...@hotmail.com>
>> wrote:
 >
 >     I found a sample config file using topoh, which I copied (with some 
changes) and added the topoh module to my
config.
 >     It works fine, but it does not solve the problem.
 >     In fact it has the exact same problem, because all the topoh module 
does is replace one private IP with
another in the
 >     2nd (top most) Record-Route header.
 >     So the carrier still changes the ACK to the public IP and the call 
is still broken in the exact same way.
 >     It was super easy to add, but does not work, 1 possible solution 
down.
 >
 >     --
 >     ^C
 >
 >
 >     On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 >      > Most of the time, if you get the right person on the carrier's 
side
 >      > and you explain the situation, they will come up with a solution.
 >      > If not, you need to break the RFC in a way that will counterpart 
their breakage.
 >      >
 >      > The carrier is also using a SIP proxy (maybe kamailio, who knows).
 >      > In the old days, the default kamailio config was using
 >      > fix_nated_contact() to deal with NATed devices and this is 
exactly the
 >      > behavior that you are seeing.
 >      > The recommended way to deal with NATed devices is to use
 >      > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
 >      >
 >      > There are several solution for this scenario:
 >      >   - mangle the signaling to allow proper routing on your end
 >      >   - use a B2BUA in between your kamailio and carrier
 >      >   - configure kamailio to use one of the topology hiding modules:
 >      > topoh, topos, topos_redis
 >      >   - maybe something else ... :)
 >      >
 >      > There's no right or wrong approach, one must be comfortable with 
the
 >      > chosen solution to be able to maintain it.
 >      >
 >      > -ovidiu
 >      >
 >      > On Sat, Jan 15, 2022 at 9:14 PM Chad mailto:ccolu...@hotmail.com>
>> wrote:
 >      >>
 >      >> Ok so in short I was not doing anything wrong (although I had 
some miss-configurations), but the carrier is
 >     (i.e. they
 >     

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Chad

If I use my external IP do I turn off enable_double_rr?

--
^C


On 1/16/22 3:16 PM, Ovidiu Sas wrote:

Use your 209.x external IP.

On Sun, Jan 16, 2022 at 18:07 Chad mailto:ccolu...@hotmail.com>> wrote:

Yes I am using a 172.16.x.x IP and it works, it rewrites the headers, but 
again because 172.16.x.x is also a private IP
it is the same as using my real 10.x.x.x IP. The carrier's ACK throws away 
the local IP and sends the response to my
209.x external IP.


--
^C


On 1/16/22 1:38 PM, Ovidiu Sas wrote:
 > Have you tried using the mask_ip param:
 > 
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip


 > 
>
 >
 > -ovidiu
 >
 > On Sun, Jan 16, 2022 at 16:09 Chad mailto:ccolu...@hotmail.com>
>> wrote:
 >
 >     I found a sample config file using topoh, which I copied (with some 
changes) and added the topoh module to my
config.
 >     It works fine, but it does not solve the problem.
 >     In fact it has the exact same problem, because all the topoh module 
does is replace one private IP with
another in the
 >     2nd (top most) Record-Route header.
 >     So the carrier still changes the ACK to the public IP and the call 
is still broken in the exact same way.
 >     It was super easy to add, but does not work, 1 possible solution 
down.
 >
 >     --
 >     ^C
 >
 >
 >     On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 >      > Most of the time, if you get the right person on the carrier's 
side
 >      > and you explain the situation, they will come up with a solution.
 >      > If not, you need to break the RFC in a way that will counterpart 
their breakage.
 >      >
 >      > The carrier is also using a SIP proxy (maybe kamailio, who knows).
 >      > In the old days, the default kamailio config was using
 >      > fix_nated_contact() to deal with NATed devices and this is 
exactly the
 >      > behavior that you are seeing.
 >      > The recommended way to deal with NATed devices is to use
 >      > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
 >      >
 >      > There are several solution for this scenario:
 >      >   - mangle the signaling to allow proper routing on your end
 >      >   - use a B2BUA in between your kamailio and carrier
 >      >   - configure kamailio to use one of the topology hiding modules:
 >      > topoh, topos, topos_redis
 >      >   - maybe something else ... :)
 >      >
 >      > There's no right or wrong approach, one must be comfortable with 
the
 >      > chosen solution to be able to maintain it.
 >      >
 >      > -ovidiu
 >      >
 >      > On Sat, Jan 15, 2022 at 9:14 PM Chad mailto:ccolu...@hotmail.com>
>> wrote:
 >      >>
 >      >> Ok so in short I was not doing anything wrong (although I had 
some miss-configurations), but the carrier is
 >     (i.e. they
 >      >> are a bad actor). When they said I was doing it wrong, they did 
not mean in the RFC sense they meant in
the "to work
 >      >> with us" sense. Now in order for me to get it to work with their 
SBC I have to mangle the contact on the
way out an
 >      >> unmangle it on the return in Kamailio somehow, as I originally 
purposed.
 >      >> However I have no idea how to do that :)
 >      >>
 >      >> Shouldn't we (the Kamailio community) assume there are lots of 
bad actors out there and possibly many
Kamailio users
 >      >> with this exact same issue (I personally know of at least 2 bad 
actor carriers right now) and create some
kind of
 >      >> template or snippet that we can publicly publish on the Kamailio 
docs or wiki for all of the Kamailio
community
 >     to use
 >      >> for this use case?
 >      >>
 >      >> I have been fighting with carriers about this for years and they 
always said I was doing it wrong and I don't
 >     know the
 >      >> SIP RFC well enough to fight back. So why not build a solution 
for everyone out there that has to deal with a
 >     bad actor?
 >      >>
 >      >> --
 >      >> ^C
 >      >>
 >      >>
 >      >> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
 >      >>> As expected, your carrier is bogus and "thinks" it knows better.
 >      >>> Your carrier is treating your setup as a dumb endpoint and is
 >      >>> re-writing the Contact header:
 >      >>> You provide this contact header in 200 OK:
 >     

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Chad

I have been reading a lot more about the problem and it seems my 
mangle/unmangle solution is basically B2BUA.
So I need a B2BUA solution and it seems like Kamailio does not really do B2BUA.
Instead of installing something else I don't know (SEMS or Sippy), it makes more sense to find something that can handle 
it all.
I have read that opensips has B2BUA functionality built in, so I am seriously considering simply replacing Kamailio with 
opensips.
In reality my system has such a low load I can probably replace Kamailio with Asterisk as a B2BUA and it would be fine, 
but from what I have read Asterisk is very inefficient for B2BUA.


--
^C


On 1/16/22 1:38 PM, Ovidiu Sas wrote:

Have you tried using the mask_ip param:
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip 



-ovidiu

On Sun, Jan 16, 2022 at 16:09 Chad mailto:ccolu...@hotmail.com>> wrote:

I found a sample config file using topoh, which I copied (with some 
changes) and added the topoh module to my config.
It works fine, but it does not solve the problem.
In fact it has the exact same problem, because all the topoh module does is 
replace one private IP with another in the
2nd (top most) Record-Route header.
So the carrier still changes the ACK to the public IP and the call is still 
broken in the exact same way.
It was super easy to add, but does not work, 1 possible solution down.

--
^C


On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 > Most of the time, if you get the right person on the carrier's side
 > and you explain the situation, they will come up with a solution.
 > If not, you need to break the RFC in a way that will counterpart their 
breakage.
 >
 > The carrier is also using a SIP proxy (maybe kamailio, who knows).
 > In the old days, the default kamailio config was using
 > fix_nated_contact() to deal with NATed devices and this is exactly the
 > behavior that you are seeing.
 > The recommended way to deal with NATed devices is to use
 > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
 >
 > There are several solution for this scenario:
 >   - mangle the signaling to allow proper routing on your end
 >   - use a B2BUA in between your kamailio and carrier
 >   - configure kamailio to use one of the topology hiding modules:
 > topoh, topos, topos_redis
 >   - maybe something else ... :)
 >
 > There's no right or wrong approach, one must be comfortable with the
 > chosen solution to be able to maintain it.
 >
 > -ovidiu
 >
 > On Sat, Jan 15, 2022 at 9:14 PM Chad mailto:ccolu...@hotmail.com>> wrote:
 >>
 >> Ok so in short I was not doing anything wrong (although I had some 
miss-configurations), but the carrier is
(i.e. they
 >> are a bad actor). When they said I was doing it wrong, they did not mean in 
the RFC sense they meant in the "to work
 >> with us" sense. Now in order for me to get it to work with their SBC I 
have to mangle the contact on the way out an
 >> unmangle it on the return in Kamailio somehow, as I originally purposed.
 >> However I have no idea how to do that :)
 >>
 >> Shouldn't we (the Kamailio community) assume there are lots of bad 
actors out there and possibly many Kamailio users
 >> with this exact same issue (I personally know of at least 2 bad actor 
carriers right now) and create some kind of
 >> template or snippet that we can publicly publish on the Kamailio docs 
or wiki for all of the Kamailio community
to use
 >> for this use case?
 >>
 >> I have been fighting with carriers about this for years and they always 
said I was doing it wrong and I don't
know the
 >> SIP RFC well enough to fight back. So why not build a solution for 
everyone out there that has to deal with a
bad actor?
 >>
 >> --
 >> ^C
 >>
 >>
 >> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
 >>> As expected, your carrier is bogus and "thinks" it knows better.
 >>> Your carrier is treating your setup as a dumb endpoint and is
 >>> re-writing the Contact header:
 >>> You provide this contact header in 200 OK:
 >>> Contact: 
 >>> The carrier should set the RURI in ACK like this:
 >>> ACK sip:928###@10.###.###.104:5060 SIP/2.0
 >>> Instead, your ACK is sent to you like this:
 >>> ACK sip:928###@209.###.###.###:5060 SIP/2.0
 >>>
 >>> The RURI in ACK should point to the private IP of the asterisk server,
 >>> not to the public IP of the kamailio server.
 >>> You need to ask the carrier to follow the SIP RFC and not treat your
 >>> endpoints like dumb SIP endpoints.
 >>>
 >>> There's a high chance that they won't do it :)
 >>> Your best chance is to manually mangle the URI in Contact in the 200
 >>> OK in a way that when you 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Ovidiu Sas
Use your 209.x external IP.

On Sun, Jan 16, 2022 at 18:07 Chad  wrote:

> Yes I am using a 172.16.x.x IP and it works, it rewrites the headers, but
> again because 172.16.x.x is also a private IP
> it is the same as using my real 10.x.x.x IP. The carrier's ACK throws away
> the local IP and sends the response to my
> 209.x external IP.
>
>
> --
> ^C
>
>
> On 1/16/22 1:38 PM, Ovidiu Sas wrote:
> > Have you tried using the mask_ip param:
> >
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> > <
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> >
> >
> > -ovidiu
> >
> > On Sun, Jan 16, 2022 at 16:09 Chad  ccolu...@hotmail.com>> wrote:
> >
> > I found a sample config file using topoh, which I copied (with some
> changes) and added the topoh module to my config.
> > It works fine, but it does not solve the problem.
> > In fact it has the exact same problem, because all the topoh module
> does is replace one private IP with another in the
> > 2nd (top most) Record-Route header.
> > So the carrier still changes the ACK to the public IP and the call
> is still broken in the exact same way.
> > It was super easy to add, but does not work, 1 possible solution
> down.
> >
> > --
> > ^C
> >
> >
> > On 1/16/22 8:26 AM, Ovidiu Sas wrote:
> >  > Most of the time, if you get the right person on the carrier's
> side
> >  > and you explain the situation, they will come up with a solution.
> >  > If not, you need to break the RFC in a way that will counterpart
> their breakage.
> >  >
> >  > The carrier is also using a SIP proxy (maybe kamailio, who knows).
> >  > In the old days, the default kamailio config was using
> >  > fix_nated_contact() to deal with NATed devices and this is
> exactly the
> >  > behavior that you are seeing.
> >  > The recommended way to deal with NATed devices is to use
> >  > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
> >  >
> >  > There are several solution for this scenario:
> >  >   - mangle the signaling to allow proper routing on your end
> >  >   - use a B2BUA in between your kamailio and carrier
> >  >   - configure kamailio to use one of the topology hiding modules:
> >  > topoh, topos, topos_redis
> >  >   - maybe something else ... :)
> >  >
> >  > There's no right or wrong approach, one must be comfortable with
> the
> >  > chosen solution to be able to maintain it.
> >  >
> >  > -ovidiu
> >  >
> >  > On Sat, Jan 15, 2022 at 9:14 PM Chad  > wrote:
> >  >>
> >  >> Ok so in short I was not doing anything wrong (although I had
> some miss-configurations), but the carrier is
> > (i.e. they
> >  >> are a bad actor). When they said I was doing it wrong, they did
> not mean in the RFC sense they meant in the "to work
> >  >> with us" sense. Now in order for me to get it to work with their
> SBC I have to mangle the contact on the way out an
> >  >> unmangle it on the return in Kamailio somehow, as I originally
> purposed.
> >  >> However I have no idea how to do that :)
> >  >>
> >  >> Shouldn't we (the Kamailio community) assume there are lots of
> bad actors out there and possibly many Kamailio users
> >  >> with this exact same issue (I personally know of at least 2 bad
> actor carriers right now) and create some kind of
> >  >> template or snippet that we can publicly publish on the Kamailio
> docs or wiki for all of the Kamailio community
> > to use
> >  >> for this use case?
> >  >>
> >  >> I have been fighting with carriers about this for years and they
> always said I was doing it wrong and I don't
> > know the
> >  >> SIP RFC well enough to fight back. So why not build a solution
> for everyone out there that has to deal with a
> > bad actor?
> >  >>
> >  >> --
> >  >> ^C
> >  >>
> >  >>
> >  >> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
> >  >>> As expected, your carrier is bogus and "thinks" it knows better.
> >  >>> Your carrier is treating your setup as a dumb endpoint and is
> >  >>> re-writing the Contact header:
> >  >>> You provide this contact header in 200 OK:
> >  >>> Contact: 
> >  >>> The carrier should set the RURI in ACK like this:
> >  >>> ACK sip:928###@10.###.###.104:5060 SIP/2.0
> >  >>> Instead, your ACK is sent to you like this:
> >  >>> ACK sip:928###@209.###.###.###:5060 SIP/2.0
> >  >>>
> >  >>> The RURI in ACK should point to the private IP of the asterisk
> server,
> >  >>> not to the public IP of the kamailio server.
> >  >>> You need to ask the carrier to follow the SIP RFC and not treat
> your
> >  >>> endpoints like dumb SIP endpoints.
> >  >>>
> >  >>> There's a high chance that they won't do it :)
> >  >>> Your best chance is to manually 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Chad
Yes I am using a 172.16.x.x IP and it works, it rewrites the headers, but again because 172.16.x.x is also a private IP 
it is the same as using my real 10.x.x.x IP. The carrier's ACK throws away the local IP and sends the response to my 
209.x external IP.



--
^C


On 1/16/22 1:38 PM, Ovidiu Sas wrote:

Have you tried using the mask_ip param:
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip 



-ovidiu

On Sun, Jan 16, 2022 at 16:09 Chad mailto:ccolu...@hotmail.com>> wrote:

I found a sample config file using topoh, which I copied (with some 
changes) and added the topoh module to my config.
It works fine, but it does not solve the problem.
In fact it has the exact same problem, because all the topoh module does is 
replace one private IP with another in the
2nd (top most) Record-Route header.
So the carrier still changes the ACK to the public IP and the call is still 
broken in the exact same way.
It was super easy to add, but does not work, 1 possible solution down.

--
^C


On 1/16/22 8:26 AM, Ovidiu Sas wrote:
 > Most of the time, if you get the right person on the carrier's side
 > and you explain the situation, they will come up with a solution.
 > If not, you need to break the RFC in a way that will counterpart their 
breakage.
 >
 > The carrier is also using a SIP proxy (maybe kamailio, who knows).
 > In the old days, the default kamailio config was using
 > fix_nated_contact() to deal with NATed devices and this is exactly the
 > behavior that you are seeing.
 > The recommended way to deal with NATed devices is to use
 > add_contact_alias([ip_addr, port, proto]) which is RFC compliant.
 >
 > There are several solution for this scenario:
 >   - mangle the signaling to allow proper routing on your end
 >   - use a B2BUA in between your kamailio and carrier
 >   - configure kamailio to use one of the topology hiding modules:
 > topoh, topos, topos_redis
 >   - maybe something else ... :)
 >
 > There's no right or wrong approach, one must be comfortable with the
 > chosen solution to be able to maintain it.
 >
 > -ovidiu
 >
 > On Sat, Jan 15, 2022 at 9:14 PM Chad mailto:ccolu...@hotmail.com>> wrote:
 >>
 >> Ok so in short I was not doing anything wrong (although I had some 
miss-configurations), but the carrier is
(i.e. they
 >> are a bad actor). When they said I was doing it wrong, they did not mean in 
the RFC sense they meant in the "to work
 >> with us" sense. Now in order for me to get it to work with their SBC I 
have to mangle the contact on the way out an
 >> unmangle it on the return in Kamailio somehow, as I originally purposed.
 >> However I have no idea how to do that :)
 >>
 >> Shouldn't we (the Kamailio community) assume there are lots of bad 
actors out there and possibly many Kamailio users
 >> with this exact same issue (I personally know of at least 2 bad actor 
carriers right now) and create some kind of
 >> template or snippet that we can publicly publish on the Kamailio docs 
or wiki for all of the Kamailio community
to use
 >> for this use case?
 >>
 >> I have been fighting with carriers about this for years and they always 
said I was doing it wrong and I don't
know the
 >> SIP RFC well enough to fight back. So why not build a solution for 
everyone out there that has to deal with a
bad actor?
 >>
 >> --
 >> ^C
 >>
 >>
 >> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
 >>> As expected, your carrier is bogus and "thinks" it knows better.
 >>> Your carrier is treating your setup as a dumb endpoint and is
 >>> re-writing the Contact header:
 >>> You provide this contact header in 200 OK:
 >>> Contact: 
 >>> The carrier should set the RURI in ACK like this:
 >>> ACK sip:928###@10.###.###.104:5060 SIP/2.0
 >>> Instead, your ACK is sent to you like this:
 >>> ACK sip:928###@209.###.###.###:5060 SIP/2.0
 >>>
 >>> The RURI in ACK should point to the private IP of the asterisk server,
 >>> not to the public IP of the kamailio server.
 >>> You need to ask the carrier to follow the SIP RFC and not treat your
 >>> endpoints like dumb SIP endpoints.
 >>>
 >>> There's a high chance that they won't do it :)
 >>> Your best chance is to manually mangle the URI in Contact in the 200
 >>> OK in a way that when you receive the ACK with the mangled RURI, you
 >>> can restore the original URI and let kamailio do the proper routing to
 >>> the private IP of the asterisk serverr.
 >>> You should be able to achieve this by using one of the following 
functions:
 >>> 
https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact


Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Chad

I found a sample config file using topoh, which I copied (with some changes) 
and added the topoh module to my config.
It works fine, but it does not solve the problem.
In fact it has the exact same problem, because all the topoh module does is replace one private IP with another in the 
2nd (top most) Record-Route header.

So the carrier still changes the ACK to the public IP and the call is still 
broken in the exact same way.
It was super easy to add, but does not work, 1 possible solution down.

--
^C


On 1/16/22 8:26 AM, Ovidiu Sas wrote:

Most of the time, if you get the right person on the carrier's side
and you explain the situation, they will come up with a solution.
If not, you need to break the RFC in a way that will counterpart their breakage.

The carrier is also using a SIP proxy (maybe kamailio, who knows).
In the old days, the default kamailio config was using
fix_nated_contact() to deal with NATed devices and this is exactly the
behavior that you are seeing.
The recommended way to deal with NATed devices is to use
add_contact_alias([ip_addr, port, proto]) which is RFC compliant.

There are several solution for this scenario:
  - mangle the signaling to allow proper routing on your end
  - use a B2BUA in between your kamailio and carrier
  - configure kamailio to use one of the topology hiding modules:
topoh, topos, topos_redis
  - maybe something else ... :)

There's no right or wrong approach, one must be comfortable with the
chosen solution to be able to maintain it.

-ovidiu

On Sat, Jan 15, 2022 at 9:14 PM Chad  wrote:


Ok so in short I was not doing anything wrong (although I had some 
miss-configurations), but the carrier is (i.e. they
are a bad actor). When they said I was doing it wrong, they did not mean in the RFC 
sense they meant in the "to work
with us" sense. Now in order for me to get it to work with their SBC I have to 
mangle the contact on the way out an
unmangle it on the return in Kamailio somehow, as I originally purposed.
However I have no idea how to do that :)

Shouldn't we (the Kamailio community) assume there are lots of bad actors out 
there and possibly many Kamailio users
with this exact same issue (I personally know of at least 2 bad actor carriers 
right now) and create some kind of
template or snippet that we can publicly publish on the Kamailio docs or wiki 
for all of the Kamailio community to use
for this use case?

I have been fighting with carriers about this for years and they always said I 
was doing it wrong and I don't know the
SIP RFC well enough to fight back. So why not build a solution for everyone out 
there that has to deal with a bad actor?

--
^C


On 1/15/22 11:40 AM, Ovidiu Sas wrote:

As expected, your carrier is bogus and "thinks" it knows better.
Your carrier is treating your setup as a dumb endpoint and is
re-writing the Contact header:
You provide this contact header in 200 OK:
Contact: 
The carrier should set the RURI in ACK like this:
ACK sip:928###@10.###.###.104:5060 SIP/2.0
Instead, your ACK is sent to you like this:
ACK sip:928###@209.###.###.###:5060 SIP/2.0

The RURI in ACK should point to the private IP of the asterisk server,
not to the public IP of the kamailio server.
You need to ask the carrier to follow the SIP RFC and not treat your
endpoints like dumb SIP endpoints.

There's a high chance that they won't do it :)
Your best chance is to manually mangle the URI in Contact in the 200
OK in a way that when you receive the ACK with the mangled RURI, you
can restore the original URI and let kamailio do the proper routing to
the private IP of the asterisk serverr.
You should be able to achieve this by using one of the following functions:
https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.encode_contact
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode

Regards,
Ovidiu Sas

On Sat, Jan 15, 2022 at 1:28 PM Chad  wrote:


I changed the listen per your advice and here is the 200 and ACK.
I get no audio and the the call disconnects and I see this is the Asterisk log:
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Retransmission timeout reached on 
transmission
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 for seqno 102 (Critical 
Response) -- See
https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6401ms with no response
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Hanging up call 
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 - no
reply to our critical packet (see https://wiki.asterisk.org/wik

FYI 10.###.###.254 is the private virtual IP on the Kamailio server and 
10.###.###.104 is the asterisk box.

SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
Record-Route: 
Record-Route: 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Ovidiu Sas
Most of the time, if you get the right person on the carrier's side
and you explain the situation, they will come up with a solution.
If not, you need to break the RFC in a way that will counterpart their breakage.

The carrier is also using a SIP proxy (maybe kamailio, who knows).
In the old days, the default kamailio config was using
fix_nated_contact() to deal with NATed devices and this is exactly the
behavior that you are seeing.
The recommended way to deal with NATed devices is to use
add_contact_alias([ip_addr, port, proto]) which is RFC compliant.

There are several solution for this scenario:
 - mangle the signaling to allow proper routing on your end
 - use a B2BUA in between your kamailio and carrier
 - configure kamailio to use one of the topology hiding modules:
topoh, topos, topos_redis
 - maybe something else ... :)

There's no right or wrong approach, one must be comfortable with the
chosen solution to be able to maintain it.

-ovidiu

On Sat, Jan 15, 2022 at 9:14 PM Chad  wrote:
>
> Ok so in short I was not doing anything wrong (although I had some 
> miss-configurations), but the carrier is (i.e. they
> are a bad actor). When they said I was doing it wrong, they did not mean in 
> the RFC sense they meant in the "to work
> with us" sense. Now in order for me to get it to work with their SBC I have 
> to mangle the contact on the way out an
> unmangle it on the return in Kamailio somehow, as I originally purposed.
> However I have no idea how to do that :)
>
> Shouldn't we (the Kamailio community) assume there are lots of bad actors out 
> there and possibly many Kamailio users
> with this exact same issue (I personally know of at least 2 bad actor 
> carriers right now) and create some kind of
> template or snippet that we can publicly publish on the Kamailio docs or wiki 
> for all of the Kamailio community to use
> for this use case?
>
> I have been fighting with carriers about this for years and they always said 
> I was doing it wrong and I don't know the
> SIP RFC well enough to fight back. So why not build a solution for everyone 
> out there that has to deal with a bad actor?
>
> --
> ^C
>
>
> On 1/15/22 11:40 AM, Ovidiu Sas wrote:
> > As expected, your carrier is bogus and "thinks" it knows better.
> > Your carrier is treating your setup as a dumb endpoint and is
> > re-writing the Contact header:
> > You provide this contact header in 200 OK:
> > Contact: 
> > The carrier should set the RURI in ACK like this:
> > ACK sip:928###@10.###.###.104:5060 SIP/2.0
> > Instead, your ACK is sent to you like this:
> > ACK sip:928###@209.###.###.###:5060 SIP/2.0
> >
> > The RURI in ACK should point to the private IP of the asterisk server,
> > not to the public IP of the kamailio server.
> > You need to ask the carrier to follow the SIP RFC and not treat your
> > endpoints like dumb SIP endpoints.
> >
> > There's a high chance that they won't do it :)
> > Your best chance is to manually mangle the URI in Contact in the 200
> > OK in a way that when you receive the ACK with the mangled RURI, you
> > can restore the original URI and let kamailio do the proper routing to
> > the private IP of the asterisk serverr.
> > You should be able to achieve this by using one of the following functions:
> > https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact
> > https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.encode_contact
> > https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode
> >
> > Regards,
> > Ovidiu Sas
> >
> > On Sat, Jan 15, 2022 at 1:28 PM Chad  wrote:
> >>
> >> I changed the listen per your advice and here is the 200 and ACK.
> >> I get no audio and the the call disconnects and I see this is the Asterisk 
> >> log:
> >> [Jan 15 10:17:13] WARNING[29953] chan_sip.c: Retransmission timeout 
> >> reached on transmission
> >> 5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 for seqno 102 
> >> (Critical Response) -- See
> >> https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
> >> Packet timed out after 6401ms with no response
> >> [Jan 15 10:17:13] WARNING[29953] chan_sip.c: Hanging up call 
> >> 5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 - no
> >> reply to our critical packet (see https://wiki.asterisk.org/wik
> >>
> >> FYI 10.###.###.254 is the private virtual IP on the Kamailio server and 
> >> 10.###.###.104 is the asterisk box.
> >>
> >> SIP/2.0 200 OK
> >> Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
> >> Via: SIP/2.0/UDP 
> >> 206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
> >> Record-Route: 
> >> Record-Route: 
> >> Record-Route: 
> >> From: "Anonymous" ;tag=as04035ef0
> >> To: ;tag=as7047ed05
> >> Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
> >> CSeq: 102 INVITE
> >> Server: Asterisk PBX 16.18.0
> >> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
> 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Chad
e same point, I just added a little bit more information for you to fight with your SIP 
provider. It is better to ask what RFC they are following on the basis of which they are writing the Kamailio public IP 
in the 200 OK ACK message?


Regards,
Shah Hussain


*From:* sr-users  on behalf of Chad 

*Sent:* Sunday, January 16, 2022 10:14 AM
*To:* Ovidiu Sas 
*Cc:* Kamailio (SER) - Users Mailing List 
*Subject:* Re: [SR-Users] Help with rewriting headers for NAT manually
Ok so in short I was not doing anything wrong (although I had some 
miss-configurations), but the carrier is (i.e. they
are a bad actor). When they said I was doing it wrong, they did not mean in the RFC 
sense they meant in the "to work
with us" sense. Now in order for me to get it to work with their SBC I have to 
mangle the contact on the way out an
unmangle it on the return in Kamailio somehow, as I originally purposed.
However I have no idea how to do that :)

Shouldn't we (the Kamailio community) assume there are lots of bad actors out 
there and possibly many Kamailio users
with this exact same issue (I personally know of at least 2 bad actor carriers 
right now) and create some kind of
template or snippet that we can publicly publish on the Kamailio docs or wiki 
for all of the Kamailio community to use
for this use case?

I have been fighting with carriers about this for years and they always said I 
was doing it wrong and I don't know the
SIP RFC well enough to fight back. So why not build a solution for everyone out 
there that has to deal with a bad actor?

--
^C


On 1/15/22 11:40 AM, Ovidiu Sas wrote:

As expected, your carrier is bogus and "thinks" it knows better.
Your carrier is treating your setup as a dumb endpoint and is
re-writing the Contact header:
You provide this contact header in 200 OK:
Contact: 
The carrier should set the RURI in ACK like this:
ACK sip:928###@10.###.###.104:5060 SIP/2.0
Instead, your ACK is sent to you like this:
ACK sip:928###@209.###.###.###:5060 SIP/2.0

The RURI in ACK should point to the private IP of the asterisk server,
not to the public IP of the kamailio server.
You need to ask the carrier to follow the SIP RFC and not treat your
endpoints like dumb SIP endpoints.

There's a high chance that they won't do it :)
Your best chance is to manually mangle the URI in Contact in the 200
OK in a way that when you receive the ACK with the mangled RURI, you
can restore the original URI and let kamailio do the proper routing to
the private IP of the asterisk serverr.
You should be able to achieve this by using one of the following functions:
https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact 

<https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact>
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.encode_contact 

<https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.encode_contact>
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode 

<https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode>


Regards,
Ovidiu Sas

On Sat, Jan 15, 2022 at 1:28 PM Chad  wrote:


I changed the listen per your advice and here is the 200 and ACK.
I get no audio and the the call disconnects and I see this is the Asterisk log:
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Retransmission timeout reached on 
transmission
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 for seqno 102 (Critical 
Response) -- See
https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions 

<https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions>

Packet timed out after 6401ms with no response
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Hanging up call 
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 - no
reply to our critical packet (see https://wiki.asterisk.org/wik 
<https://wiki.asterisk.org/wik>

FYI 10.###.###.254 is the private virtual IP on the Kamailio server and 
10.###.###.104 is the asterisk box.

SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
Record-Route: 
Record-Route: 
Record-Route: 
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Contact: 
Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1911037741 1911037741 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 11384 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-16 Thread Shah Hussain Khattak
Hi There,

If I look at the latest SIP trace you shared:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
Record-Route: 
Record-Route: 
Record-Route: 
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Contact: 
Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1911037741 1911037741 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 11384 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=nortpproxy:yes

ACK sip:928###@209.###.###.###:5060 SIP/2.0
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.2
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK91l3it006gr9oiulcqn0.1
Max-Forwards: 67
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Contact: 
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 ACK
User-Agent: packetrino
Content-Length: 0
Route: 
Route: 

The ACK is getting sent to the Kamailio with correct Route information:

Route: 
Route: 

The Kamailio server should strip the 1st and 2nd Route(s) header from the ACK 
and should relay it towards the next-hop as per the request URI. Please note 
that Kamailio is sending Double RR headers ( When a Proxy receives a request on 
one network interface and sends it onwards using a different interface e.g. WAN 
to LAN, this will normally require the addition of an extra Record-Route 
header. i.e. the Proxy must add two RR headers where you might normally expect 
it to add one.)

Record-Route: 
Record-Route: 

The problem is, the peer behavior is not compliant with the specs. It is 
sending the ACK with RURI set to:

ACK sip:928###@209.###.###.###:5060 SIP/2.0

Ideally, it should have sent the ACK with the following Request-URI:

 ACK sip:928###@10.###.###.104:5060 SIP/2.0

Once this ACK will be received on Kamailio, it will relay it towards the 
Asterisk IP, which is 10.###.###.104.

For further understanding of the ACK routing, you can refer to the following 
post:

https://lists.cs.columbia.edu/pipermail/sip-implementors/2019-February/031229.html

The peer is not copying the 200 OK Contact header URI into the ACK message and 
it is a problem.

Lastly, the trace might be showing only part of the puzzle, it is also 
suggested to get a capture on the remote peer end, because it is sending the 
209.###.###.### IP in the ACK, which seems to be the public interface of the 
Kamailio server. I am not sure if there is some device in the path, that is 
changing the contact IP in the 200 OK to the Kamailio public IP?

Ovidiu also explained the same point, I just added a little bit more 
information for you to fight with your SIP provider. It is better to ask what 
RFC they are following on the basis of which they are writing the Kamailio 
public IP in the 200 OK ACK message?

Regards,
Shah Hussain


From: sr-users  on behalf of Chad 

Sent: Sunday, January 16, 2022 10:14 AM
To: Ovidiu Sas 
Cc: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] Help with rewriting headers for NAT manually

Ok so in short I was not doing anything wrong (although I had some 
miss-configurations), but the carrier is (i.e. they
are a bad actor). When they said I was doing it wrong, they did not mean in the 
RFC sense they meant in the "to work
with us" sense. Now in order for me to get it to work with their SBC I have to 
mangle the contact on the way out an
unmangle it on the return in Kamailio somehow, as I originally purposed.
However I have no idea how to do that :)

Shouldn't we (the Kamailio community) assume there are lots of bad actors out 
there and possibly many Kamailio users
with this exact same issue (I personally know of at least 2 bad actor carriers 
right now) and create some kind of
template or snippet that we can publicly publish on the Kamailio docs or wiki 
for all of the Kamailio community to use
for this use case?

I have been fighting with carriers about this for years and they always said I 
was doing it wrong and I don't know the
SIP RFC well enough to fight back. So why not build a solution for everyone out 
there that has to deal with a bad actor?

--
^C


On 1/15/22 11:40 AM, Ovidiu Sas wrote:
> As expected, your carrier is bogus and "thinks" it knows better.
> Your carrier is treating your setup as a dumb endpoint and is
> re-writing the Contact header:
> You provide this contact header in 200 OK:
> Contact: 
> The carrier should set the RURI in ACK like this:
> ACK sip:928###@10.###

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad
Ok so in short I was not doing anything wrong (although I had some miss-configurations), but the carrier is (i.e. they 
are a bad actor). When they said I was doing it wrong, they did not mean in the RFC sense they meant in the "to work 
with us" sense. Now in order for me to get it to work with their SBC I have to mangle the contact on the way out an 
unmangle it on the return in Kamailio somehow, as I originally purposed.

However I have no idea how to do that :)

Shouldn't we (the Kamailio community) assume there are lots of bad actors out there and possibly many Kamailio users 
with this exact same issue (I personally know of at least 2 bad actor carriers right now) and create some kind of 
template or snippet that we can publicly publish on the Kamailio docs or wiki for all of the Kamailio community to use 
for this use case?


I have been fighting with carriers about this for years and they always said I was doing it wrong and I don't know the 
SIP RFC well enough to fight back. So why not build a solution for everyone out there that has to deal with a bad actor?


--
^C


On 1/15/22 11:40 AM, Ovidiu Sas wrote:

As expected, your carrier is bogus and "thinks" it knows better.
Your carrier is treating your setup as a dumb endpoint and is
re-writing the Contact header:
You provide this contact header in 200 OK:
Contact: 
The carrier should set the RURI in ACK like this:
ACK sip:928###@10.###.###.104:5060 SIP/2.0
Instead, your ACK is sent to you like this:
ACK sip:928###@209.###.###.###:5060 SIP/2.0

The RURI in ACK should point to the private IP of the asterisk server,
not to the public IP of the kamailio server.
You need to ask the carrier to follow the SIP RFC and not treat your
endpoints like dumb SIP endpoints.

There's a high chance that they won't do it :)
Your best chance is to manually mangle the URI in Contact in the 200
OK in a way that when you receive the ACK with the mangled RURI, you
can restore the original URI and let kamailio do the proper routing to
the private IP of the asterisk serverr.
You should be able to achieve this by using one of the following functions:
https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.encode_contact
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode

Regards,
Ovidiu Sas

On Sat, Jan 15, 2022 at 1:28 PM Chad  wrote:


I changed the listen per your advice and here is the 200 and ACK.
I get no audio and the the call disconnects and I see this is the Asterisk log:
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Retransmission timeout reached on 
transmission
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 for seqno 102 (Critical 
Response) -- See
https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 6401ms with no response
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Hanging up call 
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 - no
reply to our critical packet (see https://wiki.asterisk.org/wik

FYI 10.###.###.254 is the private virtual IP on the Kamailio server and 
10.###.###.104 is the asterisk box.

SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
Record-Route: 
Record-Route: 
Record-Route: 
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Contact: 
Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1911037741 1911037741 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 11384 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=nortpproxy:yes

ACK sip:928###@209.###.###.###:5060 SIP/2.0
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.2
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK91l3it006gr9oiulcqn0.1
Max-Forwards: 67
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Contact: 
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 ACK
User-Agent: packetrino
Content-Length: 0
Route: 
Route: 


--
^C


On 1/15/22 10:21 AM, Ovidiu Sas wrote:

This is false. The IP in the Contact header must be routable by the
SIP hop from the top Record-Route header in the reply.
The carrier (and it seems that they have a PROXY also) must be able to
route to their adjacent SIP hop, which is your public IP (the IP in
the second Record-Route header).
It seems that the carrier is not taking into account that they might
interface with other proxies.
Most likely, your carrier expects to interface with a simple SIP 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
As expected, your carrier is bogus and "thinks" it knows better.
Your carrier is treating your setup as a dumb endpoint and is
re-writing the Contact header:
You provide this contact header in 200 OK:
Contact: 
The carrier should set the RURI in ACK like this:
ACK sip:928###@10.###.###.104:5060 SIP/2.0
Instead, your ACK is sent to you like this:
ACK sip:928###@209.###.###.###:5060 SIP/2.0

The RURI in ACK should point to the private IP of the asterisk server,
not to the public IP of the kamailio server.
You need to ask the carrier to follow the SIP RFC and not treat your
endpoints like dumb SIP endpoints.

There's a high chance that they won't do it :)
Your best chance is to manually mangle the URI in Contact in the 200
OK in a way that when you receive the ACK with the mangled RURI, you
can restore the original URI and let kamailio do the proper routing to
the private IP of the asterisk serverr.
You should be able to achieve this by using one of the following functions:
https://kamailio.org/docs/modules/5.5.x/modules/mangler.html#mangler.f.encode_contact
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.encode_contact
https://kamailio.org/docs/modules/5.5.x/modules/siputils.html#siputils.f.contact_param_encode

Regards,
Ovidiu Sas

On Sat, Jan 15, 2022 at 1:28 PM Chad  wrote:
>
> I changed the listen per your advice and here is the 200 and ACK.
> I get no audio and the the call disconnects and I see this is the Asterisk 
> log:
> [Jan 15 10:17:13] WARNING[29953] chan_sip.c: Retransmission timeout reached 
> on transmission
> 5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 for seqno 102 (Critical 
> Response) -- See
> https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
> Packet timed out after 6401ms with no response
> [Jan 15 10:17:13] WARNING[29953] chan_sip.c: Hanging up call 
> 5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 - no
> reply to our critical packet (see https://wiki.asterisk.org/wik
>
> FYI 10.###.###.254 is the private virtual IP on the Kamailio server and 
> 10.###.###.104 is the asterisk box.
>
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
> Via: SIP/2.0/UDP 
> 206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
> Record-Route: 
> Record-Route: 
> Record-Route: 
> From: "Anonymous" ;tag=as04035ef0
> To: ;tag=as7047ed05
> Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
> CSeq: 102 INVITE
> Server: Asterisk PBX 16.18.0
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
> PUBLISH, MESSAGE
> Supported: replaces, timer
> Contact: 
> Content-Type: application/sdp
> Content-Length: 274
>
> v=0
> o=root 1911037741 1911037741 IN IP4 209.###.###.###
> s=Asterisk PBX 16.18.0
> c=IN IP4 209.###.###.###
> t=0 0
> m=audio 11384 RTP/AVP 0 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=ptime:20
> a=maxptime:150
> a=sendrecv
> a=nortpproxy:yes
>
> ACK sip:928###@209.###.###.###:5060 SIP/2.0
> Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.2
> Via: SIP/2.0/UDP 
> 206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK91l3it006gr9oiulcqn0.1
> Max-Forwards: 67
> From: "Anonymous" ;tag=as04035ef0
> To: ;tag=as7047ed05
> Contact: 
> Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
> CSeq: 102 ACK
> User-Agent: packetrino
> Content-Length: 0
> Route: 
> Route: 
>
>
> --
> ^C
>
>
> On 1/15/22 10:21 AM, Ovidiu Sas wrote:
> > This is false. The IP in the Contact header must be routable by the
> > SIP hop from the top Record-Route header in the reply.
> > The carrier (and it seems that they have a PROXY also) must be able to
> > route to their adjacent SIP hop, which is your public IP (the IP in
> > the second Record-Route header).
> > It seems that the carrier is not taking into account that they might
> > interface with other proxies.
> > Most likely, your carrier expects to interface with a simple SIP UA,
> > not with another proxy. This is a pretty common setup for most of the
> > carriers, although many new carrier implementations are taking care of
> > the proxy to proxy calls.
> >
> > It would be helpful to see the ACK that is sent by the carrier in
> > response to your 200ok (after you fix your config and you have your
> > private IP listed in the Record-Route header).
> >
> > -ovidiu
> >
> > On Sat, Jan 15, 2022 at 12:33 PM Chad  wrote:
> >>
> >> Hmm, I don't think you are right that the Contact header can be a private 
> >> IP even if the RR is correct.
> >> I did some research on it and I found several places saying it must be a 
> >> routable IP which is what the carrier also said.
> >>
> >> "The Contact header contains the SIP URI where the client wants to be 
> >> contacted for subsequent requests. That means that
> >> the host part of the URI must be globally reachable by anyone.
> >> If your contact contains a private IP (behind a NAT?) then 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad

I changed the listen per your advice and here is the 200 and ACK.
I get no audio and the the call disconnects and I see this is the Asterisk log:
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Retransmission timeout reached on transmission 
5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 for seqno 102 (Critical Response) -- See 
https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions

Packet timed out after 6401ms with no response
[Jan 15 10:17:13] WARNING[29953] chan_sip.c: Hanging up call 5ab1525b3712f34c2ab272ae55e649e5@10.44.109.143:5060 - no 
reply to our critical packet (see https://wiki.asterisk.org/wik


FYI 10.###.###.254 is the private virtual IP on the Kamailio server and 
10.###.###.104 is the asterisk box.

SIP/2.0 200 OK
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.0
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK6gj48a00dolcl3jm2gq0.1
Record-Route: 
Record-Route: 
Record-Route: 
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Contact: 
Content-Type: application/sdp
Content-Length: 274

v=0
o=root 1911037741 1911037741 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 11384 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=nortpproxy:yes

ACK sip:928###@209.###.###.###:5060 SIP/2.0
Via: SIP/2.0/UDP 64.###.###.###:5060;branch=z9hG4bK26ab.5547ac15.2
Via: SIP/2.0/UDP 
206.###.###.###:5060;rport=5060;received=206.###.###.###;branch=z9hG4bK91l3it006gr9oiulcqn0.1
Max-Forwards: 67
From: "Anonymous" ;tag=as04035ef0
To: ;tag=as7047ed05
Contact: 
Call-ID: 5ab1525b3712f34c2ab272ae55e649e5@10.44.###.###:5060
CSeq: 102 ACK
User-Agent: packetrino
Content-Length: 0
Route: 
Route: 


--
^C


On 1/15/22 10:21 AM, Ovidiu Sas wrote:

This is false. The IP in the Contact header must be routable by the
SIP hop from the top Record-Route header in the reply.
The carrier (and it seems that they have a PROXY also) must be able to
route to their adjacent SIP hop, which is your public IP (the IP in
the second Record-Route header).
It seems that the carrier is not taking into account that they might
interface with other proxies.
Most likely, your carrier expects to interface with a simple SIP UA,
not with another proxy. This is a pretty common setup for most of the
carriers, although many new carrier implementations are taking care of
the proxy to proxy calls.

It would be helpful to see the ACK that is sent by the carrier in
response to your 200ok (after you fix your config and you have your
private IP listed in the Record-Route header).

-ovidiu

On Sat, Jan 15, 2022 at 12:33 PM Chad  wrote:


Hmm, I don't think you are right that the Contact header can be a private IP 
even if the RR is correct.
I did some research on it and I found several places saying it must be a 
routable IP which is what the carrier also said.

"The Contact header contains the SIP URI where the client wants to be contacted 
for subsequent requests. That means that
the host part of the URI must be globally reachable by anyone.
If your contact contains a private IP (behind a NAT?) then it is wrong, because 
other peers cannot reach you with that."


--
^C


On 1/15/22 9:05 AM, Ovidiu Sas wrote:

You have a different problem then.
Having private IPs in Contact is fine. You need to lose route the
calls (kamailio will add two Record-Route headers) and the origination
server will set the RURI to the private IP from Contact, but it will
send the in-dialog requests to the public IP of kamailio. This has
nothing to do with virtual IPs.
Maybe you have a buggy client that doesn't do proper loose routing.

-ovidiu

On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:


Ovidiu,
Thank you again for your response.
One is public (an internet IP) and one is private (a 10.x ip).
Apparently this is a known problem with virtual IPs, it does not work.
When the asterisk server responds to the invite it sends a contact header with 
the private IP and Kamailio does not
rewrite it to the advertised public IP. So the originating server sees the 
private IP in the Contact header and tries to
send the traffic to the 10.x IP (which is non-routable) and the call dies.
I have been trying things for a long time to fix this (years) what you are 
saying will not fix it because of the virtual
IPs.
If it was a normal IP it would work fine. It has something to do with the 
routing table and how mhomed detects networks.

--
^C


On 1/15/22 8:36 AM, Ovidiu Sas wrote:

Hello Chad,

The floating IPs that you have, are they both private IPs or one
private IP and the other one a public IP?

If you have to two floating private IPs, then you need a config like this:

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
This is false. The IP in the Contact header must be routable by the
SIP hop from the top Record-Route header in the reply.
The carrier (and it seems that they have a PROXY also) must be able to
route to their adjacent SIP hop, which is your public IP (the IP in
the second Record-Route header).
It seems that the carrier is not taking into account that they might
interface with other proxies.
Most likely, your carrier expects to interface with a simple SIP UA,
not with another proxy. This is a pretty common setup for most of the
carriers, although many new carrier implementations are taking care of
the proxy to proxy calls.

It would be helpful to see the ACK that is sent by the carrier in
response to your 200ok (after you fix your config and you have your
private IP listed in the Record-Route header).

-ovidiu

On Sat, Jan 15, 2022 at 12:33 PM Chad  wrote:
>
> Hmm, I don't think you are right that the Contact header can be a private IP 
> even if the RR is correct.
> I did some research on it and I found several places saying it must be a 
> routable IP which is what the carrier also said.
>
> "The Contact header contains the SIP URI where the client wants to be 
> contacted for subsequent requests. That means that
> the host part of the URI must be globally reachable by anyone.
> If your contact contains a private IP (behind a NAT?) then it is wrong, 
> because other peers cannot reach you with that."
>
>
> --
> ^C
>
>
> On 1/15/22 9:05 AM, Ovidiu Sas wrote:
> > You have a different problem then.
> > Having private IPs in Contact is fine. You need to lose route the
> > calls (kamailio will add two Record-Route headers) and the origination
> > server will set the RURI to the private IP from Contact, but it will
> > send the in-dialog requests to the public IP of kamailio. This has
> > nothing to do with virtual IPs.
> > Maybe you have a buggy client that doesn't do proper loose routing.
> >
> > -ovidiu
> >
> > On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:
> >>
> >> Ovidiu,
> >> Thank you again for your response.
> >> One is public (an internet IP) and one is private (a 10.x ip).
> >> Apparently this is a known problem with virtual IPs, it does not work.
> >> When the asterisk server responds to the invite it sends a contact header 
> >> with the private IP and Kamailio does not
> >> rewrite it to the advertised public IP. So the originating server sees the 
> >> private IP in the Contact header and tries to
> >> send the traffic to the 10.x IP (which is non-routable) and the call dies.
> >> I have been trying things for a long time to fix this (years) what you are 
> >> saying will not fix it because of the virtual
> >> IPs.
> >> If it was a normal IP it would work fine. It has something to do with the 
> >> routing table and how mhomed detects networks.
> >>
> >> --
> >> ^C
> >>
> >>
> >> On 1/15/22 8:36 AM, Ovidiu Sas wrote:
> >>> Hello Chad,
> >>>
> >>> The floating IPs that you have, are they both private IPs or one
> >>> private IP and the other one a public IP?
> >>>
> >>> If you have to two floating private IPs, then you need a config like this:
> >>> listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
> >>> listen=FLOATING_UDP_PRIVATE2
> >>>
> >>> In the config, before relaying the initial INVITE you need to detect
> >>> the direction of the call and set $fs accordingly:
> >>> if (CAL_FROM_PRIVATE_TO_PUBLIC) {
> >>>   $fs = udp:FLOATING_UDP_PRIVATE1
> >>> }
> >>> else {
> >>>   $fs = udp:FLOATING_UDP_PRIVATE2
> >>> }
> >>>
> >>> If you have a floating private IPs and a floating public IP, then you
> >>> need a config like this:
> >>> listen=FLOATING_UDP_PRIVATE
> >>> listen=FLOATING_UDP_PUBLIC
> >>>
> >>> There should be no need to force the socket, but if you do, there's no
> >>> harm (actually it's better and faster).
> >>>
> >>> Hope this clarifies things and helps,
> >>> -ovidiu
> >>>
> >>> On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:
> 
>  Ovidiu,
>  Thank you for your response.
> 
>  I have done that, in addition to the linux ip_nonlocal_bind I have also 
>  set the Kamailio ip_free_bind=1 and it does not
>  work.
>  Here are my relevant config lines:
>  listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
>  listen=LISTEN_UDP_PUBLIC
> 
>  mhomed=1
>  ip_free_bind=1
> 
> 
>  In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I 
>  have been using it for a long time and have
>  rebooted as well):
>  net.ipv4.ip_nonlocal_bind=1
>  --
>  ^C
> 
> 
>  On 1/15/22 4:55 AM, Ovidiu Sas wrote:
> > Hello Chad,
> >
> > You can add a listen directive to your config for the virtual IPs
> > (both public and private) and then you don't need to manually modify
> > any headers or use force_send_socket().
> > You need to enable non local IP binding so kamailio can start on the
> > server that doesn't have the virtual IP:
> > echo 1 > 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
Oops ... copy/paste mistake:
You need to replace:
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
with
listen=LISTEN_UDP_PRIVATE

-ovidiu

On Sat, Jan 15, 2022 at 1:07 PM Ovidiu Sas  wrote:
>
> It doesn't look good because you have the public IP twice in the
> Record-Route header.
> You need to replace the
> listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
> with
> listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
> and all should be good.
>
> If your carrier is telling you that the IP address in Contact should
> be public, then you need to find an RFC compliant carrier (or mangle
> the Contact to make them happy).
> Most of the time I fight with them until they have this fixed.
> Sometimes it's a lost battle and you just need to hack your config to
> make it work.
>
> I have deployed kamailio using this setup and if you deal with RFC
> compliant end-point (carriers, softphones, hardphones) then all is
> good.
>
> -ovidiu
>
> On Sat, Jan 15, 2022 at 12:14 PM Chad  wrote:
> >
> > It would be great if you are right and I am simply doing something else 
> > wrong in the config file!
> >
> > Here is the 200 OK (note I have enable_double_rr enabled):
> > SIP/2.0 200 OK
> > Via: SIP/2.0/UDP 18.###.###.###:5060;branch=z9hG4bK22b2.6b6d30e5.0
> > Via: SIP/2.0/UDP 66.###.###.###:5060;branch=z9hG4bK22b2.d15ac8a.0
> > Record-Route: 
> > Record-Route: 
> > Record-Route: 
> > From: ;tag=gK0e16642e
> > To: ;tag=as488a6fb4
> > Call-ID: 202251204_54250714@206.###.###.###
> > CSeq: 710596 INVITE
> > Server: Asterisk PBX 16.18.0
> > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
> > PUBLISH, MESSAGE
> > Supported: replaces, timer
> > Session-Expires: 1800;refresher=uas
> > Contact: 
> > Content-Type: application/sdp
> > Require: timer
> > Content-Length: 272
> >
> > v=0
> > o=root 153822920 153822920 IN IP4 209.###.###.###
> > s=Asterisk PBX 16.18.0
> > c=IN IP4 209.###.###.###
> > t=0 0
> > m=audio 17198 RTP/AVP 0 101
> > a=rtpmap:0 PCMU/8000
> > a=rtpmap:101 telephone-event/8000
> > a=fmtp:101 0-16
> > a=ptime:20
> > a=maxptime:150
> > a=sendrecv
> > a=nortpproxy:yes
> >
> >
> > --
> > ^C
> >
> >
> > On 1/15/22 9:05 AM, Ovidiu Sas wrote:
> > > You have a different problem then.
> > > Having private IPs in Contact is fine. You need to lose route the
> > > calls (kamailio will add two Record-Route headers) and the origination
> > > server will set the RURI to the private IP from Contact, but it will
> > > send the in-dialog requests to the public IP of kamailio. This has
> > > nothing to do with virtual IPs.
> > > Maybe you have a buggy client that doesn't do proper loose routing.
> > >
> > > -ovidiu
> > >
> > > On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:
> > >>
> > >> Ovidiu,
> > >> Thank you again for your response.
> > >> One is public (an internet IP) and one is private (a 10.x ip).
> > >> Apparently this is a known problem with virtual IPs, it does not work.
> > >> When the asterisk server responds to the invite it sends a contact 
> > >> header with the private IP and Kamailio does not
> > >> rewrite it to the advertised public IP. So the originating server sees 
> > >> the private IP in the Contact header and tries to
> > >> send the traffic to the 10.x IP (which is non-routable) and the call 
> > >> dies.
> > >> I have been trying things for a long time to fix this (years) what you 
> > >> are saying will not fix it because of the virtual
> > >> IPs.
> > >> If it was a normal IP it would work fine. It has something to do with 
> > >> the routing table and how mhomed detects networks.
> > >>
> > >> --
> > >> ^C
> > >>
> > >>
> > >> On 1/15/22 8:36 AM, Ovidiu Sas wrote:
> > >>> Hello Chad,
> > >>>
> > >>> The floating IPs that you have, are they both private IPs or one
> > >>> private IP and the other one a public IP?
> > >>>
> > >>> If you have to two floating private IPs, then you need a config like 
> > >>> this:
> > >>> listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
> > >>> listen=FLOATING_UDP_PRIVATE2
> > >>>
> > >>> In the config, before relaying the initial INVITE you need to detect
> > >>> the direction of the call and set $fs accordingly:
> > >>> if (CAL_FROM_PRIVATE_TO_PUBLIC) {
> > >>>   $fs = udp:FLOATING_UDP_PRIVATE1
> > >>> }
> > >>> else {
> > >>>   $fs = udp:FLOATING_UDP_PRIVATE2
> > >>> }
> > >>>
> > >>> If you have a floating private IPs and a floating public IP, then you
> > >>> need a config like this:
> > >>> listen=FLOATING_UDP_PRIVATE
> > >>> listen=FLOATING_UDP_PUBLIC
> > >>>
> > >>> There should be no need to force the socket, but if you do, there's no
> > >>> harm (actually it's better and faster).
> > >>>
> > >>> Hope this clarifies things and helps,
> > >>> -ovidiu
> > >>>
> > >>> On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:
> > 
> >  Ovidiu,
> >  Thank you for your response.
> > 
> >  I have done that, in addition to the linux ip_nonlocal_bind I have 
> >  also set the Kamailio ip_free_bind=1 and it does not

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
It doesn't look good because you have the public IP twice in the
Record-Route header.
You need to replace the
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
with
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
and all should be good.

If your carrier is telling you that the IP address in Contact should
be public, then you need to find an RFC compliant carrier (or mangle
the Contact to make them happy).
Most of the time I fight with them until they have this fixed.
Sometimes it's a lost battle and you just need to hack your config to
make it work.

I have deployed kamailio using this setup and if you deal with RFC
compliant end-point (carriers, softphones, hardphones) then all is
good.

-ovidiu

On Sat, Jan 15, 2022 at 12:14 PM Chad  wrote:
>
> It would be great if you are right and I am simply doing something else wrong 
> in the config file!
>
> Here is the 200 OK (note I have enable_double_rr enabled):
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 18.###.###.###:5060;branch=z9hG4bK22b2.6b6d30e5.0
> Via: SIP/2.0/UDP 66.###.###.###:5060;branch=z9hG4bK22b2.d15ac8a.0
> Record-Route: 
> Record-Route: 
> Record-Route: 
> From: ;tag=gK0e16642e
> To: ;tag=as488a6fb4
> Call-ID: 202251204_54250714@206.###.###.###
> CSeq: 710596 INVITE
> Server: Asterisk PBX 16.18.0
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
> PUBLISH, MESSAGE
> Supported: replaces, timer
> Session-Expires: 1800;refresher=uas
> Contact: 
> Content-Type: application/sdp
> Require: timer
> Content-Length: 272
>
> v=0
> o=root 153822920 153822920 IN IP4 209.###.###.###
> s=Asterisk PBX 16.18.0
> c=IN IP4 209.###.###.###
> t=0 0
> m=audio 17198 RTP/AVP 0 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=ptime:20
> a=maxptime:150
> a=sendrecv
> a=nortpproxy:yes
>
>
> --
> ^C
>
>
> On 1/15/22 9:05 AM, Ovidiu Sas wrote:
> > You have a different problem then.
> > Having private IPs in Contact is fine. You need to lose route the
> > calls (kamailio will add two Record-Route headers) and the origination
> > server will set the RURI to the private IP from Contact, but it will
> > send the in-dialog requests to the public IP of kamailio. This has
> > nothing to do with virtual IPs.
> > Maybe you have a buggy client that doesn't do proper loose routing.
> >
> > -ovidiu
> >
> > On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:
> >>
> >> Ovidiu,
> >> Thank you again for your response.
> >> One is public (an internet IP) and one is private (a 10.x ip).
> >> Apparently this is a known problem with virtual IPs, it does not work.
> >> When the asterisk server responds to the invite it sends a contact header 
> >> with the private IP and Kamailio does not
> >> rewrite it to the advertised public IP. So the originating server sees the 
> >> private IP in the Contact header and tries to
> >> send the traffic to the 10.x IP (which is non-routable) and the call dies.
> >> I have been trying things for a long time to fix this (years) what you are 
> >> saying will not fix it because of the virtual
> >> IPs.
> >> If it was a normal IP it would work fine. It has something to do with the 
> >> routing table and how mhomed detects networks.
> >>
> >> --
> >> ^C
> >>
> >>
> >> On 1/15/22 8:36 AM, Ovidiu Sas wrote:
> >>> Hello Chad,
> >>>
> >>> The floating IPs that you have, are they both private IPs or one
> >>> private IP and the other one a public IP?
> >>>
> >>> If you have to two floating private IPs, then you need a config like this:
> >>> listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
> >>> listen=FLOATING_UDP_PRIVATE2
> >>>
> >>> In the config, before relaying the initial INVITE you need to detect
> >>> the direction of the call and set $fs accordingly:
> >>> if (CAL_FROM_PRIVATE_TO_PUBLIC) {
> >>>   $fs = udp:FLOATING_UDP_PRIVATE1
> >>> }
> >>> else {
> >>>   $fs = udp:FLOATING_UDP_PRIVATE2
> >>> }
> >>>
> >>> If you have a floating private IPs and a floating public IP, then you
> >>> need a config like this:
> >>> listen=FLOATING_UDP_PRIVATE
> >>> listen=FLOATING_UDP_PUBLIC
> >>>
> >>> There should be no need to force the socket, but if you do, there's no
> >>> harm (actually it's better and faster).
> >>>
> >>> Hope this clarifies things and helps,
> >>> -ovidiu
> >>>
> >>> On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:
> 
>  Ovidiu,
>  Thank you for your response.
> 
>  I have done that, in addition to the linux ip_nonlocal_bind I have also 
>  set the Kamailio ip_free_bind=1 and it does not
>  work.
>  Here are my relevant config lines:
>  listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
>  listen=LISTEN_UDP_PUBLIC
> 
>  mhomed=1
>  ip_free_bind=1
> 
> 
>  In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I 
>  have been using it for a long time and have
>  rebooted as well):
>  net.ipv4.ip_nonlocal_bind=1
>  --
>  ^C
> 
> 
>  On 1/15/22 4:55 AM, Ovidiu Sas wrote:
> 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad

Hmm, I don't think you are right that the Contact header can be a private IP 
even if the RR is correct.
I did some research on it and I found several places saying it must be a 
routable IP which is what the carrier also said.

"The Contact header contains the SIP URI where the client wants to be contacted for subsequent requests. That means that 
the host part of the URI must be globally reachable by anyone.

If your contact contains a private IP (behind a NAT?) then it is wrong, because 
other peers cannot reach you with that."


--
^C


On 1/15/22 9:05 AM, Ovidiu Sas wrote:

You have a different problem then.
Having private IPs in Contact is fine. You need to lose route the
calls (kamailio will add two Record-Route headers) and the origination
server will set the RURI to the private IP from Contact, but it will
send the in-dialog requests to the public IP of kamailio. This has
nothing to do with virtual IPs.
Maybe you have a buggy client that doesn't do proper loose routing.

-ovidiu

On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:


Ovidiu,
Thank you again for your response.
One is public (an internet IP) and one is private (a 10.x ip).
Apparently this is a known problem with virtual IPs, it does not work.
When the asterisk server responds to the invite it sends a contact header with 
the private IP and Kamailio does not
rewrite it to the advertised public IP. So the originating server sees the 
private IP in the Contact header and tries to
send the traffic to the 10.x IP (which is non-routable) and the call dies.
I have been trying things for a long time to fix this (years) what you are 
saying will not fix it because of the virtual
IPs.
If it was a normal IP it would work fine. It has something to do with the 
routing table and how mhomed detects networks.

--
^C


On 1/15/22 8:36 AM, Ovidiu Sas wrote:

Hello Chad,

The floating IPs that you have, are they both private IPs or one
private IP and the other one a public IP?

If you have to two floating private IPs, then you need a config like this:
listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
listen=FLOATING_UDP_PRIVATE2

In the config, before relaying the initial INVITE you need to detect
the direction of the call and set $fs accordingly:
if (CAL_FROM_PRIVATE_TO_PUBLIC) {
  $fs = udp:FLOATING_UDP_PRIVATE1
}
else {
  $fs = udp:FLOATING_UDP_PRIVATE2
}

If you have a floating private IPs and a floating public IP, then you
need a config like this:
listen=FLOATING_UDP_PRIVATE
listen=FLOATING_UDP_PUBLIC

There should be no need to force the socket, but if you do, there's no
harm (actually it's better and faster).

Hope this clarifies things and helps,
-ovidiu

On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:


Ovidiu,
Thank you for your response.

I have done that, in addition to the linux ip_nonlocal_bind I have also set the 
Kamailio ip_free_bind=1 and it does not
work.
Here are my relevant config lines:
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
listen=LISTEN_UDP_PUBLIC

mhomed=1
ip_free_bind=1


In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have been 
using it for a long time and have
rebooted as well):
net.ipv4.ip_nonlocal_bind=1
--
^C


On 1/15/22 4:55 AM, Ovidiu Sas wrote:

Hello Chad,

You can add a listen directive to your config for the virtual IPs
(both public and private) and then you don't need to manually modify
any headers or use force_send_socket().
You need to enable non local IP binding so kamailio can start on the
server that doesn't have the virtual IP:
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
To make the change permanent, edit your sysctl.conf file and enable it there:
net/ipv4/ip_nonlocal_bind = 1

Regards
Ovidiu Sas


On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:


We are looking for some help (possibly a paid consultant) to help us with our 
Kamailio setup.
To keep this as short as possible: we use Kamailio as a NAT proxy to bridge our 
external IP and our private IP asterisk
servers (via dispatcher).
However both the external IP and the internal IP that the Kamailio server uses 
are virtual IPs created by keepalived.
Because of that neither mhomed nor fix_nated_contact work, and we use 
force_send_socket to direct the traffic.
We run linux Debian 10 for the OS.
Also we do not use a DB at all, everything is done with local config files.

The problem is that when traffic goes out the Contact header has a private IP 
in it, like:
Contact: 

There are 2 possible solutions to this:
1. Make changes to linux, keepalived and/or Kamailio so that Kamailio recognize 
the virtual IPs so that mhomed and
fix_nated_contact work as usual.

2. Create a manual header rewrite system.

If solution #2:
What we need to do is create a way to rewrite the contact header to the 
external IP on the way out, and on the way back
rewrite it back to the internal server that the call is already connected to.

Not sure if we will need to store those paths on the server or if we can do 
some kind of cheat with 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad

It would be great if you are right and I am simply doing something else wrong 
in the config file!

Here is the 200 OK (note I have enable_double_rr enabled):
SIP/2.0 200 OK
Via: SIP/2.0/UDP 18.###.###.###:5060;branch=z9hG4bK22b2.6b6d30e5.0
Via: SIP/2.0/UDP 66.###.###.###:5060;branch=z9hG4bK22b2.d15ac8a.0
Record-Route: 
Record-Route: 
Record-Route: 
From: ;tag=gK0e16642e
To: ;tag=as488a6fb4
Call-ID: 202251204_54250714@206.###.###.###
CSeq: 710596 INVITE
Server: Asterisk PBX 16.18.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, 
PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: 
Content-Type: application/sdp
Require: timer
Content-Length: 272

v=0
o=root 153822920 153822920 IN IP4 209.###.###.###
s=Asterisk PBX 16.18.0
c=IN IP4 209.###.###.###
t=0 0
m=audio 17198 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
a=nortpproxy:yes


--
^C


On 1/15/22 9:05 AM, Ovidiu Sas wrote:

You have a different problem then.
Having private IPs in Contact is fine. You need to lose route the
calls (kamailio will add two Record-Route headers) and the origination
server will set the RURI to the private IP from Contact, but it will
send the in-dialog requests to the public IP of kamailio. This has
nothing to do with virtual IPs.
Maybe you have a buggy client that doesn't do proper loose routing.

-ovidiu

On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:


Ovidiu,
Thank you again for your response.
One is public (an internet IP) and one is private (a 10.x ip).
Apparently this is a known problem with virtual IPs, it does not work.
When the asterisk server responds to the invite it sends a contact header with 
the private IP and Kamailio does not
rewrite it to the advertised public IP. So the originating server sees the 
private IP in the Contact header and tries to
send the traffic to the 10.x IP (which is non-routable) and the call dies.
I have been trying things for a long time to fix this (years) what you are 
saying will not fix it because of the virtual
IPs.
If it was a normal IP it would work fine. It has something to do with the 
routing table and how mhomed detects networks.

--
^C


On 1/15/22 8:36 AM, Ovidiu Sas wrote:

Hello Chad,

The floating IPs that you have, are they both private IPs or one
private IP and the other one a public IP?

If you have to two floating private IPs, then you need a config like this:
listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
listen=FLOATING_UDP_PRIVATE2

In the config, before relaying the initial INVITE you need to detect
the direction of the call and set $fs accordingly:
if (CAL_FROM_PRIVATE_TO_PUBLIC) {
  $fs = udp:FLOATING_UDP_PRIVATE1
}
else {
  $fs = udp:FLOATING_UDP_PRIVATE2
}

If you have a floating private IPs and a floating public IP, then you
need a config like this:
listen=FLOATING_UDP_PRIVATE
listen=FLOATING_UDP_PUBLIC

There should be no need to force the socket, but if you do, there's no
harm (actually it's better and faster).

Hope this clarifies things and helps,
-ovidiu

On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:


Ovidiu,
Thank you for your response.

I have done that, in addition to the linux ip_nonlocal_bind I have also set the 
Kamailio ip_free_bind=1 and it does not
work.
Here are my relevant config lines:
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
listen=LISTEN_UDP_PUBLIC

mhomed=1
ip_free_bind=1


In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have been 
using it for a long time and have
rebooted as well):
net.ipv4.ip_nonlocal_bind=1
--
^C


On 1/15/22 4:55 AM, Ovidiu Sas wrote:

Hello Chad,

You can add a listen directive to your config for the virtual IPs
(both public and private) and then you don't need to manually modify
any headers or use force_send_socket().
You need to enable non local IP binding so kamailio can start on the
server that doesn't have the virtual IP:
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
To make the change permanent, edit your sysctl.conf file and enable it there:
net/ipv4/ip_nonlocal_bind = 1

Regards
Ovidiu Sas


On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:


We are looking for some help (possibly a paid consultant) to help us with our 
Kamailio setup.
To keep this as short as possible: we use Kamailio as a NAT proxy to bridge our 
external IP and our private IP asterisk
servers (via dispatcher).
However both the external IP and the internal IP that the Kamailio server uses 
are virtual IPs created by keepalived.
Because of that neither mhomed nor fix_nated_contact work, and we use 
force_send_socket to direct the traffic.
We run linux Debian 10 for the OS.
Also we do not use a DB at all, everything is done with local config files.

The problem is that when traffic goes out the Contact header has a private IP 
in it, like:
Contact: 

There are 2 possible solutions to this:
1. Make changes to linux, keepalived and/or Kamailio so that Kamailio 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
You have a different problem then.
Having private IPs in Contact is fine. You need to lose route the
calls (kamailio will add two Record-Route headers) and the origination
server will set the RURI to the private IP from Contact, but it will
send the in-dialog requests to the public IP of kamailio. This has
nothing to do with virtual IPs.
Maybe you have a buggy client that doesn't do proper loose routing.

-ovidiu

On Sat, Jan 15, 2022 at 11:50 AM Chad  wrote:
>
> Ovidiu,
> Thank you again for your response.
> One is public (an internet IP) and one is private (a 10.x ip).
> Apparently this is a known problem with virtual IPs, it does not work.
> When the asterisk server responds to the invite it sends a contact header 
> with the private IP and Kamailio does not
> rewrite it to the advertised public IP. So the originating server sees the 
> private IP in the Contact header and tries to
> send the traffic to the 10.x IP (which is non-routable) and the call dies.
> I have been trying things for a long time to fix this (years) what you are 
> saying will not fix it because of the virtual
> IPs.
> If it was a normal IP it would work fine. It has something to do with the 
> routing table and how mhomed detects networks.
>
> --
> ^C
>
>
> On 1/15/22 8:36 AM, Ovidiu Sas wrote:
> > Hello Chad,
> >
> > The floating IPs that you have, are they both private IPs or one
> > private IP and the other one a public IP?
> >
> > If you have to two floating private IPs, then you need a config like this:
> > listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
> > listen=FLOATING_UDP_PRIVATE2
> >
> > In the config, before relaying the initial INVITE you need to detect
> > the direction of the call and set $fs accordingly:
> > if (CAL_FROM_PRIVATE_TO_PUBLIC) {
> >  $fs = udp:FLOATING_UDP_PRIVATE1
> > }
> > else {
> >  $fs = udp:FLOATING_UDP_PRIVATE2
> > }
> >
> > If you have a floating private IPs and a floating public IP, then you
> > need a config like this:
> > listen=FLOATING_UDP_PRIVATE
> > listen=FLOATING_UDP_PUBLIC
> >
> > There should be no need to force the socket, but if you do, there's no
> > harm (actually it's better and faster).
> >
> > Hope this clarifies things and helps,
> > -ovidiu
> >
> > On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:
> >>
> >> Ovidiu,
> >> Thank you for your response.
> >>
> >> I have done that, in addition to the linux ip_nonlocal_bind I have also 
> >> set the Kamailio ip_free_bind=1 and it does not
> >> work.
> >> Here are my relevant config lines:
> >> listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
> >> listen=LISTEN_UDP_PUBLIC
> >>
> >> mhomed=1
> >> ip_free_bind=1
> >>
> >>
> >> In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have 
> >> been using it for a long time and have
> >> rebooted as well):
> >> net.ipv4.ip_nonlocal_bind=1
> >> --
> >> ^C
> >>
> >>
> >> On 1/15/22 4:55 AM, Ovidiu Sas wrote:
> >>> Hello Chad,
> >>>
> >>> You can add a listen directive to your config for the virtual IPs
> >>> (both public and private) and then you don't need to manually modify
> >>> any headers or use force_send_socket().
> >>> You need to enable non local IP binding so kamailio can start on the
> >>> server that doesn't have the virtual IP:
> >>> echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
> >>> To make the change permanent, edit your sysctl.conf file and enable it 
> >>> there:
> >>> net/ipv4/ip_nonlocal_bind = 1
> >>>
> >>> Regards
> >>> Ovidiu Sas
> >>>
> >>>
> >>> On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:
> 
>  We are looking for some help (possibly a paid consultant) to help us 
>  with our Kamailio setup.
>  To keep this as short as possible: we use Kamailio as a NAT proxy to 
>  bridge our external IP and our private IP asterisk
>  servers (via dispatcher).
>  However both the external IP and the internal IP that the Kamailio 
>  server uses are virtual IPs created by keepalived.
>  Because of that neither mhomed nor fix_nated_contact work, and we use 
>  force_send_socket to direct the traffic.
>  We run linux Debian 10 for the OS.
>  Also we do not use a DB at all, everything is done with local config 
>  files.
> 
>  The problem is that when traffic goes out the Contact header has a 
>  private IP in it, like:
>  Contact: 
> 
>  There are 2 possible solutions to this:
>  1. Make changes to linux, keepalived and/or Kamailio so that Kamailio 
>  recognize the virtual IPs so that mhomed and
>  fix_nated_contact work as usual.
> 
>  2. Create a manual header rewrite system.
> 
>  If solution #2:
>  What we need to do is create a way to rewrite the contact header to the 
>  external IP on the way out, and on the way back
>  rewrite it back to the internal server that the call is already 
>  connected to.
> 
>  Not sure if we will need to store those paths on the server or if we can 
>  do some kind of cheat with another 

Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad

Ovidiu,
Thank you again for your response.
One is public (an internet IP) and one is private (a 10.x ip).
Apparently this is a known problem with virtual IPs, it does not work.
When the asterisk server responds to the invite it sends a contact header with the private IP and Kamailio does not 
rewrite it to the advertised public IP. So the originating server sees the private IP in the Contact header and tries to 
send the traffic to the 10.x IP (which is non-routable) and the call dies.
I have been trying things for a long time to fix this (years) what you are saying will not fix it because of the virtual 
IPs.

If it was a normal IP it would work fine. It has something to do with the 
routing table and how mhomed detects networks.

--
^C


On 1/15/22 8:36 AM, Ovidiu Sas wrote:

Hello Chad,

The floating IPs that you have, are they both private IPs or one
private IP and the other one a public IP?

If you have to two floating private IPs, then you need a config like this:
listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
listen=FLOATING_UDP_PRIVATE2

In the config, before relaying the initial INVITE you need to detect
the direction of the call and set $fs accordingly:
if (CAL_FROM_PRIVATE_TO_PUBLIC) {
 $fs = udp:FLOATING_UDP_PRIVATE1
}
else {
 $fs = udp:FLOATING_UDP_PRIVATE2
}

If you have a floating private IPs and a floating public IP, then you
need a config like this:
listen=FLOATING_UDP_PRIVATE
listen=FLOATING_UDP_PUBLIC

There should be no need to force the socket, but if you do, there's no
harm (actually it's better and faster).

Hope this clarifies things and helps,
-ovidiu

On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:


Ovidiu,
Thank you for your response.

I have done that, in addition to the linux ip_nonlocal_bind I have also set the 
Kamailio ip_free_bind=1 and it does not
work.
Here are my relevant config lines:
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
listen=LISTEN_UDP_PUBLIC

mhomed=1
ip_free_bind=1


In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have been 
using it for a long time and have
rebooted as well):
net.ipv4.ip_nonlocal_bind=1
--
^C


On 1/15/22 4:55 AM, Ovidiu Sas wrote:

Hello Chad,

You can add a listen directive to your config for the virtual IPs
(both public and private) and then you don't need to manually modify
any headers or use force_send_socket().
You need to enable non local IP binding so kamailio can start on the
server that doesn't have the virtual IP:
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
To make the change permanent, edit your sysctl.conf file and enable it there:
net/ipv4/ip_nonlocal_bind = 1

Regards
Ovidiu Sas


On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:


We are looking for some help (possibly a paid consultant) to help us with our 
Kamailio setup.
To keep this as short as possible: we use Kamailio as a NAT proxy to bridge our 
external IP and our private IP asterisk
servers (via dispatcher).
However both the external IP and the internal IP that the Kamailio server uses 
are virtual IPs created by keepalived.
Because of that neither mhomed nor fix_nated_contact work, and we use 
force_send_socket to direct the traffic.
We run linux Debian 10 for the OS.
Also we do not use a DB at all, everything is done with local config files.

The problem is that when traffic goes out the Contact header has a private IP 
in it, like:
Contact: 

There are 2 possible solutions to this:
1. Make changes to linux, keepalived and/or Kamailio so that Kamailio recognize 
the virtual IPs so that mhomed and
fix_nated_contact work as usual.

2. Create a manual header rewrite system.

If solution #2:
What we need to do is create a way to rewrite the contact header to the 
external IP on the way out, and on the way back
rewrite it back to the internal server that the call is already connected to.

Not sure if we will need to store those paths on the server or if we can do 
some kind of cheat with another persistant
header like P-Preferred-Identity or P-Asserted-Identity (i.e. store the 
internal IP in the name field or something).

If anyone out there know of a way to do this or wants to give it a try please 
reach out to me.

Thank you all for your time.

--
^C
Chad

__
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




--
VoIP Embedded, Inc.
http://www.voipembedded.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







Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
Hello Chad,

The floating IPs that you have, are they both private IPs or one
private IP and the other one a public IP?

If you have to two floating private IPs, then you need a config like this:
listen=FLOATING_UDP_PRIVATE1 advertise PUBLIC_UDP_IP
listen=FLOATING_UDP_PRIVATE2

In the config, before relaying the initial INVITE you need to detect
the direction of the call and set $fs accordingly:
if (CAL_FROM_PRIVATE_TO_PUBLIC) {
$fs = udp:FLOATING_UDP_PRIVATE1
}
else {
$fs = udp:FLOATING_UDP_PRIVATE2
}

If you have a floating private IPs and a floating public IP, then you
need a config like this:
listen=FLOATING_UDP_PRIVATE
listen=FLOATING_UDP_PUBLIC

There should be no need to force the socket, but if you do, there's no
harm (actually it's better and faster).

Hope this clarifies things and helps,
-ovidiu

On Sat, Jan 15, 2022 at 9:48 AM Chad  wrote:
>
> Ovidiu,
> Thank you for your response.
>
> I have done that, in addition to the linux ip_nonlocal_bind I have also set 
> the Kamailio ip_free_bind=1 and it does not
> work.
> Here are my relevant config lines:
> listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
> listen=LISTEN_UDP_PUBLIC
>
> mhomed=1
> ip_free_bind=1
>
>
> In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have 
> been using it for a long time and have
> rebooted as well):
> net.ipv4.ip_nonlocal_bind=1
> --
> ^C
>
>
> On 1/15/22 4:55 AM, Ovidiu Sas wrote:
> > Hello Chad,
> >
> > You can add a listen directive to your config for the virtual IPs
> > (both public and private) and then you don't need to manually modify
> > any headers or use force_send_socket().
> > You need to enable non local IP binding so kamailio can start on the
> > server that doesn't have the virtual IP:
> > echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
> > To make the change permanent, edit your sysctl.conf file and enable it 
> > there:
> > net/ipv4/ip_nonlocal_bind = 1
> >
> > Regards
> > Ovidiu Sas
> >
> >
> > On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:
> >>
> >> We are looking for some help (possibly a paid consultant) to help us with 
> >> our Kamailio setup.
> >> To keep this as short as possible: we use Kamailio as a NAT proxy to 
> >> bridge our external IP and our private IP asterisk
> >> servers (via dispatcher).
> >> However both the external IP and the internal IP that the Kamailio server 
> >> uses are virtual IPs created by keepalived.
> >> Because of that neither mhomed nor fix_nated_contact work, and we use 
> >> force_send_socket to direct the traffic.
> >> We run linux Debian 10 for the OS.
> >> Also we do not use a DB at all, everything is done with local config files.
> >>
> >> The problem is that when traffic goes out the Contact header has a private 
> >> IP in it, like:
> >> Contact: 
> >>
> >> There are 2 possible solutions to this:
> >> 1. Make changes to linux, keepalived and/or Kamailio so that Kamailio 
> >> recognize the virtual IPs so that mhomed and
> >> fix_nated_contact work as usual.
> >>
> >> 2. Create a manual header rewrite system.
> >>
> >> If solution #2:
> >> What we need to do is create a way to rewrite the contact header to the 
> >> external IP on the way out, and on the way back
> >> rewrite it back to the internal server that the call is already connected 
> >> to.
> >>
> >> Not sure if we will need to store those paths on the server or if we can 
> >> do some kind of cheat with another persistant
> >> header like P-Preferred-Identity or P-Asserted-Identity (i.e. store the 
> >> internal IP in the name field or something).
> >>
> >> If anyone out there know of a way to do this or wants to give it a try 
> >> please reach out to me.
> >>
> >> Thank you all for your time.
> >>
> >> --
> >> ^C
> >> Chad
> >>
> >> __
> >> 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
> >
> >
> >
> > --
> > VoIP Embedded, Inc.
> > http://www.voipembedded.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



-- 
VoIP Embedded, Inc.
http://www.voipembedded.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


Re: [SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad

Ovidiu,
Thank you for your response.

I have done that, in addition to the linux ip_nonlocal_bind I have also set the Kamailio ip_free_bind=1 and it does not 
work.

Here are my relevant config lines:
listen=LISTEN_UDP_PRIVATE advertise MY_PUBLIC_IP:5060
listen=LISTEN_UDP_PUBLIC

mhomed=1
ip_free_bind=1


In my /etc/sysctl.conf I have (yes I applied it with sysctl -p, and I have been using it for a long time and have 
rebooted as well):

net.ipv4.ip_nonlocal_bind=1
--
^C


On 1/15/22 4:55 AM, Ovidiu Sas wrote:

Hello Chad,

You can add a listen directive to your config for the virtual IPs
(both public and private) and then you don't need to manually modify
any headers or use force_send_socket().
You need to enable non local IP binding so kamailio can start on the
server that doesn't have the virtual IP:
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
To make the change permanent, edit your sysctl.conf file and enable it there:
net/ipv4/ip_nonlocal_bind = 1

Regards
Ovidiu Sas


On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:


We are looking for some help (possibly a paid consultant) to help us with our 
Kamailio setup.
To keep this as short as possible: we use Kamailio as a NAT proxy to bridge our 
external IP and our private IP asterisk
servers (via dispatcher).
However both the external IP and the internal IP that the Kamailio server uses 
are virtual IPs created by keepalived.
Because of that neither mhomed nor fix_nated_contact work, and we use 
force_send_socket to direct the traffic.
We run linux Debian 10 for the OS.
Also we do not use a DB at all, everything is done with local config files.

The problem is that when traffic goes out the Contact header has a private IP 
in it, like:
Contact: 

There are 2 possible solutions to this:
1. Make changes to linux, keepalived and/or Kamailio so that Kamailio recognize 
the virtual IPs so that mhomed and
fix_nated_contact work as usual.

2. Create a manual header rewrite system.

If solution #2:
What we need to do is create a way to rewrite the contact header to the 
external IP on the way out, and on the way back
rewrite it back to the internal server that the call is already connected to.

Not sure if we will need to store those paths on the server or if we can do 
some kind of cheat with another persistant
header like P-Preferred-Identity or P-Asserted-Identity (i.e. store the 
internal IP in the name field or something).

If anyone out there know of a way to do this or wants to give it a try please 
reach out to me.

Thank you all for your time.

--
^C
Chad

__
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




--
VoIP Embedded, Inc.
http://www.voipembedded.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] Help with rewriting headers for NAT manually

2022-01-15 Thread Ovidiu Sas
Hello Chad,

You can add a listen directive to your config for the virtual IPs
(both public and private) and then you don't need to manually modify
any headers or use force_send_socket().
You need to enable non local IP binding so kamailio can start on the
server that doesn't have the virtual IP:
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
To make the change permanent, edit your sysctl.conf file and enable it there:
net/ipv4/ip_nonlocal_bind = 1

Regards
Ovidiu Sas


On Sat, Jan 15, 2022 at 4:16 AM Chad  wrote:
>
> We are looking for some help (possibly a paid consultant) to help us with our 
> Kamailio setup.
> To keep this as short as possible: we use Kamailio as a NAT proxy to bridge 
> our external IP and our private IP asterisk
> servers (via dispatcher).
> However both the external IP and the internal IP that the Kamailio server 
> uses are virtual IPs created by keepalived.
> Because of that neither mhomed nor fix_nated_contact work, and we use 
> force_send_socket to direct the traffic.
> We run linux Debian 10 for the OS.
> Also we do not use a DB at all, everything is done with local config files.
>
> The problem is that when traffic goes out the Contact header has a private IP 
> in it, like:
> Contact: 
>
> There are 2 possible solutions to this:
> 1. Make changes to linux, keepalived and/or Kamailio so that Kamailio 
> recognize the virtual IPs so that mhomed and
> fix_nated_contact work as usual.
>
> 2. Create a manual header rewrite system.
>
> If solution #2:
> What we need to do is create a way to rewrite the contact header to the 
> external IP on the way out, and on the way back
> rewrite it back to the internal server that the call is already connected to.
>
> Not sure if we will need to store those paths on the server or if we can do 
> some kind of cheat with another persistant
> header like P-Preferred-Identity or P-Asserted-Identity (i.e. store the 
> internal IP in the name field or something).
>
> If anyone out there know of a way to do this or wants to give it a try please 
> reach out to me.
>
> Thank you all for your time.
>
> --
> ^C
> Chad
>
> __
> 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



--
VoIP Embedded, Inc.
http://www.voipembedded.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


[SR-Users] Help with rewriting headers for NAT manually

2022-01-15 Thread Chad

We are looking for some help (possibly a paid consultant) to help us with our 
Kamailio setup.
To keep this as short as possible: we use Kamailio as a NAT proxy to bridge our external IP and our private IP asterisk 
servers (via dispatcher).

However both the external IP and the internal IP that the Kamailio server uses 
are virtual IPs created by keepalived.
Because of that neither mhomed nor fix_nated_contact work, and we use 
force_send_socket to direct the traffic.
We run linux Debian 10 for the OS.
Also we do not use a DB at all, everything is done with local config files.

The problem is that when traffic goes out the Contact header has a private IP 
in it, like:
Contact: 

There are 2 possible solutions to this:
1. Make changes to linux, keepalived and/or Kamailio so that Kamailio recognize the virtual IPs so that mhomed and 
fix_nated_contact work as usual.


2. Create a manual header rewrite system.

If solution #2:
What we need to do is create a way to rewrite the contact header to the external IP on the way out, and on the way back 
rewrite it back to the internal server that the call is already connected to.


Not sure if we will need to store those paths on the server or if we can do some kind of cheat with another persistant 
header like P-Preferred-Identity or P-Asserted-Identity (i.e. store the internal IP in the name field or something).


If anyone out there know of a way to do this or wants to give it a try please 
reach out to me.

Thank you all for your time.

--
^C
Chad

__
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 with Async transaction responses

2021-11-19 Thread Michael Friesen
Thanks Henning!
In this instance the uac_replace_from method is not working either.  I 
attempted to use KSR.uac.uac_replace_from("batman", "") inside the 
redirect_transaction() method and it was not successful.  However, If I perform 
this BEFORE calling KSR.tm.t_newtran() then the From header uses the "batman" 
value for the response.  The problem is that I still cannot use the 
asynchronous lookup response to modify the From header once the transaction has 
been created.

-Michael


From: sr-users  On Behalf Of Henning 
Westerholt
Sent: Friday, November 19, 2021 12:07 PM
To: Kamailio (SER) - Users Mailing List 
Cc: Mike Tihonchik ; Julie Fowler 

Subject: Re: [SR-Users] Help with Async transaction responses

Hello,

Not sure if it works in this scenarios, but did you already tried to use: 
https://kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_replace_from<https://us-west-2.protection.sophos.com?d=kamailio.org=aHR0cHM6Ly9rYW1haWxpby5vcmcvZG9jcy9tb2R1bGVzL3N0YWJsZS9tb2R1bGVzL3VhYy5odG1sI3VhYy5mLnVhY19yZXBsYWNlX2Zyb20==NWQ3MTY5NGVhZjFkZjgxN2NhMWRiNmIx=QUFrZ3RTWUx1WVdDWDFWbzBNUlBUaTd3MTdqeHZkY0Qrc3NPVWRwQWl4QT0==932613dd668d4e0ea6f768041a0bd41e>

Cheers,

Henning

--
Henning Westerholt - 
https://skalatan.de/blog/<https://us-west-2.protection.sophos.com?d=skalatan.de=aHR0cHM6Ly9za2FsYXRhbi5kZS9ibG9nLw===NWQ3MTY5NGVhZjFkZjgxN2NhMWRiNmIx=WStDbk50SzBLNjVwR01sTHRvYlVwbzA0dzdhQlBnNUF2WnErNFp6SEhYaz0==932613dd668d4e0ea6f768041a0bd41e>
Kamailio services - 
https://gilawa.com<https://us-west-2.protection.sophos.com?d=gilawa.com=aHR0cHM6Ly9naWxhd2EuY29tLw===NWQ3MTY5NGVhZjFkZjgxN2NhMWRiNmIx=TFQrN1EwNWwwV2thVlBjeGpoNS9jMlRBNk5JREczWmVORHV2QlNpR21YTT0==932613dd668d4e0ea6f768041a0bd41e>

From: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 On Behalf Of Michael Friesen
Sent: Friday, November 19, 2021 6:57 PM
To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
Cc: Julie Fowler mailto:jfow...@firstorion.com>>; Mike 
Tihonchik mailto:mtihonc...@firstorion.com>>
Subject: [SR-Users] Help with Async transaction responses

Hello,
I am attempting to perform some asynchronous lookup upon receiving an INVITE 
and then reply with a 3xx response with a modified From header.  My workflow 
now is to create a transaction when receiving the INVITE, suspend the 
transaction, perform the asynchronous lookup, continue the transaction upon 
response, and then modify the From header and reply.  The ONLY problem I am 
having is modifying the From header!  How can I modify the From header in this 
scenario?

function ksr_request_route()
if KSR.is_INVITE() then
  if KSR.tm.t_newtran() then
cache_transaction_info()
KSR.tmx.t_suspend()
--perform async loookup
end
end
return 1
end

--This function called on response from async lookup. Equivalent of 
ONREPLY_ROUTE
function ksr_reply_route()
--Finds the transaction_index and transaction_label from a cache
KSR.tmx.t_continue(transaction_index, transaction_label, 
"redirect_transaction");
KSR.x.drop()
return 1
end

function redirect_transaction()
KSR.pv.sets("$fU", "Jenny") --Doesn't actually modify the from username for 
302 response!
KSR.tm.t_reply(302, "Redirecting")
return 1
end


Thank you much!
-Michael

__
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 with Async transaction responses

2021-11-19 Thread Henning Westerholt
Hello,

Not sure if it works in this scenarios, but did you already tried to use: 
https://kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_replace_from

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>

From: sr-users  On Behalf Of Michael 
Friesen
Sent: Friday, November 19, 2021 6:57 PM
To: sr-users@lists.kamailio.org
Cc: Julie Fowler ; Mike Tihonchik 

Subject: [SR-Users] Help with Async transaction responses

Hello,
I am attempting to perform some asynchronous lookup upon receiving an INVITE 
and then reply with a 3xx response with a modified From header.  My workflow 
now is to create a transaction when receiving the INVITE, suspend the 
transaction, perform the asynchronous lookup, continue the transaction upon 
response, and then modify the From header and reply.  The ONLY problem I am 
having is modifying the From header!  How can I modify the From header in this 
scenario?

function ksr_request_route()
if KSR.is_INVITE() then
  if KSR.tm.t_newtran() then
cache_transaction_info()
KSR.tmx.t_suspend()
--perform async loookup
end
end
return 1
end

--This function called on response from async lookup. Equivalent of 
ONREPLY_ROUTE
function ksr_reply_route()
--Finds the transaction_index and transaction_label from a cache
KSR.tmx.t_continue(transaction_index, transaction_label, 
"redirect_transaction");
KSR.x.drop()
return 1
end

function redirect_transaction()
KSR.pv.sets("$fU", "Jenny") --Doesn't actually modify the from username for 
302 response!
KSR.tm.t_reply(302, "Redirecting")
return 1
end


Thank you much!
-Michael

__
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 with Async transaction responses

2021-11-19 Thread Michael Friesen
Hello,
I am attempting to perform some asynchronous lookup upon receiving an INVITE 
and then reply with a 3xx response with a modified From header.  My workflow 
now is to create a transaction when receiving the INVITE, suspend the 
transaction, perform the asynchronous lookup, continue the transaction upon 
response, and then modify the From header and reply.  The ONLY problem I am 
having is modifying the From header!  How can I modify the From header in this 
scenario?

function ksr_request_route()
if KSR.is_INVITE() then
  if KSR.tm.t_newtran() then
cache_transaction_info()
KSR.tmx.t_suspend()
--perform async loookup
end
end
return 1
end

--This function called on response from async lookup. Equivalent of 
ONREPLY_ROUTE
function ksr_reply_route()
--Finds the transaction_index and transaction_label from a cache
KSR.tmx.t_continue(transaction_index, transaction_label, 
"redirect_transaction");
KSR.x.drop()
return 1
end

function redirect_transaction()
KSR.pv.sets("$fU", "Jenny") --Doesn't actually modify the from username for 
302 response!
KSR.tm.t_reply(302, "Redirecting")
return 1
end


Thank you much!
-Michael

__
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

2021-08-08 Thread Said Hassani
Could you gave me the link to ETSI document? 
Le 8 août 2021 14:41, Said Hassani  a écrit :Thanks a lot. 
I am going to try it. Thank you
Le 8 août 2021 10:48, Mojtaba  a écrit :Hello there,You should do the following steps:1- Add new AS.2- Add some SPT as a Trigger Points.3- Create IFC linked to AS and Trigger Points.For more information go  to ETSI document,With best regardsMojtaba Esfandiari.SOn Sun, Aug 1, 2021 at 12:40 AM Karsten Horsmann  wrote:Hi Said, if no one is answering your questions then you should ask more specific what is the issue and what you try to solve that. That could result in more answers. Kind regards Karsten Horsmann Said Hassani  schrieb am Fr., 30. Juli 2021, 08:11:Dear Team, I would like to know how to link Kamailio with openIMSCore?I would like to use Kamailio as an Application server.Please guide me or if there is someone who has worked on this subject, I would like to benefit from his help.__
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
-- --Mojtaba Esfandiari.S
__
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

2021-08-08 Thread Said Hassani
Thanks a lot. 
I am going to try it. Thank you
Le 8 août 2021 10:48, Mojtaba  a écrit :Hello there,You should do the following steps:1- Add new AS.2- Add some SPT as a Trigger Points.3- Create IFC linked to AS and Trigger Points.For more information go  to ETSI document,With best regardsMojtaba Esfandiari.SOn Sun, Aug 1, 2021 at 12:40 AM Karsten Horsmann  wrote:Hi Said, if no one is answering your questions then you should ask more specific what is the issue and what you try to solve that. That could result in more answers. Kind regards Karsten Horsmann Said Hassani  schrieb am Fr., 30. Juli 2021, 08:11:Dear Team, I would like to know how to link Kamailio with openIMSCore?I would like to use Kamailio as an Application server.Please guide me or if there is someone who has worked on this subject, I would like to benefit from his help.__
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
-- --Mojtaba Esfandiari.S
__
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

2021-08-08 Thread Mojtaba
Hello there,
You should do the following steps:
1- Add new AS.
2- Add some SPT as a Trigger Points.
3- Create IFC linked to AS and Trigger Points.
For more information go  to ETSI document,
With best regards
Mojtaba Esfandiari.S


On Sun, Aug 1, 2021 at 12:40 AM Karsten Horsmann 
wrote:

> Hi Said,
>
> if no one is answering your questions then you should ask more specific
> what is the issue and what you try to solve that.
>
> That could result in more answers.
>
> Kind regards
> Karsten Horsmann
>
> Said Hassani  schrieb am Fr., 30. Juli 2021,
> 08:11:
>
>> Dear Team,
>>
>> I would like to know how to link Kamailio with openIMSCore?
>> I would like to use Kamailio as an Application server.
>> Please guide me or if there is someone who has worked on this subject, I
>> would like to benefit from his help.
>>
>> __
>> 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
>


-- 
--Mojtaba Esfandiari.S
__
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

2021-07-31 Thread Karsten Horsmann
Hi Said,

if no one is answering your questions then you should ask more specific
what is the issue and what you try to solve that.

That could result in more answers.

Kind regards
Karsten Horsmann

Said Hassani  schrieb am Fr., 30. Juli 2021, 08:11:

> Dear Team,
>
> I would like to know how to link Kamailio with openIMSCore?
> I would like to use Kamailio as an Application server.
> Please guide me or if there is someone who has worked on this subject, I
> would like to benefit from his help.
>
> __
> 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] help

2021-07-30 Thread Said Hassani
Dear Team, 
I would like to know how to link Kamailio with openIMSCore?I would like to use 
Kamailio as an Application server.Please guide me or if there is someone who 
has worked on this subject, I would like to benefit from his help.
__
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 overwrite the $od, or another solution

2021-05-15 Thread Victor Velo
 Hello Fred,
Thank you, that did replace the to_uri.
I'm now facing with another thing: "407 Proxy Authentication Required".
I already added the 3 MS Teams GW to trusted source in the FreeSwitch ACL:
But still getting this Proxy Authentication Required error.
Any tips for investigation is welcome. 
Thanks,Victor
On Friday, May 14, 2021, 03:12:40 p.m. EDT, Fred Posner  
wrote:  
 
 On 5/14/21 2:49 PM, Victor Velo wrote:
> Hello,
> 
> the request I receive from MS Teams seems to be correct but I need to
> overwrite the Original Domain, which is the FQDN of Kamailio itself, to
> another domain name:
> 
> TO: 
> 
> rewrite to:
> TO: 
> 
> What would the best why to achieve this rewriting? 
> 

Take a look at UAC module:
https://www.kamailio.org/docs/modules/stable/modules/uac.html

In your case:
uac_replace_to_uri


You can also use replace_all within textops:
https://www.kamailio.org/docs/modules/stable/modules/textops.html

-- 
Fred Posner -- www.palner.com
Matrix: @fred:matrix.lod.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] Help to overwrite the $od, or another solution

2021-05-14 Thread Victor Velo
Hello,
I'm facing to some challenge in my learning process and using Kamalio as MS 
Teams SBC,
the request I receive from MS Teams seems to be correct but I need to overwrite 
the Original Domain, which is the FQDN of Kamailio itself, to another domain 
name:
INVITE sip:+15142144...@dev-sbc.openfabrik.com:5061;user=phone;transport=tls 
SIP/2.0Record-Route: 
Record-Route:
 
FROM:
 Victor 
Velo;tag=3e2ca0c5d0da4335b121f205a6f20541TO:
 
rewrite to:
INVITE sip:+15142144...@dev-sbc.openfabrik.com:5061;user=phone;transport=tls 
SIP/2.0Record-Route: 
Record-Route:
 
FROM:
 Victor 
Velo;tag=3e2ca0c5d0da4335b121f205a6f20541TO:
 
What would the best why to achieve this rewriting? 
Thanks,
Victor


__
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 overwrite the $od, or another solution

2021-05-14 Thread Fred Posner
On 5/14/21 2:49 PM, Victor Velo wrote:
> Hello,
> 
> the request I receive from MS Teams seems to be correct but I need to
> overwrite the Original Domain, which is the FQDN of Kamailio itself, to
> another domain name:
> 
> TO: 
> 
> rewrite to:
> TO: 
> 
> What would the best why to achieve this rewriting? 
> 

Take a look at UAC module:
https://www.kamailio.org/docs/modules/stable/modules/uac.html

In your case:
uac_replace_to_uri


You can also use replace_all within textops:
https://www.kamailio.org/docs/modules/stable/modules/textops.html

-- 
Fred Posner -- www.palner.com
Matrix: @fred:matrix.lod.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


Re: [SR-Users] Help required in sipwise rtpengine-ng-client and rtpengine-ctl

2021-01-22 Thread Richard Fuchs

On 21/01/2021 00.32, mahesh prasad behera wrote:

Hi Team,

We are using sipwise rtpengine on platform centos 7. To get call 
related statistics from rtpengine. We tried to use utils 
"rtpengine-ng-client" and "rtpengine-ctl". But for us both of them are 
not working.


*Rtpengine process status:*
[root@ctl utils]# ps -ef |grep rtpengine
root      3924   668  0 00:11 pts/0    00:00:00 grep --color=auto 
rtpengine
root     20502 20499  0 Jan19 ?        00:10:02 ../sbin/rtpengine -f 
--num-threads 4 -i pub/10.211.160.132  -i 
priv/10.211.160.132  -n 127.0.0.1:8500 
 -c 127.0.0.1:8500  -m 
32001 -M 32500 -T 184 -o 90 -d 4 -s 900 -p /var/run/rtpengine1.pid 
--scheduling rr --priority 37

[root@ctl utils]#

* rtpengine-ng-client:*
When i ran rtpengine-ng-client, I was getting Bencode.pm missing so I 
have manually installed perl bencode library 
"perl-Convert-Bencode-1.03-9.el7.noarch.rpm"

Now when i ran rtpengine-ng-client i am getting below error
[root@ctl utils]# ./rtpengine-ng-client list
*Undefined subroutine ::bencode called at 
/usr/local/lib64/perl5/NGCP/Rtpengine.pm line 33. *


That's a different Perl module (Convert::Bencode instead of Bencode). If 
there's no RPM for the Bencode module, you should be able to install it 
through CPAN.

*rtpengine-ctl:*
When i ran  ./rtpengine-ctl -ip 127.0.0.1:8500  
list , We are not getting any valid response from rtpengine.
[root@ctl utils]# ./rtpengine-ctl -ip 127.0.0.1:8500 
 list

*Inside do while after call socket->recv(response, 1024*1024*10)*


Not sure what this is about, but `list` is not a complete CLI command. 
Try `list sessions all`. You can also talk to the CLI port with 
something like netcat, e.g. `echo list sessions all | nc localhost 8500`


Cheers

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


[SR-Users] Help required in sipwise rtpengine-ng-client and rtpengine-ctl

2021-01-20 Thread mahesh prasad behera
Hi Team,

We are using sipwise rtpengine on platform centos 7. To get call related
statistics from rtpengine. We tried to use utils "rtpengine-ng-client" and
"rtpengine-ctl". But for us both of them are not working.

*Rtpengine process status:*
[root@ctl utils]# ps -ef |grep rtpengine
root  3924   668  0 00:11 pts/000:00:00 grep --color=auto rtpengine
root 20502 20499  0 Jan19 ?00:10:02 ../sbin/rtpengine -f
--num-threads 4 -i pub/10.211.160.132 -i priv/10.211.160.132 -n
127.0.0.1:8500 -c 127.0.0.1:8500 -m 32001 -M 32500 -T 184 -o 90 -d 4 -s 900
-p /var/run/rtpengine1.pid --scheduling rr --priority 37
[root@ctl utils]#

* rtpengine-ng-client:*
When i ran rtpengine-ng-client, I was getting Bencode.pm missing so I have
manually installed perl bencode library
"perl-Convert-Bencode-1.03-9.el7.noarch.rpm"
Now when i ran rtpengine-ng-client i am getting below error
[root@ctl utils]# ./rtpengine-ng-client list
*Undefined subroutine ::bencode called at
/usr/local/lib64/perl5/NGCP/Rtpengine.pm line 33. *

*rtpengine-ctl:*
When i ran  ./rtpengine-ctl -ip 127.0.0.1:8500 list , We are not getting
any valid response from rtpengine.
[root@ctl utils]# ./rtpengine-ctl -ip 127.0.0.1:8500 list
*Inside do while after call socket->recv(response, 1024*1024*10)*

Please find the below attached source code for  rtpengine-ng-client and
rtpengine-ctl.
Any help and suggestion will be highly appreciated.

Thanks,
Mahesh


rtpengine-ctl
Description: Binary data


rtpengine-ng-client
Description: Binary data
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] help: can anybody give me a configuration template of SBC?

2020-11-18 Thread Daniel-Constantin Mierla
Hello,

On 17.11.20 07:40, Steve Davies wrote:
>
>
> On Tue, 17 Nov 2020 at 08:37, 陈理军  > wrote:
>
> Hi
> I want to configure Kamailio SIP server to act as a SBC.
> I had read the article of Kamailio working as SBC to connect MS
> Team project:  
> https://skalatan.de/en/blog/kamailio-sbc-teams
> 
> But I can not find the kamailio.cfg file for this scenario.
>
> Can anybody give me a configuration template of SBC?
>
>
> I suspect that if you ask this question on the Kamailio list you will
> be asked to define the term "SBC".
>
indeed, defining what an SBC is matters a lot, but even when listing all
the features you want/expect, it is very improbable that someone will
send a full out-of-the configuration file. The approach is to start
building it step by stem and use the mailing list to help sort out
things when you are stuck.

The default kamailio.cfg or the example config in dispatcher module are
good starting points. Look also inside misc/examples/, there are plenty
of configs there that can be used for learning or extracting parts to
build a new config.

Then you can come with specific questions, like: I want topology hiding,
is that possible? Which is quick and easy to answer by community
members: yes, look at topoh or topos modules.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

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


Re: [SR-Users] help: can anybody give me a configuration template of SBC?

2020-11-16 Thread Steve Davies
On Tue, 17 Nov 2020 at 08:37, 陈理军  wrote:

> Hi
> I want to configure Kamailio SIP server to act as a SBC.
> I had read the article of Kamailio working as SBC to connect MS Team
> project:
> https://skalatan.de/en/blog/kamailio-sbc-teams
> But I can not find the kamailio.cfg file for this scenario.
>
> Can anybody give me a configuration template of SBC?
>
>
I suspect that if you ask this question on the Kamailio list you will be
asked to define the term "SBC".
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] help: can anybody give me a configuration template of SBC?

2020-11-16 Thread 陈理军
Hi
I want to configure Kamailio SIP server to act as a SBC.
I had read the article of Kamailio working as SBC to connect MS Team 
project:
https://skalatan.de/en/blog/kamailio-sbc-teams
But I can not find the kamailio.cfg file for this scenario.


Can anybody give me a configuration template of SBC?


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


Re: [SR-Users] [Help] Kamailio not receive bye requests

2020-08-04 Thread Daniel-Constantin Mierla
Hello,

make sure you have advertise public address to the listen sockets.

Cheers,
Daniel

On 31.07.20 04:33, Duy Phan wrote:
> Hi guy!
>  I use ec2 ubuntu on aws. But kamailio not receive bye requests.
> But when I install Kmailio in vultr is OK.
> can you help me?
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> 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
Funding: https://www.paypal.me/dcmierla

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


Re: [SR-Users] [Help] Kamailio not receive bye requests

2020-07-31 Thread Karsten Horsmann
Hi,

I would start with tcpdump or ngrep for basic is ip a to ip b
communicating.
Because if the sip request is broken or not correct responded or whatever
sngrep didn't shows all on the wire in such cases.

Sngrep is great for "its working and I want to see dialogs" imho, not for
fundamental network problems.

Cheers
Karsten

Mark Boyce  schrieb am Fr., 31. Juli 2020, 09:45:

> Hi
>
> I’d start with sngrep so establish if it’s not receiving the BYE
> (client/network/nat/firewall/etc issue) or not kamailio is not seeing the
> BYE.
>
> Mark
>
> On 31 Jul 2020, at 03:33, Duy Phan  wrote:
>
> Hi guy!
>  I use ec2 ubuntu on aws. But kamailio not receive bye requests.
> But when I install Kmailio in vultr is OK.
> can you help me?
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Mark Boyce
> Dark Origins Ltd
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [Help] Kamailio not receive bye requests

2020-07-31 Thread Mark Boyce
Hi

I’d start with sngrep so establish if it’s not receiving the BYE 
(client/network/nat/firewall/etc issue) or not kamailio is not seeing the BYE.

Mark

> On 31 Jul 2020, at 03:33, Duy Phan  wrote:
> 
> Hi guy!
>  I use ec2 ubuntu on aws. But kamailio not receive bye requests.
> But when I install Kmailio in vultr is OK.
> can you help me?
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Mark Boyce
Dark Origins Ltd

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


Re: [SR-Users] Help on dumping running config in Kamailio

2020-07-08 Thread Gerry | Rigatta
$sudo grep -i -a -B100 -A100 'string' /dev/sda1 > file.txt
https://unix.stackexchange.com/questions/2677/recovering-accidentally-deleted-files/2680#2680
 


Good luck!

> On 9 Jul 2020, at 05:53, BALL SUN  wrote:
> 
> Hi
> 
> I need an urgent help, I accidentally pipe the output to the kamailio
> config, and now I lost the copy of my latest setting, is there a
> chance that I can dump the running config back to file?
> 
> Thanks
> 
> PLEASE HELP
> 
> RBK
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

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


Re: [SR-Users] Help me open ports for my kamailio

2020-03-04 Thread Fred Posner
On Wed, 2020-03-04 at 14:49 +0200, Stefan Troplev wrote:
> This is my rtpproxy configuration
> 
> /etc/init.d/rtpproxy
> 
> 
> [snip]

The following page from rtpproxy provides an example of opening ports
within the service:

https://www.rtpproxy.org/doc/master/user_manual.html#idm45633805004384

--fred


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


Re: [SR-Users] Help me open ports for my kamailio

2020-03-04 Thread Stefan Troplev
This is my rtpproxy configuration

/etc/init.d/rtpproxy


#! /bin/sh
### BEGIN INIT INFO
# Provides:  rtpproxy
# Required-Start:$remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:  0 1 6
# Short-Description: RTP Proxy
# Description:   Relay for VoIP media streams
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=rtpproxy
DESC="RTP relay"
DAEMON=/usr/bin/$NAME
USER=$NAME
GROUP=$USER
PIDFILE="/var/run/$NAME/$NAME.pid"
PIDFILE_DIR=`dirname $PIDFILE`
CONTROL_SOCK="udp:localhost:7722"

test -x $DAEMON || exit 0
umask 002

. /lib/lsb/init-functions

# Include defaults if available
if [ -f /etc/default/$NAME ] ; then
. /etc/default/$NAME
fi

DAEMON_OPTS="-s $CONTROL_SOCK -u $USER:$GROUP -p $PIDFILE $EXTRA_OPTS"

if [ ! -d "$PIDFILE_DIR" ];then
mkdir "$PIDFILE_DIR"
chown $USER:$GROUP "$PIDFILE_DIR"
fi

set -e
case "$1" in
  start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
-- $DAEMON_OPTS
echo "$NAME."
;;
  stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec
$DAEMON
echo "$NAME."
;;
  status)
echo -n "Status $DESC: "
PID=$(cat $PIDFILE)
kill -0 $PID
rc=$?
# Check exit code
if [ "$rc" -ne 0 ]
then
echo "$NAME is NOT running."
exit 7
else
echo "$NAME is running with PID: $PID"
fi
;;
  restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec
$DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
-- $DAEMON_OPTS
echo "$NAME."
;;
  *)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|status|restart|force-reload}" >&2
exit 1
;;
esac


case "$1" in
  start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
-- $DAEMON_OPTS
echo "$NAME."
;;
  stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec
$DAEMON
echo "$NAME."
;;
  status)
echo -n "Status $DESC: "
PID=$(cat $PIDFILE)
kill -0 $PID
rc=$?
# Check exit code
if [ "$rc" -ne 0 ]
then
echo "$NAME is NOT running."

else
echo "$NAME is running with PID: $PID"
fi
;;
  restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec
$DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON
-- $DAEMON_OPTS
echo "$NAME."
;;
  *)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|status|restart|force-reload}" >&2
exit 1
;;
esac

exit 0


On Thu, Feb 13, 2020 at 5:49 PM Fred Posner  wrote:

> On 2/13/20 4:13 AM, Stefan Troplev wrote:
> > Hi, I've been struggling around with my kamailio configuration.
> >
> > I've managed to install kamailio on Ubuntu Server and configured 2
> > clients, I've registered them in Zoiper to my server. They can call each
> > other, but are unable to talk. There is no audio heard. Ports opened on
> > the router are 2-3 UDP and both TCP and UDP for 5060 and 5062.
> > Are these ports correctly opened? Thank you.
>
> Kamailio is a SIP server and doesn't actively relay media. You can use
> Kamailio in conjunction with a media relay (such as rtpengine or
> rtpproxy) to proxy/relay media and the ports needed would be opened
> within that software.
>
> Fred Posner
> f...@qxork.com
> https://qxork.com
> Direct/SMS: +1 (336) 439-3733
>
> Need Fred? Call Fred. 336-HEY-FRED
> Matrix: @fred:matrix.lod.com
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Help me open ports for my kamailio

2020-02-13 Thread Fred Posner
On 2/13/20 4:13 AM, Stefan Troplev wrote:
> Hi, I've been struggling around with my kamailio configuration.
> 
> I've managed to install kamailio on Ubuntu Server and configured 2
> clients, I've registered them in Zoiper to my server. They can call each
> other, but are unable to talk. There is no audio heard. Ports opened on
> the router are 2-3 UDP and both TCP and UDP for 5060 and 5062.
> Are these ports correctly opened? Thank you.

Kamailio is a SIP server and doesn't actively relay media. You can use
Kamailio in conjunction with a media relay (such as rtpengine or
rtpproxy) to proxy/relay media and the ports needed would be opened
within that software.

Fred Posner
f...@qxork.com
https://qxork.com
Direct/SMS: +1 (336) 439-3733

Need Fred? Call Fred. 336-HEY-FRED
Matrix: @fred:matrix.lod.com

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


[SR-Users] Help me open ports for my kamailio

2020-02-13 Thread Stefan Troplev
Hi, I've been struggling around with my kamailio configuration.

I've managed to install kamailio on Ubuntu Server and configured 2 clients,
I've registered them in Zoiper to my server. They can call each other, but
are unable to talk. There is no audio heard. Ports opened on the router are
2-3 UDP and both TCP and UDP for 5060 and 5062. Are these ports
correctly opened? Thank you.
kamailio.cfg

> #!KAMAILIO
> #!define WITH_MYSQL
> #!define WITH_AUTH
> #!define WITH_USRLOCDB
> #!define WITH_ACCDB
> #
> # Kamailio (OpenSER) SIP Server v5.2 - default configuration script
> # - web: https://www.kamailio.org
> # - git: https://github.com/kamailio/kamailio
> #
> # Direct your questions about this file to: 
> #
> # Refer to the Core CookBook at https://www.kamailio.org/wiki/
> # for an explanation of possible statements, functions and parameters.
> #
> # Note: the comments can be:
> # - lines starting with #, but not the pre-processor directives,
> #   which start with #!, like #!define, #!ifdef, #!endif, #!else,
> #!trydef,
> #   #!subst, #!substdef, ...
> # - lines starting with //
> # - blocks enclosed in between /* */
> #
> # Several features can be enabled using '#!define WITH_FEATURE' directives:
> #
> # *** To run in debug mode:
> # - define WITH_DEBUG
> #
> # *** To enable mysql:
> # - define WITH_MYSQL
> #
> # *** To enable authentication execute:
> # - enable mysql
> # - define WITH_AUTH
> # - add users using 'kamctl'
> #
> # *** To enable IP authentication execute:
> # - enable mysql
> # - enable authentication
> # - define WITH_IPAUTH
> # - add IP addresses with group id '1' to 'address' table
> #
> # *** To enable persistent user location execute:
> # - enable mysql
> # - define WITH_USRLOCDB
> #
> # *** To enable presence server execute:
> # - enable mysql
> # - define WITH_PRESENCE
> #
> # *** To enable nat traversal execute:
> # - define WITH_NAT
> # - install RTPProxy: http://www.rtpproxy.org
> # - start RTPProxy:
> #rtpproxy -l _your_public_ip_ -s udp:localhost:7722
> # - option for NAT SIP OPTIONS keepalives: WITH_NATSIPPING
> #
> # *** To enable PSTN gateway routing execute:
> # - define WITH_PSTN
> # - set the value of pstn.gw_ip
> # - check route[PSTN] for regexp routing condition
> #
> # *** To enable database aliases lookup execute:
> # - enable mysql
> # - define WITH_ALIASDB
> #
> # *** To enable speed dial lookup execute:
> # - enable mysql
> # - define WITH_SPEEDDIAL
> #
> # *** To enable multi-domain support execute:
> # - enable mysql
> # - define WITH_MULTIDOMAIN
> #
> # *** To enable TLS support execute:
> # - adjust CFGDIR/tls.cfg as needed
> # - define WITH_TLS
> #
> # *** To enable XMLRPC support execute:
> # - define WITH_XMLRPC
> # - adjust route[XMLRPC] for access policy
> #
> # *** To enable anti-flood detection execute:
> # - adjust pike and htable=>ipban settings as needed (default is
> #   block if more than 16 requests in 2 seconds and ban for 300
> seconds)
> # - define WITH_ANTIFLOOD
> #
> # *** To block 3XX redirect replies execute:
> # - define WITH_BLOCK3XX
> #
> # *** To block 401 and 407 authentication replies execute:
> # - define WITH_BLOCK401407
> #
> # *** To enable VoiceMail routing execute:
> # - define WITH_VOICEMAIL
> # - set the value of voicemail.srv_ip
> # - adjust the value of voicemail.srv_port
> #
> # *** To enhance accounting execute:
> # - enable mysql
> # - define WITH_ACCDB
> # - add following columns to database
> #!ifdef ACCDB_COMMENT
>   ALTER TABLE acc ADD COLUMN src_user VARCHAR(64) NOT NULL DEFAULT '';
>   ALTER TABLE acc ADD COLUMN src_domain VARCHAR(128) NOT NULL DEFAULT '';
>   ALTER TABLE acc ADD COLUMN src_ip varchar(64) NOT NULL default '';
>   ALTER TABLE acc ADD COLUMN dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
>   ALTER TABLE acc ADD COLUMN dst_user VARCHAR(64) NOT NULL DEFAULT '';
>   ALTER TABLE acc ADD COLUMN dst_domain VARCHAR(128) NOT NULL DEFAULT '';
>   ALTER TABLE missed_calls ADD COLUMN src_user VARCHAR(64) NOT NULL
> DEFAULT '';
>   ALTER TABLE missed_calls ADD COLUMN src_domain VARCHAR(128) NOT NULL
> DEFAULT '';
>   ALTER TABLE missed_calls ADD COLUMN src_ip varchar(64) NOT NULL default
> '';
>   ALTER TABLE missed_calls ADD COLUMN dst_ouser VARCHAR(64) NOT NULL
> DEFAULT '';
>   ALTER TABLE missed_calls ADD COLUMN dst_user VARCHAR(64) NOT NULL
> DEFAULT '';
>   ALTER TABLE missed_calls ADD COLUMN dst_domain VARCHAR(128) NOT NULL
> DEFAULT '';
> #!endif
>
> ### Include Local Config If Exists #
> import_file "kamailio-local.cfg"
>
> ### Defined Values #
>
> # *** Value defines - IDs used later in config
> #!ifdef WITH_MYSQL
> # - database URL - used to connect to database server by modules such
> #   as: auth_db, acc, usrloc, a.s.o.
> #!ifndef DBURL
> #!define DBURL 

Re: [SR-Users] Help with "routines:ssl3_read_bytes:sslv3 alert bad certificate" kamailio TLS error

2019-09-12 Thread Daniel-Constantin Mierla
Hello,

set debug=3 in kamailio.cfg, restart kamailio and try to connect again
with the client. Watch the logs and you should get more details about
what happens there.

Cheers,
Daniel

On 06.09.19 19:05, da...@aslo.us wrote:
>
> Hello everyone,
>
>  
>
> I am trying to configure TLS in kamailio (5.2.4) following this
> guide: http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates
>
>  
>
> Modules:
>
>  
>
> #!define WITH_MYSQL
>
> #!define WITH_AUTH
>
> #!define WITH_USRLOCDB
>
> #!define WITH_PRESENCE
>
> #!define WITH_ALIASDB
>
> #!define WITH_IMC
>
> #!define WITH_TLS
>
>  
>
> When i try to connect via command line, this is the result (just
> including relevant parts):
>
>  
>
> $ openssl s_client -connect 192.X.X.X:5061 -tls1
>
> CONNECTED(0003)
>
> depth=1 C = XX, ST = , L = XX, O = XXX CA, CN = XXX CA
>
> verify error:num=19:self signed certificate in certificate chain
>
> verify return:0
>
> ---
>
> No client certificate CA names sent
>
> ---
>
> SSL handshake has read 2550 bytes and written 336 bytes
>
> ---
>
> ---
>
>     Start Time: 1567787935
>
>     Timeout   : 7200 (sec)
>
>     Verify return code: 19 (self signed certificate in certificate chain)
>
> ---
>
> read:errno=0
>
>  
>
>  
>
> Now, when I setup my clients, they connect to the server, but they
> can't send messages or make calls.
>
>  
>
>  
>
> This is the TLS startup LOG:
>
>  
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_mod.c:372]: mod_init(): With ECDH-Support!
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_mod.c:375]: mod_init(): With Diffie Hellman
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: CRITICAL: tls
> [tls_init.c:671]: init_tls_h(): installed openssl library version is
> too different from the library the kamailio tls module was compiled
> with: installed "OpenSSL 1.1.1  11 Sep 2018" (0x1010100f), compiled
> "OpenSSL 1.1.0k  28 May 2019" (0x101000bf).#012 Please make sure a
> compatible version is used (tls_force_run in kamailio.cfg will
> override this check)
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: WARNING: tls
> [tls_init.c:680]: init_tls_h(): tls_force_run turned on, ignoring 
> openssl version mismatch
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: WARNING: tls
> [tls_init.c:778]: init_tls_h(): openssl bug #1491 (crash/mem leaks on
> low memory) workaround enabled (on low memory tls operations will fail
> preemptively) with free memory thresholds 12582912 and 6291456 bytes
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: 
> [core/cfg/cfg_ctx.c:595]: cfg_set_now(): tls.low_mem_threshold1 has
> been changed to 12582912
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: 
> [core/cfg/cfg_ctx.c:595]: cfg_set_now(): tls.low_mem_threshold2 has
> been changed to 6291456
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: 
> [main.c:2669]: main(): processes (at least): 24 - shm size: 67108864 -
> pkg size: 8388608
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: 
> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is
> initially 212992
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: 
> [core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is
> finally 425984
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:303]: ksr_tls_fill_missing(): TLSs: tls_method=12
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:315]: ksr_tls_fill_missing(): TLSs:
> certificate='/etc/certs/192.X.X.X/cert.pem'
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:322]: ksr_tls_fill_missing(): TLSs:
> ca_list='/etc/certs/demoCA/cert.pem'
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:329]: ksr_tls_fill_missing(): TLSs: crl='(null)'
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:333]: ksr_tls_fill_missing(): TLSs:
> require_certificate=0
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:340]: ksr_tls_fill_missing(): TLSs:
> cipher_list='(null)'
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:347]: ksr_tls_fill_missing(): TLSs:
> private_key='/etc/certs/192.X.X.X/key.pem'
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:351]: ksr_tls_fill_missing(): TLSs:
> verify_certificate=0
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:354]: ksr_tls_fill_missing(): TLSs: verify_depth=9
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: NOTICE: tls
> [tls_domain.c:1087]: ksr_tls_fix_domain(): registered server_name
> callback handler for socket [:0], server_name='' ...
>
> Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls
> [tls_domain.c:707]: set_verification(): TLSs: No client

[SR-Users] Help with "routines:ssl3_read_bytes:sslv3 alert bad certificate" kamailio TLS error

2019-09-06 Thread da...@aslo.us

Hello everyone,
 
I am trying to configure TLS in kamailio (5.2.4) following this guide: [ 
http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates ]( 
http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates )
 
Modules:
 
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_PRESENCE
#!define WITH_ALIASDB
#!define WITH_IMC
#!define WITH_TLS
 
When i try to connect via command line, this is the result (just including 
relevant parts):
 
$ openssl s_client -connect 192.X.X.X:5061 -tls1
CONNECTED(0003)
depth=1 C = XX, ST = , L = XX, O = XXX CA, CN = XXX CA
verify error:num=19:self signed certificate in certificate chain
verify return:0
---
No client certificate CA names sent
---
SSL handshake has read 2550 bytes and written 336 bytes
---
---
Start Time: 1567787935
Timeout   : 7200 (sec)
Verify return code: 19 (self signed certificate in certificate chain)
---
read:errno=0
 
 
Now, when I setup my clients, they connect to the server, but they can't send 
messages or make calls.
 
 
This is the TLS startup LOG:
 
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_mod.c:372]: mod_init(): With ECDH-Support!
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_mod.c:375]: mod_init(): With Diffie Hellman
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: CRITICAL: tls 
[tls_init.c:671]: init_tls_h(): installed openssl library version is too 
different from the library the kamailio tls module was compiled with: installed 
"OpenSSL 1.1.1  11 Sep 2018" (0x1010100f), compiled "OpenSSL 1.1.0k  28 May 
2019" (0x101000bf).#012 Please make sure a compatible version is used 
(tls_force_run in kamailio.cfg will override this check)
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: WARNING: tls 
[tls_init.c:680]: init_tls_h(): tls_force_run turned on, ignoring  openssl 
version mismatch
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: WARNING: tls 
[tls_init.c:778]: init_tls_h(): openssl bug #1491 (crash/mem leaks on low 
memory) workaround enabled (on low memory tls operations will fail 
preemptively) with free memory thresholds 12582912 and 6291456 bytes
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO:  
[core/cfg/cfg_ctx.c:595]: cfg_set_now(): tls.low_mem_threshold1 has been 
changed to 12582912
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO:  
[core/cfg/cfg_ctx.c:595]: cfg_set_now(): tls.low_mem_threshold2 has been 
changed to 6291456
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO:  
[main.c:2669]: main(): processes (at least): 24 - shm size: 67108864 - pkg 
size: 8388608
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO:  
[core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially 
212992
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO:  
[core/udp_server.c:205]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:303]: ksr_tls_fill_missing(): TLSs: tls_method=12
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:315]: ksr_tls_fill_missing(): TLSs: 
certificate='/etc/certs/192.X.X.X/cert.pem'
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:322]: ksr_tls_fill_missing(): TLSs: 
ca_list='/etc/certs/demoCA/cert.pem'
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:329]: ksr_tls_fill_missing(): TLSs: crl='(null)'
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:333]: ksr_tls_fill_missing(): TLSs: require_certificate=0
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:340]: ksr_tls_fill_missing(): TLSs: cipher_list='(null)'
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:347]: ksr_tls_fill_missing(): TLSs: 
private_key='/etc/certs/192.X.X.X/key.pem'
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:351]: ksr_tls_fill_missing(): TLSs: verify_certificate=0
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:354]: ksr_tls_fill_missing(): TLSs: verify_depth=9
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: NOTICE: tls 
[tls_domain.c:1087]: ksr_tls_fix_domain(): registered server_name callback 
handler for socket [:0], server_name='' ...
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:707]: set_verification(): TLSs: No client certificate 
required and no checks performed
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:303]: ksr_tls_fill_missing(): TLSc: tls_method=12
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:315]: ksr_tls_fill_missing(): TLSc: certificate='(null)'
Sep  6 16:41:57 aslo-kamailio /usr/sbin/kamailio[5845]: INFO: tls 
[tls_domain.c:322]: ksr_tls_fill_missing(): TLSc: 

[SR-Users] Help identifying mem leaks

2019-05-10 Thread Duarte Rocha
Greetings,

Recently one of my Kamailio's started started answering with a lot of 500
replies to requests because of insufficient private memory.

The service Kamailio had been running for 6 months now. In order to solve
this i increased the private memory settings and restarted the Kamailio.

Before that, when searching a bit about the issue i found an old thread
where Daniel suggested using " kamcmd corex.pkg_summary idx 1" to check for
pkg leaks in the sip worker process. I ran this before doing the restart in
order to identify leaks and found the summary in the logs.

However, i am having a hard time interpreting this summary and being able
to know if i have or not a mem leak. What should i be looking for?

This is the beggining of the summary :

qm_status: (0x7ff3c8cef010):
 qm_status: heap size= 8388608
 qm_status: used= 928576, used+overhead=1464080, free=6924528
 qm_status: max used (+overhead)= 1488472
 qm_status: dumping all alloc'ed. fragments:
 qm_status:  0. N  address=0x7ff3c8d286d8 frag=0x7ff3c8d286a0 size=1024
used=1
 qm_status:   alloc'd from core: core/str_hash.h: str_hash_alloc(59)
 qm_status:  start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
 qm_status:  1. N  address=0x7ff3c8d28b40 frag=0x7ff3c8d28b08 size=256
used=1
 qm_status:   alloc'd from core: core/str_hash.h: str_hash_alloc(59)
 qm_status:  start check=f0f0f0f0, end check= c0c0c0c0, abcdefed
 qm_status:  2. N  address=0x7ff3c8d28ca8 frag=0x7ff3c8d28c70 size=184
used=1
 qm_status:   alloc'd from core: core/counters.c: cnt_hash_add(332)
 qm_status:  start check=f0f0f0f0, end check= c0c0c0c0, abcdefed


 Any help?

 Best Regards,

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


Re: [SR-Users] HELP ME

2019-05-07 Thread David Villasmil
You need to edit kamctlrc and add the parameters like engine=MYSQL and
users and passwords. Etc.

On Tue, 7 May 2019 at 17:03, khadime gaye  wrote:

> Good morning,
>
> How I can resolve this problem ?
>
> << ERROR: Could not load the script in
> /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
>
> ERROR: database engine not loaded - tried 'MYSQL'  >>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] HELP ME

2019-05-07 Thread khadime gaye
Good morning,

How I can resolve this problem ?

<< ERROR: Could not load the script in
/usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL

ERROR: database engine not loaded - tried 'MYSQL'  >>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Help request in regards to Kamailio

2019-04-10 Thread Shaheryarkh
  
  

 Kamailio has very extensive documentation for all users at   
https://www.kamailio.org/w/documentation/
  

  
  

  
Just browse through it.
  

  
Thank you.
  
  
>   
> On Apr 9, 2019 at 10:47 PM,  mailto:azah...@zaion.ai)>  wrote:
>   
>   
>   
>   
> Dear,
>   
>
>   
> I am writing to ask for help, I found your Email after I've subscribed to 
> Kamailio.org.
>   
>
>   
> I am a beginner in Linux environment ( I worked on Windows for 20 years), it 
> would be very helpful if you can help me installing Kamailio on a computer 
> running Debian and how to use the load balancing module so that I can split 
> the charge between 2 asterisk servers, by sharing any useful tutorial or 
> document or even by Teamviewer if this doesn't disturb you.
>   
>
>   
> Please help me, all the tutorials I find on internet aren't made for 
> beginners.
>   
>
>   
> I will be awaiting your reply and excuse me again if I disturb you.
>   
>
>   
> Best regards,
>   
>
>  --
>   
>   
>   
>   
>   
>
> Anas ZAHHAF
>
>   
>
> 105, rue des Moines
>  75017 PARIS
>   +33(0)7.66.31.31.85
>   azah...@zaion.ai (mailto:nil...@zaion.ai)   |   www.zaion.ai 
> (http://www.zaion.ai/)   
>
>   
>
>
>
>   
>   
>   
>   
>   
>   
> ᐧ
>  ___ Kamailio (SER) - Users 
> Mailing List sr-users@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>   
  
  
 ___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Help request in regards to Kamailio

2019-04-10 Thread Anas ZAHHAF
Dear,

I am writing to ask for help, I found your Email after I've subscribed to
Kamailio.org.

I am a beginner in Linux environment ( I worked on Windows for 20 years),
it would be very helpful if you can help me installing Kamailio on a
computer running Debian and how to use the load balancing module so that I
can split the charge between 2 asterisk servers, by sharing any useful
tutorial or document or even by Teamviewer if this doesn't disturb you.

Please help me, all the tutorials I find on internet aren't made for
beginners.

I will be awaiting your reply and excuse me again if I disturb you.

Best regards,

-- 

*Anas ZAHHAF*


*105, rue des Moines75017 PARIS*
*+33(0)7.66.31.31.85*
azah...@zaion.ai  | www.zaion.ai

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


Re: [SR-Users] help with regex extracting from $rb

2018-10-31 Thread Henning Westerholt
Am Mittwoch, 31. Oktober 2018, 02:05:09 CET schrieb Sergiu Pojoga:
> May be for a start someone can clarify the general rules of engagement in
> this battle with regex transformations.
> https://www.kamailio.org/wiki/cookbooks/5.1.x/transformations#resubst_expres
> sion
> 
> What kind of regex library does this function expect: PCRE, Perl, Java,
> POSIX BRE/ERE?
> I've used all kinds of regex validators, regex101.com, rexv.org. Some
> expressions pass those but do not work in Kamailio. The result is a dump of
> the entire $rb.
> 
> Much obliged.

Hello Sergiu,

from your quoted wiki page:

"Perform POSIX regex substitutions on string value pseudo-variables."

The textops module uses this implementation basically:

http://man7.org/linux/man-pages/man3/regexec.3.html

Best regards,

Henning

-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio security assessment - https://skalatan.de/de/assessment

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


Re: [SR-Users] help with regex extracting from $rb

2018-10-30 Thread Sergiu Pojoga
May be for a start someone can clarify the general rules of engagement in
this battle with regex transformations.
https://www.kamailio.org/wiki/cookbooks/5.1.x/transformations#resubst_expression

What kind of regex library does this function expect: PCRE, Perl, Java,
POSIX BRE/ERE?
I've used all kinds of regex validators, regex101.com, rexv.org. Some
expressions pass those but do not work in Kamailio. The result is a dump of
the entire $rb.

Much obliged.

On Mon, Oct 29, 2018 at 1:33 PM Sergiu Pojoga  wrote:

> Hi there,
>
> May be some regex gurus can help me out. Being aware that regex's are
> tricky but not seeing another alternative in this particular case.
>
> Trying to extract MOSLQ field from $rb.
>
> $var(moslq) =
> $(rb{re.subst,/.*MOSLQ=([0-9].[0-9])\s+MOSCQ=([0-9].[0-9]).*/\1/s});
>
> Above regex works fine IF body contains a single matching line. However,
> if there's 2 lines as in the below example - it return $var(moslq)=0.0, the
> last found value.
>
> I need only *LocalMetrics *values, so I tried this regex which works fine
> in regex101.com with flag 'multi-line' and *without flag 'global'*, but
> doesn't work in Kamailio.
> $var(moslq) =
> $(rb{re.subst,/.*MOSLQ=([0-9].[0-9])\s+MOSCQ=([0-9].[0-9])[\nRemoteMetrics]?.*/\1/s});
>
> Assuming $rb is as follows:
> VQSessionReport
> CallID:1ca9258d285a539e3c1048205bf38...@mypb.net
> LocalMetrics:
> Timestamps:START=2018-10-29T15:04:38Z STOP=2018-10-29T15:06:13Z
> QualityEst:EXTRI=127 MOSLQ=4.2 MOSCQ=4.4
> RemoteMetrics:
> Timestamps:START=2018-10-29T15:04:38Z STOP=2018-10-29T15:06:13Z
> QualityEst:RCQ=0 EXTRI=0 MOSLQ=0.0 MOSCQ=0.0
>
> Thanks in advance.
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] help with regex extracting from $rb

2018-10-29 Thread Sergiu Pojoga
Hi there,

May be some regex gurus can help me out. Being aware that regex's are
tricky but not seeing another alternative in this particular case.

Trying to extract MOSLQ field from $rb.

$var(moslq) =
$(rb{re.subst,/.*MOSLQ=([0-9].[0-9])\s+MOSCQ=([0-9].[0-9]).*/\1/s});

Above regex works fine IF body contains a single matching line. However, if
there's 2 lines as in the below example - it return $var(moslq)=0.0, the
last found value.

I need only *LocalMetrics *values, so I tried this regex which works fine
in regex101.com with flag 'multi-line' and *without flag 'global'*, but
doesn't work in Kamailio.
$var(moslq) =
$(rb{re.subst,/.*MOSLQ=([0-9].[0-9])\s+MOSCQ=([0-9].[0-9])[\nRemoteMetrics]?.*/\1/s});

Assuming $rb is as follows:
VQSessionReport
CallID:1ca9258d285a539e3c1048205bf38...@mypb.net
LocalMetrics:
Timestamps:START=2018-10-29T15:04:38Z STOP=2018-10-29T15:06:13Z
QualityEst:EXTRI=127 MOSLQ=4.2 MOSCQ=4.4
RemoteMetrics:
Timestamps:START=2018-10-29T15:04:38Z STOP=2018-10-29T15:06:13Z
QualityEst:RCQ=0 EXTRI=0 MOSLQ=0.0 MOSCQ=0.0

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


Re: [SR-Users] Help

2018-10-19 Thread Fred Posner
Line #859 gives an example of stripping and prefixing. The same 
principles would apply to modification.


--fred

On 10/19/18 6:24 AM, Olivier KOFFI wrote:

Good morning

I want to use kamailio to send calls to an asterisk. My problem is that 
I want to define call prefixes.


  example

If the subscriber calls the 6000, please call us 7000

  on transfer to asterisk. Subscribers are at 6000.6001, etc.

  I want to know exactly which line to modify in kamailio.cfg

  thank you

  Sincerely

KOFFI Koffi Olivier

+225 79830005
+225 59098608

Directeur Technique LIFOR Sarl


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



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


[SR-Users] Help

2018-10-19 Thread Olivier KOFFI
Good morning

I want to use kamailio to send calls to an asterisk. My problem is that I
want to define call prefixes.

 example

If the subscriber calls the 6000, please call us 7000

 on transfer to asterisk. Subscribers are at 6000.6001, etc.

 I want to know exactly which line to modify in kamailio.cfg



 thank you

 Sincerely


KOFFI Koffi Olivier

+225 79830005
+225 59098608

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


Re: [SR-Users] Help with kamailio/freeswitch

2018-09-25 Thread Oz Mortimer
Hi david,
You need to use fs_path in your dial string (bridge/originate);

;fs_path=sip:XXX.XXX.XXX.XXX:5060 
Where xxx.xxx.xxx.xxx is your proxy. 


> On 25 Sep 2018, at 17:37, Joel Serrano  wrote:
> 
> Have you tried to file a JIRA in case it's a bug? As an alternative, have you 
> thought of using Kamailio as the FS gateway, and then have Kamailio handle 
> all the gateway stuff... (so to your provider, the UAC would be K and not 
> FS)...
> 
> 
> 
> 
> 
> 
>> On Tue, Sep 25, 2018 at 6:04 AM David Villasmil 
>>  wrote:
>> Hello guys,
>> 
>> I know this is kamailio's mailing list, but I'm getting no answer on 
>> freeswitch, and i thought someone here has probably done this is the past.
>> 
>> I have a proxy in front of freeswitch. I want freeswitch to use the proxy 
>> for everything including the termination to my provider.
>> 
>> If I configured the gateway like this:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> The registration works properly, the REGISTER goes to the proxy like
>> 
>> REGISTER sip:myprovider.com;transport=udp SIP/2.0
>> 
>> and the proxy forwards it fine, and registration works great.
>> But when i try to call via this gateway, the call goes STRAIGHT to the 
>> provider!
>> 
>> If, on the other hand, i configure my gateway as:
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Registration does NOT work, because the uri is:
>> 
>> REGISTER sip:myproxy.domain.com;transport=udp SIP/2.0
>> 
>> Because there is no registrar on that proxy!
>> 
>> 
>> 
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Help with kamailio/freeswitch

2018-09-25 Thread Joel Serrano
Have you tried to file a JIRA in case it's a bug? As an alternative, have
you thought of using Kamailio as the FS gateway, and then have Kamailio
handle all the gateway stuff... (so to your provider, the UAC would be K
and not FS)...






On Tue, Sep 25, 2018 at 6:04 AM David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Hello guys,
>
> I know this is kamailio's mailing list, but I'm getting no answer on
> freeswitch, and i thought someone here has probably done this is the past.
>
> I have a proxy in front of freeswitch. I want freeswitch to use the proxy
> for everything including the termination to my provider.
>
> If I configured the gateway like this:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> The registration works properly, the REGISTER goes to the proxy like
>
> REGISTER sip:myprovider.com;transport=udp SIP/2.0
>
> and the proxy forwards it fine, and registration works great.
> But when i try to call via this gateway, the call goes STRAIGHT to the
> provider!
>
> If, on the other hand, i configure my gateway as:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Registration does NOT work, because the uri is:
>
> REGISTER sip:myproxy.domain.com;transport=udp SIP/2.0
>
> Because there is no registrar on that proxy!
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Help with kamailio/freeswitch

2018-09-25 Thread David Villasmil
Hello guys,

I know this is kamailio's mailing list, but I'm getting no answer on
freeswitch, and i thought someone here has probably done this is the past.

I have a proxy in front of freeswitch. I want freeswitch to use the proxy
for everything including the termination to my provider.

If I configured the gateway like this:














The registration works properly, the REGISTER goes to the proxy like

REGISTER sip:myprovider.com;transport=udp SIP/2.0

and the proxy forwards it fine, and registration works great.
But when i try to call via this gateway, the call goes STRAIGHT to the
provider!

If, on the other hand, i configure my gateway as:















Registration does NOT work, because the uri is:

REGISTER sip:myproxy.domain.com;transport=udp SIP/2.0

Because there is no registrar on that proxy!
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] help

2018-08-21 Thread Pravin .
yes..at start i have issue a command : apt-get update

i have run the command with correct format also i.e kamailio but didn't
work.

For Kamailio installation what the pre-requisite , pls guide us...

Also pls tell us on the following...

1. What would be operating system version of Debian ( Debian 8.x or 9.x ?)
2. Pls provide me the link for Kamailio installation guide on Debian (based
on which version of Debian OS)

Regards,
Pravin



On Tue, Aug 21, 2018 at 4:10 PM, Antony Stone <
antony.st...@kamailio.open.source.it> wrote:

> On Monday 20 August 2018 at 15:52:12, Pravin . wrote:
>
> > Herewith attaching the screenshot for the error we are getting after
> > issuing apt-get install mariadb-server command...
>
> 1. Have you ensured your repository index is up to date with "apt-get
> update"
> before trying to install?
>
> 2. Not related to the mariaDB setup, but you can't install kamilio because
> it
> is mis-spelled.
>
> > Pls have a look on attached file.
>
> A copy and paste of the text into the email would have been much smaller,
> easier to read, and more useful.
>
>
> Regards,
>
>
> Antony.
>
> --
> What do you get when you cross a joke with a rhetorical question?
>
>Please reply to the
> list;
>  please *don't* CC
> me.
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] help

2018-08-21 Thread Antony Stone
On Monday 20 August 2018 at 15:52:12, Pravin . wrote:

> Herewith attaching the screenshot for the error we are getting after
> issuing apt-get install mariadb-server command...

1. Have you ensured your repository index is up to date with "apt-get update" 
before trying to install?

2. Not related to the mariaDB setup, but you can't install kamilio because it 
is mis-spelled.

> Pls have a look on attached file.

A copy and paste of the text into the email would have been much smaller, 
easier to read, and more useful.


Regards,


Antony.

-- 
What do you get when you cross a joke with a rhetorical question?

   Please reply to the list;
 please *don't* CC me.

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


Re: [SR-Users] help

2018-08-21 Thread Pravin .
thanks for your support.

For Kamailio installation what the pre-requisite for me , pls guide us...

Also pls tell us on the following...

1. What would be operating system version of Debian ( Debian 8.x or 9.x ?)
2. Pls provide me the link for Kamailio installation guide on Debian (based
on which version of Debian OS)

Regards,
Pravin

On Tue, Aug 21, 2018 at 4:01 PM, Wilkins, Steve  wrote:

> Hi Pravin,
>
>
>
> I would start off by  doing an clean of your repositories, and then
> possibly re-installing MariaDB.  I also use MariaDB for my installation
> with Kamailio and
>
> the only issue I remember having was some missing (.h) files, which I then
> had to go the develop libraries for MariaDB.
>
>
>
> -Steve
>
>
>
> *From:* sr-users  * On Behalf Of *Pravin
> .
> *Sent:* Monday, August 20, 2018 9:52 AM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] help
>
>
>
> Herewith attaching the screenshot for the error we are getting after
> issuing apt-get install mariadb-server command...
>
>
>
> Pls have a look on attached file.
>
>
>
> Regards,
>
> Pravin
>
>
>
> On Mon, Aug 20, 2018 at 6:58 PM, Pravin .  wrote:
>
> thanks for your support but the following command not worked properly..
>
>
>
> 1. apt-get install mariadb-server
>
> after running this command it works but some depended packages not
> installed correctly..and then what will be next command as given below as
> it depends on earlier package installed ..
>
>
>
> 2. apt *install* kamailio kamailio-mysql-modules  (how it run as it
> depend on earlier package installed)
>
>
>
> If you can provide us the latest /updated install guide for kamailio on
> debian, would be helpful.
>
>
>
> Regards,
>
> Pravin
>
> bolindia Networks Pvt. Ltd.
>
>
>
>
>
> On Mon, Aug 20, 2018 at 6:24 PM, Floimair Florian 
> wrote:
>
> MySQL is no longer part of Debian. Instead they now use the MySQL fork
> MariaDB.
>
> So instead of
>
> mysql-server use maria-db-server
>
>
>
> all the rest of the steps are the same.
>
>
>
>
>
>
>
> With best regards
>
>
>
> *Florian Floimair *Innovation - Software-Development
>
>
> *COMMEND INTERNATIONAL GMBH *A-5020 Salzburg, Saalachstraße 51
> http://www.commend.com
>
>
>
> *Security and Communication by Commend *FN 178618z | LG Salzburg
>
>
>
> *Von: *sr-users  im Auftrag von
> "Pravin ." 
> *Antworten an: *"Kamailio (SER) - Users Mailing List" <
> sr-users@lists.kamailio.org>
> *Datum: *Montag, 20. August 2018 um 14:51
> *An: *"Kamailio (SER) - Users Mailing List" 
> *Betreff: *Re: [SR-Users] help
>
>
>
> Hello ,
>
>
>
> Tried to install Kamailio as per link provided by you
> https://www.kamailio.org/wiki/install/stable/debian.
>
>
>
> following commands are not working...
>
>
>
> apt
>
> *install*
>
> mysql-*server*
>
> apt *install*
>
> kamailio kamailio-mysql-modules
>
>
>
> Getting following error...
>
>
>
> Package mysql-server is not available ,but is referred to by another
> package.
>
> This may mean that package is missing.
>
> E: Package "mysql-server" has no installation candidate
>
>
>
> Pls guide us how to proceed...
>
>
>
>
>
> Note: I have installed Debian 9 as OS in my system.
>
>
>
> Regards,
>
> Pravin
>
> bolindia Networks Pvt Ltd.
>
>
>
> On Sat, Aug 18, 2018 at 1:38 PM, Mojtaba  wrote:
>
> Hi,
> The installation of Kamailio is straight forward, Just follow the
> following steps in this site:
> https://www.kamailio.org/wiki/install/stable/debian
> Also, you could download Kamailio form git source.
> With Regards.Mojtaba
>
>
> On Sat, Aug 18, 2018 at 11:52 AM Pravin .  wrote:
> >
> > Hello Team,
> >
> > I want to install Kamailio SIP server on centOS server...do we need to
> download kamailio ISO file and install on server..pls provide the
> installation procedure/guidelines.
> >
> >
> > Regards
> > Pravin
>
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> --Mojtaba Esfandiari.S
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] help

2018-08-21 Thread Wilkins, Steve
Hi Pravin,

I would start off by  doing an clean of your repositories, and then possibly 
re-installing MariaDB.  I also use MariaDB for my installation with Kamailio and
the only issue I remember having was some missing (.h) files, which I then had 
to go the develop libraries for MariaDB.

-Steve

From: sr-users  On Behalf Of Pravin .
Sent: Monday, August 20, 2018 9:52 AM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] help

Herewith attaching the screenshot for the error we are getting after issuing 
apt-get install mariadb-server command...

Pls have a look on attached file.

Regards,
Pravin

On Mon, Aug 20, 2018 at 6:58 PM, Pravin . 
mailto:pra...@bolindia.com>> wrote:
thanks for your support but the following command not worked properly..

1. apt-get install mariadb-server
after running this command it works but some depended packages not installed 
correctly..and then what will be next command as given below as it depends on 
earlier package installed ..

2. apt install kamailio kamailio-mysql-modules  (how it run as it depend on 
earlier package installed)

If you can provide us the latest /updated install guide for kamailio on debian, 
would be helpful.

Regards,
Pravin
bolindia Networks Pvt. Ltd.


On Mon, Aug 20, 2018 at 6:24 PM, Floimair Florian 
mailto:f.floim...@commend.com>> wrote:
MySQL is no longer part of Debian. Instead they now use the MySQL fork MariaDB.
So instead of
mysql-server use maria-db-server

all the rest of the steps are the same.



With best regards

Florian Floimair
Innovation - Software-Development

COMMEND INTERNATIONAL GMBH
A-5020 Salzburg, Saalachstraße 51
http://www.commend.com<http://www.commend.com/>

Security and Communication by Commend

FN 178618z | LG Salzburg

Von: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 im Auftrag von "Pravin ." mailto:pra...@bolindia.com>>
Antworten an: "Kamailio (SER) - Users Mailing List" 
mailto:sr-users@lists.kamailio.org>>
Datum: Montag, 20. August 2018 um 14:51
An: "Kamailio (SER) - Users Mailing List" 
mailto:sr-users@lists.kamailio.org>>
Betreff: Re: [SR-Users] help

Hello ,

Tried to install Kamailio as per link provided by you  
https://www.kamailio.org/wiki/install/stable/debian.

following commands are not working...

apt
install
mysql-server
apt install
kamailio kamailio-mysql-modules

Getting following error...

Package mysql-server is not available ,but is referred to by another package.
This may mean that package is missing.
E: Package "mysql-server" has no installation candidate

Pls guide us how to proceed...


Note: I have installed Debian 9 as OS in my system.

Regards,
Pravin
bolindia Networks Pvt Ltd.

On Sat, Aug 18, 2018 at 1:38 PM, Mojtaba 
mailto:mes...@gmail.com>> wrote:
Hi,
The installation of Kamailio is straight forward, Just follow the
following steps in this site:
https://www.kamailio.org/wiki/install/stable/debian
Also, you could download Kamailio form git source.
With Regards.Mojtaba

On Sat, Aug 18, 2018 at 11:52 AM Pravin . 
mailto:pra...@bolindia.com>> wrote:
>
> Hello Team,
>
> I want to install Kamailio SIP server on centOS server...do we need to 
> download kamailio ISO file and install on server..pls provide the 
> installation procedure/guidelines.
>
>
> Regards
> Pravin
> ___
> 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



--
--Mojtaba Esfandiari.S

___
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


___
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


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


Re: [SR-Users] help

2018-08-21 Thread Henning Westerholt
Am Montag, 20. August 2018, 15:52:12 CEST schrieb Pravin .:
> Herewith attaching the screenshot for the error we are getting after
> issuing apt-get install mariadb-server command...
> 
> Pls have a look on attached file.

Hello Pravin,

it is hard to read the screenshot. Your issue is related to the package 
management, it seems that there is an error during the maria-db installation. 
There are several causes, its hard to guess.

Do you have somebody in contact e.g. in your company that could support you 
with this system management topics? Its nothing really related to Kamailio.

Another thing - this is a starting point for a internet research on how to fix 
this:

https://www.google.de/search?source=hp=K-d7W6LGOqzKrgSjq7ywDQ=debian
+resolve+package+conflicts=debian+resolve+package+conflicts

Best regards,

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

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


Re: [SR-Users] help

2018-08-20 Thread Pravin .
thanks for your support but the following command not worked properly..

1. apt-get install mariadb-server
after running this command it works but some depended packages not
installed correctly..and then what will be next command as given below as
it depends on earlier package installed ..

2. apt install kamailio kamailio-mysql-modules  (how it run as it depend on
earlier package installed)

If you can provide us the latest /updated install guide for kamailio on
debian, would be helpful.

Regards,
Pravin
bolindia Networks Pvt. Ltd.


On Mon, Aug 20, 2018 at 6:24 PM, Floimair Florian 
wrote:

> MySQL is no longer part of Debian. Instead they now use the MySQL fork
> MariaDB.
>
> So instead of
>
> mysql-server use maria-db-server
>
>
>
> all the rest of the steps are the same.
>
>
>
>
>
>
>
> With best regards
>
>
>
> *Florian Floimair *Innovation - Software-Development
>
>
> *COMMEND INTERNATIONAL GMBH *A-5020 Salzburg, Saalachstraße 51
> http://www.commend.com
>
>
>
> *Security and Communication by Commend *FN 178618z | LG Salzburg
>
>
>
> *Von: *sr-users  im Auftrag von
> "Pravin ." 
> *Antworten an: *"Kamailio (SER) - Users Mailing List" <
> sr-users@lists.kamailio.org>
> *Datum: *Montag, 20. August 2018 um 14:51
> *An: *"Kamailio (SER) - Users Mailing List" 
> *Betreff: *Re: [SR-Users] help
>
>
>
> Hello ,
>
>
>
> Tried to install Kamailio as per link provided by you
> https://www.kamailio.org/wiki/install/stable/debian.
>
>
>
> following commands are not working...
>
>
>
> apt
>
> *install*
>
> mysql-*server*
>
> apt *install*
>
> kamailio kamailio-mysql-modules
>
>
>
> Getting following error...
>
>
>
> Package mysql-server is not available ,but is referred to by another
> package.
>
> This may mean that package is missing.
>
> E: Package "mysql-server" has no installation candidate
>
>
>
> Pls guide us how to proceed...
>
>
>
>
>
> Note: I have installed Debian 9 as OS in my system.
>
>
>
> Regards,
>
> Pravin
>
> bolindia Networks Pvt Ltd.
>
>
>
> On Sat, Aug 18, 2018 at 1:38 PM, Mojtaba  wrote:
>
> Hi,
> The installation of Kamailio is straight forward, Just follow the
> following steps in this site:
> https://www.kamailio.org/wiki/install/stable/debian
> Also, you could download Kamailio form git source.
> With Regards.Mojtaba
>
>
> On Sat, Aug 18, 2018 at 11:52 AM Pravin .  wrote:
> >
> > Hello Team,
> >
> > I want to install Kamailio SIP server on centOS server...do we need to
> download kamailio ISO file and install on server..pls provide the
> installation procedure/guidelines.
> >
> >
> > Regards
> > Pravin
>
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> --Mojtaba Esfandiari.S
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] help

2018-08-20 Thread Floimair Florian
Sorry, typo in my previous mail.

Correct package name is:

mariadb-server



With best regards

Florian Floimair
Innovation - Software-Development

COMMEND INTERNATIONAL GMBH
A-5020 Salzburg, Saalachstraße 51
http://www.commend.com<http://www.commend.com/>

Security and Communication by Commend

FN 178618z | LG Salzburg

Von: sr-users  im Auftrag von Floimair 
Florian 
Antworten an: "Kamailio (SER) - Users Mailing List" 

Datum: Montag, 20. August 2018 um 14:55
An: "Kamailio (SER) - Users Mailing List" 
Betreff: Re: [SR-Users] help

MySQL is no longer part of Debian. Instead they now use the MySQL fork MariaDB.
So instead of
mysql-server use maria-db-server

all the rest of the steps are the same.



With best regards

Florian Floimair
Innovation - Software-Development

COMMEND INTERNATIONAL GMBH
A-5020 Salzburg, Saalachstraße 51
http://www.commend.com<http://www.commend.com/>

Security and Communication by Commend

FN 178618z | LG Salzburg

Von: sr-users  im Auftrag von "Pravin ." 

Antworten an: "Kamailio (SER) - Users Mailing List" 

Datum: Montag, 20. August 2018 um 14:51
An: "Kamailio (SER) - Users Mailing List" 
Betreff: Re: [SR-Users] help

Hello ,

Tried to install Kamailio as per link provided by you  
https://www.kamailio.org/wiki/install/stable/debian.

following commands are not working...

apt
install
mysql-server
apt install
kamailio kamailio-mysql-modules

Getting following error...

Package mysql-server is not available ,but is referred to by another package.
This may mean that package is missing.
E: Package "mysql-server" has no installation candidate

Pls guide us how to proceed...


Note: I have installed Debian 9 as OS in my system.

Regards,
Pravin
bolindia Networks Pvt Ltd.

On Sat, Aug 18, 2018 at 1:38 PM, Mojtaba 
mailto:mes...@gmail.com>> wrote:
Hi,
The installation of Kamailio is straight forward, Just follow the
following steps in this site:
https://www.kamailio.org/wiki/install/stable/debian
Also, you could download Kamailio form git source.
With Regards.Mojtaba

On Sat, Aug 18, 2018 at 11:52 AM Pravin . 
mailto:pra...@bolindia.com>> wrote:
>
> Hello Team,
>
> I want to install Kamailio SIP server on centOS server...do we need to 
> download kamailio ISO file and install on server..pls provide the 
> installation procedure/guidelines.
>
>
> Regards
> Pravin
> ___
> 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



--
--Mojtaba Esfandiari.S

___
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

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


Re: [SR-Users] help

2018-08-20 Thread Floimair Florian
MySQL is no longer part of Debian. Instead they now use the MySQL fork MariaDB.
So instead of
mysql-server use maria-db-server

all the rest of the steps are the same.



With best regards

Florian Floimair
Innovation - Software-Development

COMMEND INTERNATIONAL GMBH
A-5020 Salzburg, Saalachstraße 51
http://www.commend.com<http://www.commend.com/>

Security and Communication by Commend

FN 178618z | LG Salzburg

Von: sr-users  im Auftrag von "Pravin ." 

Antworten an: "Kamailio (SER) - Users Mailing List" 

Datum: Montag, 20. August 2018 um 14:51
An: "Kamailio (SER) - Users Mailing List" 
Betreff: Re: [SR-Users] help

Hello ,

Tried to install Kamailio as per link provided by you  
https://www.kamailio.org/wiki/install/stable/debian.

following commands are not working...

apt
install
mysql-server
apt install
kamailio kamailio-mysql-modules

Getting following error...

Package mysql-server is not available ,but is referred to by another package.
This may mean that package is missing.
E: Package "mysql-server" has no installation candidate

Pls guide us how to proceed...


Note: I have installed Debian 9 as OS in my system.

Regards,
Pravin
bolindia Networks Pvt Ltd.

On Sat, Aug 18, 2018 at 1:38 PM, Mojtaba 
mailto:mes...@gmail.com>> wrote:
Hi,
The installation of Kamailio is straight forward, Just follow the
following steps in this site:
https://www.kamailio.org/wiki/install/stable/debian
Also, you could download Kamailio form git source.
With Regards.Mojtaba

On Sat, Aug 18, 2018 at 11:52 AM Pravin . 
mailto:pra...@bolindia.com>> wrote:
>
> Hello Team,
>
> I want to install Kamailio SIP server on centOS server...do we need to 
> download kamailio ISO file and install on server..pls provide the 
> installation procedure/guidelines.
>
>
> Regards
> Pravin
> ___
> 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



--
--Mojtaba Esfandiari.S

___
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

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


Re: [SR-Users] help

2018-08-18 Thread Mojtaba
Hi,
1-It is regard of your OS, I think the Debian is better.
2-It doesn't need download iso, You could install it from git source.
3- The kamailio has a lot of modules, you could add your favourite
modules from source.lst file. It is very straight forward.
With Regards.Mojtaba
On Sat, Aug 18, 2018 at 12:51 PM Pravin .  wrote:
>
> Thanks  Mojtaba.
>
> I'm installing Kamailio 1st time so i have approach you for help in this 
> regard.
>
> Just want to know what are the pre-requisite for installing kamailio like 
>
> 1. What is the operating system require? ( i have centOS 7 installed in my 
> server)
> 2. do we need to download kamailio ISO file and burn it to installed in centOS
> 3. I checked on site and in download option , i have downloaded 
> "kamailio-5.1.4_src" , how will i installed with this file ?
>
> Need your guidance/support  for installation and commissioning of Kamailio 
> SIP server.
>
> Regards,
> Pravin
> bolindia Networks Pvt. Ltd
>
>
>
>
>
>
>
> On Sat, Aug 18, 2018 at 1:38 PM, Mojtaba  wrote:
>>
>> Hi,
>> The installation of Kamailio is straight forward, Just follow the
>> following steps in this site:
>> https://www.kamailio.org/wiki/install/stable/debian
>> Also, you could download Kamailio form git source.
>> With Regards.Mojtaba
>>
>> On Sat, Aug 18, 2018 at 11:52 AM Pravin .  wrote:
>> >
>> > Hello Team,
>> >
>> > I want to install Kamailio SIP server on centOS server...do we need to 
>> > download kamailio ISO file and install on server..pls provide the 
>> > installation procedure/guidelines.
>> >
>> >
>> > Regards
>> > Pravin
>> > ___
>> > Kamailio (SER) - Users Mailing List
>> > sr-users@lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>
>> --
>> --Mojtaba Esfandiari.S
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
--Mojtaba Esfandiari.S

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


Re: [SR-Users] help

2018-08-18 Thread Mojtaba
Hi,
The installation of Kamailio is straight forward, Just follow the
following steps in this site:
https://www.kamailio.org/wiki/install/stable/debian
Also, you could download Kamailio form git source.
With Regards.Mojtaba

On Sat, Aug 18, 2018 at 11:52 AM Pravin .  wrote:
>
> Hello Team,
>
> I want to install Kamailio SIP server on centOS server...do we need to 
> download kamailio ISO file and install on server..pls provide the 
> installation procedure/guidelines.
>
>
> Regards
> Pravin
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
--Mojtaba Esfandiari.S

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


[SR-Users] help

2018-08-18 Thread Pravin .
Hello Team,

I want to install Kamailio SIP server on centOS server...do we need to
download kamailio ISO file and install on server..pls provide the
installation procedure/guidelines.


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


Re: [SR-Users] Help on how to debug cfg_get variable having unexpected value?

2018-05-18 Thread Malcolm O'Hare
So what actually happens when you do kamcmd cfg.set ?  I assumed the variable 
is set in shared memory somewhere and all the processes reference the same 
shared memory variable.

What I'm seeing is that I set the value to 1 using cfg.set and then some time 
later I do

sbin/kamctl kamcmd cfg.get features with_dynamodb_user_data

and I see the value being some rather large integer, which is not equal to 1.  
Inside my kamailio.cfg code, I only ever use that value in if statements so it 
should never be changed.

example:

if (@cfg_get.features.with_dynamodb_user_data == 1)

When I attach gdb to the kamailio process that handles kamctl, and break inside 
the set_cfg_now function, I can see that the actual address where the variable 
is being saved to changes, so it makes me wonder if there is some race 
condition where a process could try and read the value of the variable while 
its memory location is being changed?
Otherwise the only thing I can think of is that there is some sort of buffer 
overflow happening when writing and its changing the value of this variable as 
a consequence.

Thoughts?


From: Daniel-Constantin Mierla <mico...@gmail.com>
Sent: Friday, May 18, 2018 8:59 AM
To: Kamailio (SER) - Users Mailing List; Malcolm O'Hare
Subject: Re: [SR-Users] Help on how to debug cfg_get variable having unexpected 
value?


Hello,


can you provide more details about what you think is going wrong?


The value of this variable is updated by each process when that process does 
some particular operations (e.g., receiving a sip message), it is not 
propagated automatically to every kamailio process when you do the update via 
kamcmd.


Cheers,
Daniel

On 14.05.18 19:43, Malcolm O'Hare wrote:
I'm trying to debug an issue I've encountered where a variable that I've set 
using kamcmd cfg.set has an unexpected value when used in kamailio.  The 
variable should be 0 or 1, but it looks like its getting set accidently somehow.


2018-05-11T22:02:58.344260+00:00 ip-172-31-129-45 kamailio[5253]: DEBUG:  
[select.c:263]: resolve_select(): 'with_dynamodb_user_data'

2018-05-11T22:02:58.344264+00:00 ip-172-31-129-45 kamailio[5253]: DEBUG:  
[cfg/cfg_select.c:174]: select_cfg_var(): DEBUG: select_cfg_var(): select fixup 
is postponed: features.with_dynamodb_user_data

2018-05-11T22:05:03.467110+00:00 ip-172-31-129-45 kamailio[5551]: INFO:  
[cfg/cfg_ctx.c:608]: cfg_set_now(): INFO: cfg_set_now(): 
features.with_dynamodb_user_data has been changed to 1

2018-05-11T22:15:51.695118+00:00 ip-172-31-129-45 kamailio[5574]: 
[2c03c333-1705-41b1-aa26-6f10492a5a6f] DEBUG: with_dynamodb_user_data is 
1157627905

I've tried to debug using gdb using breaks and set a watch on the memory 
address of the var, but it looks like it keeps using different memory 
locations.  The value in the address pointed at by group.handle seems to change 
for each invocation of set_cfg_now, so when I try and put a watch on the 
address of *group.handle + var.offset it never gets hit.

(gdb) print *group
$36 = {num = 25, mapping = 0x7f56ee4474f0, vars = 0x0, add_var = 0x0, size = 
164, meta_offset = 968, var_offset = 984, handle = 0x7f56edf92fd0, orig_handle 
= 0x0,
  dynamic = 1 '\001', next = 0x0, name_len = 8, name = "f"}

(gdb) print *var
$62 = {def = 0x7f56ee471668, name_len = 23, pos = 24, offset = 164, flag = 0}

Any ideas?

Malcolm




___
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



--
Daniel-Constantin Mierla
www.twitter.com/miconda<http://www.twitter.com/miconda> -- 
www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - May 14-16, 2018 - 
www.kamailioworld.com<http://www.kamailioworld.com>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Help on how to debug cfg_get variable having unexpected value?

2018-05-18 Thread Daniel-Constantin Mierla
Hello,


can you provide more details about what you think is going wrong?


The value of this variable is updated by each process when that process
does some particular operations (e.g., receiving a sip message), it is
not propagated automatically to every kamailio process when you do the
update via kamcmd.


Cheers,
Daniel

On 14.05.18 19:43, Malcolm O'Hare wrote:
> I'm trying to debug an issue I've encountered where a variable that
> I've set using kamcmd cfg.set has an unexpected value when used in
> kamailio.  The variable should be 0 or 1, but it looks like its
> getting set accidently somehow.
>
> 2018-05-11T22:02:58.344260+00:00 ip-172-31-129-45 kamailio[5253]:
> DEBUG:  [select.c:263]: resolve_select(): 'with_dynamodb_user_data'
>
> 2018-05-11T22:02:58.344264+00:00 ip-172-31-129-45 kamailio[5253]:
> DEBUG:  [cfg/cfg_select.c:174]: select_cfg_var(): DEBUG:
> select_cfg_var(): select fixup is postponed:
> features.with_dynamodb_user_data
>
> 2018-05-11T22:05:03.467110+00:00 ip-172-31-129-45 kamailio[5551]:
> INFO:  [cfg/cfg_ctx.c:608]: cfg_set_now(): INFO: cfg_set_now():
> features.with_dynamodb_user_data has been changed to 1
>
> 2018-05-11T22:15:51.695118+00:00 ip-172-31-129-45 kamailio[5574]:
> [2c03c333-1705-41b1-aa26-6f10492a5a6f] DEBUG: with_dynamodb_user_data
> is 1157627905
>
>
> I've tried to debug using gdb using breaks and set a watch on the
> memory address of the var, but it looks like it keeps using different
> memory locations.  The value in the address pointed at by group.handle
> seems to change for each invocation of set_cfg_now, so when I try and
> put a watch on the address of *group.handle + var.offset it never gets
> hit.
>
> (gdb) print *group
> $36 = {num = 25, mapping = 0x7f56ee4474f0, vars = 0x0, add_var = 0x0,
> size = 164, meta_offset = 968, var_offset = 984, handle =
> 0x7f56edf92fd0, orig_handle = 0x0,
>   dynamic = 1 '\001', next = 0x0, name_len = 8, name = "f"}
>
> (gdb) print *var
> $62 = {def = 0x7f56ee471668, name_len = 23, pos = 24, offset = 164,
> flag = 0}
>
> Any ideas?
>
> Malcolm
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

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


[SR-Users] Help on how to debug cfg_get variable having unexpected value?

2018-05-14 Thread Malcolm O'Hare
I'm trying to debug an issue I've encountered where a variable that I've set 
using kamcmd cfg.set has an unexpected value when used in kamailio.  The 
variable should be 0 or 1, but it looks like its getting set accidently somehow.


2018-05-11T22:02:58.344260+00:00 ip-172-31-129-45 kamailio[5253]: DEBUG:  
[select.c:263]: resolve_select(): 'with_dynamodb_user_data'

2018-05-11T22:02:58.344264+00:00 ip-172-31-129-45 kamailio[5253]: DEBUG:  
[cfg/cfg_select.c:174]: select_cfg_var(): DEBUG: select_cfg_var(): select fixup 
is postponed: features.with_dynamodb_user_data

2018-05-11T22:05:03.467110+00:00 ip-172-31-129-45 kamailio[5551]: INFO:  
[cfg/cfg_ctx.c:608]: cfg_set_now(): INFO: cfg_set_now(): 
features.with_dynamodb_user_data has been changed to 1

2018-05-11T22:15:51.695118+00:00 ip-172-31-129-45 kamailio[5574]: 
[2c03c333-1705-41b1-aa26-6f10492a5a6f] DEBUG: with_dynamodb_user_data is 
1157627905

I've tried to debug using gdb using breaks and set a watch on the memory 
address of the var, but it looks like it keeps using different memory 
locations.  The value in the address pointed at by group.handle seems to change 
for each invocation of set_cfg_now, so when I try and put a watch on the 
address of *group.handle + var.offset it never gets hit.

(gdb) print *group
$36 = {num = 25, mapping = 0x7f56ee4474f0, vars = 0x0, add_var = 0x0, size = 
164, meta_offset = 968, var_offset = 984, handle = 0x7f56edf92fd0, orig_handle 
= 0x0,
  dynamic = 1 '\001', next = 0x0, name_len = 8, name = "f"}

(gdb) print *var
$62 = {def = 0x7f56ee471668, name_len = 23, pos = 24, offset = 164, flag = 0}

Any ideas?

Malcolm

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


Re: [SR-Users] Help needed to compile and install kamailio 5.1.2

2018-04-18 Thread Victor Seva
2018-04-17 7:39 GMT+02:00 vinay kumar :

> Hi All,
>
> I want to compile kamailio 5.1.2 for debian packages amd install on ubuntu
> 16.04.
>  And i have couple of queries.
>
> 1. can i compile and run  kamailio 5.1.2 on ubuntu 16.04(Xenial)?
>

use our official repository:

deb http://deb.kamailio.org/kamailio51 xenial main


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


[SR-Users] Help needed to compile and install kamailio 5.1.2

2018-04-16 Thread vinay kumar
Hi All,

I want to compile kamailio 5.1.2 for debian packages amd install on ubuntu
16.04.
 And i have couple of queries.

1. can i compile and run  kamailio 5.1.2 on ubuntu 16.04(Xenial)?
2. Im currently using kamailio 4.3.6 with polaris configuration. And the
same way can i use kamailio 5.1.2 with polaris configuration files and
scripts to bringup kamailo 5.1.2?
and if yes, please share me steps and scripts to bringup kamailio 5.1 2
with Open HSS( i need to use CX and RX interface).

Please help me out.
Thanks in advance.

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


Re: [SR-Users] Help me!

2018-04-15 Thread Antony Stone
On Saturday 14 April 2018 at 17:47:43, Do Quang Trung wrote:

> I use kamailio 5.1.1 with openssl-1.0.2n. I built openssl with gost engine
> supported and the result when i list cipher list as follow:
> 
> GOST2001-GOST89-GOST89:GOST94-GOST89-GOST89:ECDH-RSA-AES256-GCM-SHA384:ECDH
> -ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:EC
> DH-RSA-AES256-SHA:ECDH-ECDSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES
> 256-SHA::GOST94-GOST89-GOST89:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-
> GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:ECDH-RSA-AES256-
> SHA:ECDH-ECDSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:
> 
> i must use exactly GOST2001-GOST89-GOST89 in kamailio to protect sip
> protocol.
> 
> Please help me to resolve my problem.

What is your problem?

Antony.

-- 
"The problem with television is that the people must sit and keep their eyes 
glued on a screen; the average American family hasn't time for it."

 - New York Times, following a demonstration at the 1939 World's Fair.

   Please reply to the list;
 please *don't* CC me.

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


[SR-Users] Help me!

2018-04-15 Thread Do Quang Trung
I use kamailio 5.1.1 with openssl-1.0.2n. I built openssl with gost engine
supported and the result when i list cipher list as follow:

GOST2001-GOST89-GOST89:GOST94-GOST89-GOST89:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:ECDH-RSA-AES256-SHA:ECDH-ECDSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA::GOST94-GOST89-GOST89:ECDH-RSA-AES256-GCM-SHA384:ECDH-ECDSA-AES256-GCM-SHA384:ECDH-RSA-AES256-SHA384:ECDH-ECDSA-AES256-SHA384:ECDH-RSA-AES256-SHA:ECDH-ECDSA-AES256-SHA:AES256-GCM-SHA384:AES256-SHA256:AES256-SHA:

i must use exactly GOST2001-GOST89-GOST89 in kamailio to protect sip
protocol.

Please help me to resolve my problem.

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


[SR-Users] Help needed to compile and install kamailio 5.1.2

2018-04-15 Thread vinay kumar
 Hi All,

can anyone share me the installtion steps for kamailio 5.1.2?
can i compile and run  kamailio 5.1.2 on ubuntu 14.04?
i have already used 4.3.6 with polaris configuration to bringup kamailio
and i wanna upgrade to kamailio 5.1.2 and the same way can i use 5.1.2 with
polaris configuration?

I have used polaris scripts to bringup kamailio 5.1.2 and its failing with
status kamailio service with Result resources.
if i use latest debian packages , are polaris configurations are compatible
with latest packages??

Please help me out.
Thanks in advance.

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


Re: [SR-Users] Help on setting UP SIP PRoxy

2018-03-26 Thread Mack Hendricks
Hey Ayub,

I would take it one step at a time.  Kamailio is a toolkit with a bunch of 
modules.  I find it useful to first figure out what features you need in a 
proxy.   This includes understanding what are you trying to protect your 
backend media servers from, problems you are currently having and/or how are 
you trying to scale your backend servers.  

Assuming you are using Asterisk or FreeSwitch as your backend media servers, 
here are some questions that might help derive the features you want:

- Are the backend servers being overwhelmed by REGISTER requests?
- Are you providing the proxy for phone end points, PBX’s or both
- What’s your High Availability Requirements?  Are the backend media services 
replicated so it doesn’t mater what server gets the original INVITE requests?
- Are you handing registrations for 1 SIP domain or multiple SIP domains?
- Do you want to maintain CDR’s at the proxy or leave it to the backend media 
servers

Mack Hendricks / Head of Support / dOpenSource
web: http://dopensource.com 
support: +888-907-2085
dSIPRouter  - GUI focused on implementing Kamailio to 
provide SIP Trunking and PBX Hosting Services


> On Mar 26, 2018, at 1:26 AM, Mohammed Ayub  wrote:
> 
> HI,
> 
> Myself Ayub from Phonology, Bangalore, India.
> 
> We are trying to set up an SIP proxy server using Kamailio with Siremis as 
> web interface.
> 
> Have installed and configured kamailio and siremis but need help in config if 
> sip domain , users  and etc...
> 
> Please revert.
> 
> Regards
> Ayub
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

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


[SR-Users] Help on setting UP SIP PRoxy

2018-03-26 Thread Mohammed Ayub
HI,

Myself Ayub from Phonology, Bangalore, India.

We are trying to set up an SIP proxy server using Kamailio with Siremis as
web interface.

Have installed and configured kamailio and siremis but need help in config
if sip domain , users  and etc...

Please revert.

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


Re: [SR-Users] Help on Video Conference

2017-10-23 Thread Daniel-Constantin Mierla
Hello,

is imsdroid able to host a video conference itself? If not, you need a
mcu like freeswitch to host one.

Cheers,
Daniel


On 22.10.17 19:12, Kranti Kumar wrote:
> Hello ,
> I’m trying to build a testbed using the VMware image you kindly have
> shared here:
> https://www.kamailio.org/w/2016/02/kamailio-ims-getting-started-box/
>
> My configuration details:
> HSS - 10.0.0.9 (./hss.sh)
> PCSCF - 10.0.0.10 (kamailio -f /usr/local/etc/kamailio/kamailio-pcscf.cfg)
> ICSCF - 10.0.0.11(kamailio -f /usr/local/etc/kamailio/kamailio-icscf.cfg)
> SCSCF - 10.0.0.12 (kamailio -f /usr/local/etc/kamailio/kamailio-scscf.cfg)
> host machine: 10.0.0.5
>
> I am able to register mobile clients ( IMSdroid) and make voice/video
> calls between them successfully. Now I would like to make a conference
> call among 3 IMSdroid users but its failing.
> Could you please suggest me the way forward here. 
> I am thinking to integrate Application server (AS) to enable Video
> Conferences. Could you please guide me how to enable AS in this VM
> image and configuration details.
> Is there any possibility to do Video conference using this current
> setup(VM image). Could you please suggest me.
>
> Thank you so much in advance.
>
> Regards,
> -kranti
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

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


[SR-Users] Help on Video Conference

2017-10-22 Thread Kranti Kumar
Hello ,
I’m trying to build a testbed using the VMware image you kindly have shared
here: https://www.kamailio.org/w/2016/02/kamailio-ims-getting-started-box/

My configuration details:
HSS - 10.0.0.9 (./hss.sh)
PCSCF - 10.0.0.10 (kamailio -f /usr/local/etc/kamailio/kamailio-pcscf.cfg)
ICSCF - 10.0.0.11(kamailio -f /usr/local/etc/kamailio/kamailio-icscf.cfg)
SCSCF - 10.0.0.12 (kamailio -f /usr/local/etc/kamailio/kamailio-scscf.cfg)
host machine: 10.0.0.5

I am able to register mobile clients ( IMSdroid) and make voice/video calls
between them successfully. Now I would like to make a conference call among
3 IMSdroid users but its failing.
Could you please suggest me the way forward here.
I am thinking to integrate Application server (AS) to enable Video
Conferences. Could you please guide me how to enable AS in this VM image
and configuration details.
Is there any possibility to do Video conference using this current setup(VM
image). Could you please suggest me.

Thank you so much in advance.

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


Re: [SR-Users] Help to understand kamailio error msgs

2017-09-12 Thread José Seabra
Hello Daniel,

Thank you for your clarifications, it was helpfull.

Regarding to the Dispatcher error, please see my comment in yellow:


   -
* dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load for
   (16720.mydomain.com )*
   - *dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
   distribution*

*[Daniel]: Have you set the attributea for load distribution in the
dispatcher record for that destination?*
*[José] :the only load distribution that i set was in dispatcher.list
file(I didn't understand if was here that you is reffering the attributes),
on my script i only use the function ds_select_dst("9","10").*
*Dispatcher.list file example:*

9 sip:IP:5080 0 1 duid=PRX1;my=prx1;maxload=2

*Kamailio.cfg disptacher function example: *

if(!ds_select_dst("9", "10"))

{

   xlog("L_ERR", "Failed to select proxy - R=$ru ID=$ci
UA='$ua'\n");

   sl_send_reply("503", "No proxy available, try again later");

   exit;

  }

I also have a failure route to select the another available destinations:

 if(!ds_next_dst())

{

xlog("L_INFO", "PRX FAILURE no proxy availabe
ID=$ci\n");

send_reply("503", "No proxy available, try
again later");

exit;

}

Once again, thank you for the support. Best Regards José Seabra

2017-09-06 14:43 GMT+01:00 José Seabra :

> Hello there,
> I'm facing some error msg on my kamailio server in production that i would
> like to understand what they means in order to avoid them.
> The msg are:
>
>
>- *ERROR: tm [t_reply.c:1270]: t_should_relay_response(): ERROR:
>t_should_relay_response: status rewrite by UAS: stored: 408, received: 200*
>
>
>
>- *dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load
>for (16720.mydomain.com )*
>- *dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
>distribution*
>
>
>
>
>- *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
>generate 487 reply when a final 603 was sent out*
>- *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
>generate 487 reply when a final 480 was sent out*
>
>
>
>- *WARNING: tm [t_lookup.c:245]: ack_matching(): WARNING:
>ack_matching() attempted on a transaction with no E2EACK callbacks => the
>results are not completely reliable when forking is involved*
>
>
> Thank you
> Best regards
>
> --
> José Seabra
>



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


Re: [SR-Users] Help to understand kamailio error msgs

2017-09-11 Thread Daniel-Constantin Mierla
Hello,


On 06.09.17 15:43, José Seabra wrote:
> Hello there,
> I'm facing some error msg on my kamailio server in production that i
> would like to understand what they means in order to avoid them.
> The msg are:
>
>   * /ERROR: tm [t_reply.c:1270]: t_should_relay_response(): ERROR:
> t_should_relay_response: status rewrite by UAS: stored: 408,
> received: 200/
>

/A 200 ok response was received after a (likely local) retransmission
timeout./
> /
> /
>
>   * /dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load
> for (16720.mydomain.com )/
>   * /dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
> distribution/
>

/Have you set the attributea for load distribution in the dispatcher
record for that destination?

/
> /
>
> /
>
>   * /tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
> generate 487 reply when a final 603 was sent out/
>   * /tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
> generate 487 reply when a final 480 was sent out/
>

Likely a CANCEL was received after sending out a final response.

> /
> /
>
>   * /WARNING: tm [t_lookup.c:245]: ack_matching(): WARNING:
> ack_matching() attempted on a transaction with no E2EACK callbacks
> => the results are not completely reliable when forking is involved/
>
>
>
This needs a look in the code, haven't written that part so I don't know
by heart the purpose  ...

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

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


Re: [SR-Users] Help to understand kamailio error msgs

2017-09-09 Thread José Seabra
Hi There,

Regarding to this error:

   - *dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load for
   (16720.mydomain.com )*
   - *dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
   distribution*

The reason could be because i'm not using the disptcher function
"ds_load_update()" and "ds_load_unset()" on my script logic??

Thanks

BR

José



2017-09-06 14:43 GMT+01:00 José Seabra :

> Hello there,
> I'm facing some error msg on my kamailio server in production that i would
> like to understand what they means in order to avoid them.
> The msg are:
>
>
>- *ERROR: tm [t_reply.c:1270]: t_should_relay_response(): ERROR:
>t_should_relay_response: status rewrite by UAS: stored: 408, received: 200*
>
>
>
>- *dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load
>for (16720.mydomain.com )*
>- *dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
>distribution*
>
>
>
>
>- *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
>generate 487 reply when a final 603 was sent out*
>- *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
>generate 487 reply when a final 480 was sent out*
>
>
>
>- *WARNING: tm [t_lookup.c:245]: ack_matching(): WARNING:
>ack_matching() attempted on a transaction with no E2EACK callbacks => the
>results are not completely reliable when forking is involved*
>
>
> Thank you
> Best regards
>
> --
> José Seabra
>



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


[SR-Users] Help to understand kamailio error msgs

2017-09-06 Thread José Seabra
Hello there,
I'm facing some error msg on my kamailio server in production that i would
like to understand what they means in order to avoid them.
The msg are:


   - *ERROR: tm [t_reply.c:1270]: t_should_relay_response(): ERROR:
   t_should_relay_response: status rewrite by UAS: stored: 408, received: 200*



   - *dispatcher [dispatch.c:1509]: ds_load_replace(): cannot find load for
   (16720.mydomain.com )*
   - *dispatcher [dispatch.c:2270]: ds_next_dst(): cannot update load
   distribution*




   - *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
   generate 487 reply when a final 603 was sent out*
   - *tm [t_reply.c:533]: _reply_light(): ERROR: _reply_light: can't
   generate 487 reply when a final 480 was sent out*



   - *WARNING: tm [t_lookup.c:245]: ack_matching(): WARNING: ack_matching()
   attempted on a transaction with no E2EACK callbacks => the results are not
   completely reliable when forking is involved*


Thank you
Best regards

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


Re: [SR-Users] Help detecting t.38 and routing accordingly

2017-06-22 Thread ycaner
Hello,
in voip , it is hard to handle Fax issue. as Daniel said , i seperate/route
to another SIP based server, Fax and Voice tel numbers with domain or DID
number. in my network it is Asterisk and uses fax_spandsp.

Good luck.



--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/Help-detecting-t-38-and-routing-accordingly-tp159638p159648.html
Sent from the Users mailing list archive at Nabble.com.

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


Re: [SR-Users] Help detecting t.38 and routing accordingly

2017-06-22 Thread Daniel-Constantin Mierla
Hello,

Kamailio can send a request anywhere you decide, the problem here is the
FreeSwitch -- it will reject the re-INVITE if it didn't receive the
initial INVITE.

The clean way here will be to transfer the call, so the first freeswitch
will transfer it to the one you want after re-INVITE. You can add the
new destination from Kamailio as an extra header on re-INVITE.
Alternative is to bridge from first freeswitch to the second one,
eventually with bypass media after re-invite.

A common use case is to differentiate between voice and fax tel numbers,
then you can route from the initial invite based on the DID. Or have the
freeswitch configured to handle both voice and fax calls.

Cheers,
Daniel


On 22.06.17 09:22, Tim Bowyer wrote:
>
> Hi Daniel,
>
>  
>
> Thanks for the prompt reply!
>
> Correct – this may not even be possible? (I’ve read this strange task
> may be possible leveraging the b2bua module in OpenSIPS but I don’t
> want to go down that path!!)
>
>  
>
> Cheers,
>
>  
>
> Tim
>
>  
>
>
> *Subject:* Re: [SR-Users] Help detecting t.38 and routing accordingly
>
>  
>
> Hello,
>
> to be sure I understand correctly, do you want to re-route a call to
> another freeswitch when re-INVITE has t.38, even the initial INVITE
> was sent to a different freeswitch?
>
> Cheers,
> Daniel
>
> On 22.06.17 08:08, Tim Bowyer wrote:
>
> Hi All,
>
>  
>
> Trying to work out a way to detect and re-route inbound calls
> which negotiate or contain t.38 SDP to answer/process faxes
> efficiently.
>
> Plan is to put Kamailio in front of a quantity of FreeSwitch
> servers – most virtual, others physical.
>
> Virtual servers will handle inbound faxes which negotiate t.38,
> and physical servers will answer ulaw/alaw faxes with mod_spandsp.
>
>  
>
> The bulk of inbound faxes negotiate t.38, but in order to scale
> our inbound system we need some way to work out which way to send
> the calls prior to the dispatcher.
>
>  
>
> Many thanks for your help in advance,
>
>  
>
> Tim
>
>
>
>
> ___
>
> 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
>
>
>
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda <http://www.twitter.com/miconda> -- 
> www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
> Kamailio Advanced Training - www.asipto.com <http://www.asipto.com>
> Kamailio World Conference - www.kamailioworld.com 
> <http://www.kamailioworld.com>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

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


  1   2   >