[OpenSIPS-Users] mid_registrar and nathelper problem

2023-09-01 Thread Alejandro Mejia Evertsz
Hi! This is my first OpenSIPS installation, and I'm trying to achieve a simple sip proxy for extensions to register to a PBX. Got some configurations from samples all over docs and google searches and everything seems to work fine until there's a call from the PBX to a registered endpoint. The

[OpenSIPS-Users] mid_registrar and nathelper problem

2023-09-01 Thread Alejandro Mejia Evertsz
Hi! This is my first OpenSIPS installation, and I'm trying to achieve a simple sip proxy for my office extensions to register to our PBX. Got some configurations from samples all over docs and google searches and everything seems to work fine until there's a call from the PBX to a registered

Re: [OpenSIPS-Users] mid_registrar and vpn and nat

2023-01-03 Thread Bogdan-Andrei Iancu
Hi Alberto, Yes, in the registration record the Contact URI is kept as received and the "fixed" src IP is stored into the "received" field. Upon lookup the contact URI goes into RURI (as you observed) and the "received" goes into dst_uri (destination URI) or $du. When OpenSIPS relays, the $du

[OpenSIPS-Users] mid_registrar and vpn and nat

2022-12-13 Thread Alberto
Hi, I have a problem with a vpn setup, not really nat, or maybe it's nat... The setup I have is: Phone - openvpn - opensips - public internet - asterisk openvpn subnet: 10.0.0.0/24 openvpn server: 172.172.0.2/24 opensips server: 172.172.0.10/24 In my configuration I have: loadmodule

Re: [OpenSIPS-Users] mid_registrar

2022-12-07 Thread Andy Dierlam
maybe run in debug foreground, so can see what its doing? opensips -D From: Users on behalf of nutxase via Users Sent: Wednesday, December 7, 2022 1:09 PM To: nutxase ; OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] mid_registrar EXTERNAL

Re: [OpenSIPS-Users] mid_registrar

2022-12-07 Thread nutxase via Users
i did try and doesnt seem to go to the second one :( Sent with [Proton Mail](https://proton.me/) secure email. --- Original Message --- On Wednesday, December 7th, 2022 at 5:42 PM, nutxase via Users wrote: > Hi Guys > > How can i make it that if an invite comes in and the location is

Re: [OpenSIPS-Users] mid_registrar

2022-12-07 Thread Andy Dierlam
rar_lookup("location")) { xlog("2nd lookup did not find phone, sending 404"); t_reply(404, "Not Found"); } From: Users on behalf of nutxase via Users Sent: Wednesday, December 7, 2022 12:42 PM To: OpenSIPS users mail

[OpenSIPS-Users] mid_registrar

2022-12-07 Thread nutxase via Users
Hi Guys How can i make it that if an invite comes in and the location is not found that it will then try look again for the location before sending 404? i have tried if (!mid_registrar_lookup("location")) { sleep (5); if (!mid_registrar_lookup("location")) { t_reply(404, "Not Found"); } }

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread nutxase via Users
hmm i do already have that $ru = "sip:1.2.3.4:5060"; xlog("looking up $ct!\n"); t_relay(); Sent with [Proton Mail](https://proton.me/) secure email. --- Original Message --- On Thursday, November 17th, 2022 at 2:33 PM, Jehanzaib Younis wrote: > Hi there, > Just t_relay(); to the

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread Jehanzaib Younis
Hi there, Just t_relay(); to the Asterisk IP, it should work perfectly fine. Regards, Jehanzaib On Fri, Nov 18, 2022 at 12:09 AM nutxase via Users wrote: > Yes so thats my idea but the problem i see is that asterisk sees the > contact as the opensips details not the UAC device > > > Sent

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread johan
then you need to debug on 5 to see why it is replaced and read the documentation of the registrar module carefully. On 17/11/2022 12:09, nutxase via Users wrote: Yes so thats my idea but the problem i see is that asterisk sees the contact as the opensips details not the UAC device Sent with

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread nutxase via Users
Yes so thats my idea but the problem i see is that asterisk sees the contact as the opensips details not the UAC device Sent with [Proton Mail](https://proton.me/) secure email. --- Original Message --- On Thursday, November 17th, 2022 at 11:04 AM, johan wrote: > If you don't want to

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread johan
If you don't want to handle the r3egister locally, why don't you just forward it then ? (i.e. the path approach) On 17/11/2022 11:45, Liviu Chircu wrote: On 17.11.2022 12:37, nutxase wrote: Just to confirm can registrar also forward the registration similar to how mid_registrar does?

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread nutxase via Users
I guess let me go one step further and ask advice What do you think is the best scenario to use if i want to register to asterisk and then when when my UAC goes to "sleep" keep the registration up on asterisk Sent with [Proton Mail](https://proton.me/) secure email. --- Original Message

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread Liviu Chircu
On 17.11.2022 12:37, nutxase wrote: Just to confirm can registrar also forward the registration similar to how mid_registrar does? Approach 1: the save() function has an "r" flag (do not auto-send a reply upstream) which may

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-17 Thread nutxase via Users
Thanks, with the registrar module i have tried to forward the registration to the asterisk system but seems to not work. Just to confirm can registrar also forward the registration similar to how mid_registrar does? --- Original Message --- On Wednesday, November 16th, 2022 at 5:13 PM,

Re: [OpenSIPS-Users] Mid_Registrar contact

2022-11-16 Thread Liviu Chircu
On 16.11.2022 18:56, nutxase via Users wrote: Is it possible to change the contact on mid_registrar to be the endpoint ip etc as currently when registering to asterisk we see the details of opensips, but i want to hide that and rather show the endpoint is that possible? Hi nutxase, The

[OpenSIPS-Users] Mid_Registrar contact

2022-11-16 Thread nutxase via Users
Hi All Is it possible to change the contact on mid_registrar to be the endpoint ip etc as currently when registering to asterisk we see the details of opensips, but i want to hide that and rather show the endpoint is that possible?___ Users mailing

Re: [OpenSIPS-Users] mid_registrar multi domains

2022-03-31 Thread Bogdan-Andrei Iancu
Hi Andrei, You MUST NOT change the auth username as you will break the whole authentication process. The username is part of alg. for computing the auth result. So, if you change the auth uername, the auth result will become invalid. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and

Re: [OpenSIPS-Users] mid_registrar multi domains

2022-03-28 Thread Andrei G.
Hello, I'm using the following code in opensips.config # # absorb retransmissions, but do not create transaction t_check_trans(); if (is_method("REGISTER")) {

Re: [OpenSIPS-Users] mid_registrar multi domains

2022-03-28 Thread Andrei G.
Hi, How do I modify the field "Authorization: Digest username" in REGISTER packet? tried with uac_replace_to(,"user@asterisk1") and uac_replace_from(,"user@asterisk1") but it does affect only to and from headers not digest username thanks Andrei On Thu, Mar 24, 2022 at 4:20 AM Artiom Druz

Re: [OpenSIPS-Users] mid_registrar multi domains

2022-03-23 Thread Artiom Druz
Hello, Andrei. You can do that by taking $tU (user from "To" header) and using some transformation function. In your example can be used s.select function. ( https://www.opensips.org/Documentation/Script-Tran-3-2#toc7) Best regards, Artiom Druz ср, 23 мар. 2022 г., 21:11 Andrei G. : > Hey guys,

[OpenSIPS-Users] mid_registrar multi domains

2022-03-23 Thread Andrei G.
Hey guys, I successfully tested opensips with mid_registrar for one domain Is it possible to use opensips in front of 2 asterisk boxes and redirect registrations based on a prefix username, not domain prefix? Something like asterisk1-user@mid-registrar.domain - where opensips manage

[OpenSIPS-Users] mid_registrar and webrtc with asterisk

2022-02-22 Thread Alberto
Hi, I'm back again, I'm trying to get mid_registrar to work with webrtc, but when I use the piece of configuration below asterisk replies with 404. I think it's because asterisk expects the url to be "wss:// 10.0.0.153:8188/ws" But where do I configure such a url in opensips?? Thanks if

[OpenSIPS-Users] Mid_registrar Modules and events using Freeswitch ESL

2022-02-17 Thread Ahmed Rehan
Hi , I m using mid registrar module with dispatcher module for freeswitch registrations we are using sip based and webrtc endpoints . and every thing is working fine. Now we have configured call center module for agents and agents are registered webrtc softphone . and there is a requirement of

Re: [OpenSIPS-Users] mid_registrar TLS

2022-02-10 Thread Bogdan-Andrei Iancu
Yes, doing a wildcard for SIP/IP matching in the TLS domain definition is the correct approach if you plan to use only one certificate. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp

Re: [OpenSIPS-Users] mid_registrar TLS

2022-02-10 Thread Alberto
I was confused because I use a wildcard cert, so I only have one cert for server/client and any possible subdomain. I don't need to match server/client requests to different certs. So I ended up with this config and it seems to work fine. Thanks loadmodule "tls_mgm.so" modparam("tls_mgm",

Re: [OpenSIPS-Users] mid_registrar TLS

2022-02-10 Thread Bogdan-Andrei Iancu
Hi Alberto, When OpenSIPS is about the create a new TLS connection, it has to know what TSL certificate (client) to use for it. There are 2 way of indicating that : * use "match_ip_address" [1] to map the TLS client domain to some IPs you want to connect to via TLS * use

[OpenSIPS-Users] mid_registrar TLS

2022-02-04 Thread Alberto
Hi, I have a sip client connecting to opensips using tls, all requests are then routed to an asterisk server using mid_registrar. UDP to UDP and TCP to TCP work fine, but TLS doesn't. This is the error, but I'm having a hard time understanding it. Feb 4 12:29:32 [3406]

Re: [OpenSIPS-Users] Mid_registrar forking issue when push notifications enabled

2022-01-18 Thread Liviu Chircu
On 17.01.2022 22:52, Sugar wrote: Is there a private place to upload debug log including config (in case some sanitation of sensitive info is missed)? Can you provide where to send? Thanks in advance. And yes it appears the register matching part is not occurring. Can also provide pcap of call

Re: [OpenSIPS-Users] Mid_registrar forking issue when push notifications enabled

2022-01-17 Thread Sugar
for testing and possible expansion to two opensips instances in dev environment. Original message From: Liviu Chircu Date: 1/17/22 2:11 PM (GMT-06:00) To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] Mid_registrar forking issue when push notifications enabled Hi

Re: [OpenSIPS-Users] Mid_registrar forking issue when push notifications enabled

2022-01-17 Thread Liviu Chircu
Hi, Answers inline, On 17.01.2022 10:18, Sugar wrote: The log shows the push notification is successful using rest client, 1 second after successful android push notification, the client registers but the call is not forked (it appears no transaction branch injection occurs). So everything

[OpenSIPS-Users] Mid_registrar forking issue when push notifications enabled

2022-01-17 Thread Sugar
Hello. I am trying to implement mid_registrar with little success and need assistance.If the called contact is not pn enabled, the other internal extension rings and call is successful.If the called contact is push enabled it will not ring.Mid_registrar_lookup returns 2 and I do not t_relay

Re: [OpenSIPS-Users] mid_registrar errors

2022-01-03 Thread Bogdan-Andrei Iancu
Hi Pavel, OK, I will ask Liviu to take a deeper look into this, thanks for the report. Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com OpenSIPS eBootcamp 2021 https://opensips.org/training/OpenSIPS_eBootcamp_2021/ On 1/3/22 7:47 PM,

Re: [OpenSIPS-Users] mid_registrar errors

2022-01-03 Thread Pavel Eremin
Thanks for your answer I suppose there is some little mistake in the code of mid_registrar due to this error easylly reproducing on the new opensips installation. Conditions are simple: centos 7 or debian 10, opensips 3.2 ver, use mid_registrar (mode=2 or 1) and registrar in the same script. For

Re: [OpenSIPS-Users] mid_registrar errors

2022-01-03 Thread Bogdan-Andrei Iancu
Hi Alexey, What the errors say is that mid-registrar, upon deleting/expiring a registered AOR, it is not able to push forward the un-register to the main registrar. This happens as some internal key (attached to the AOR) is not found by the mid-registrar. Not sure how this may be related to

[OpenSIPS-Users] mid_registrar errors

2021-12-27 Thread Alexey Kazantsev via Users
Hi list.   What do these errors mean? This started after migrating the virtual machine and changing IP addresses. Everything else remain unchanged.   Version 3.2.2   ERROR:mid_registrar:unregister_record: 'from' key not found, skipping De-REGISTER ERROR:mid_registrar:mid_reg_aor_event: failed to

Re: [OpenSIPS-Users] mid_registrar lookup

2021-04-06 Thread volga629 via Users
Hello Liviu, I opened report https://github.com/OpenSIPS/opensips/issues/2454 And all pcap and logs sent to you email. If you will require configuration example let me know. I will pull one from our environment.

Re: [OpenSIPS-Users] mid_registrar lookup

2021-03-30 Thread Liviu Chircu
On 26.03.2021 17:57, volga629 wrote: Hello Liviu, I want file report on it. I have wireshark screenshot which shows exact issue. Initial INVITE lookup is  forked to all registered destinations, but ACK no. Hi Slava, Please file a report on it and attach the call flow.  If privacy is a

Re: [OpenSIPS-Users] mid_registrar lookup

2021-03-26 Thread volga629 via Users
Hello Liviu, I want file report on it. I have wireshark screenshot which shows exact issue. Initial INVITE lookup is  forked to all registered destinations, but ACK no. On ACK in dialog applied snippet like this route[WITHINDLG] {    

Re: [OpenSIPS-Users] mid_registrar lookup

2021-03-24 Thread volga629 via Users
Hello Liviu, May I send few screen shot of sip flow for this call ? volga629. On 3/24/21 8:57 AM, volga629 via Users wrote: Hello Liviu, We use topology hiding edge proxy for end point. Here are example of contact

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Ricardo Martinez
users mailling list *Asunto:* Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?) On 24.03.2021 16:05, Ricardo Martinez wrote: So.. in order to make the update… is just fine to make it through git using this? git clone https://github.com/OpenSIPS/opensips.git -b 3.1 opensips-3.1

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Liviu Chircu
On 24.03.2021 16:05, Ricardo Martinez wrote: So.. in order to make the update… is just fine to make it through git using this? git clone https://github.com/OpenSIPS/opensips.git -b 3.1 opensips-3.1 That will pull all the latest changes ??

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Ricardo Martinez
24 de marzo de 2021 10:26 *Para:* Ricardo Martinez ; OpenSIPS users mailling list *Asunto:* Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?) On 24.03.2021 15:18, Ricardo Martinez wrote: I'm using version: opensips 3.1.0 (x86_64/linux) git revision: 58804282f *git log 58804282fe5

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Liviu Chircu
On 24.03.2021 15:51, volga629 wrote: Is in 3.1.2 all those fixes will be released ? Yes, most of them have not made it into 3.1.1. -- Liviu Chircu www.twitter.com/liviuchircu | www.opensips-solutions.com ___ Users mailing list

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread volga629 via Users
Hello Liviu, Is in 3.1.2 all those fixes  will be released ? volga629 On 3/24/21 10:26 AM, Liviu Chircu wrote: On 24.03.2021 15:18, Ricardo Martinez wrote: I'm using version: opensips 3.1.0

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Liviu Chircu
On 24.03.2021 15:18, Ricardo Martinez wrote: I'm using version: opensips 3.1.0 (x86_64/linux) git revision: 58804282f *git log 58804282fe5..HEAD modules/mid_registrar* There are at least 8 mid-registrar fixes which you are missing, including: -- commit

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Ricardo Martinez
to the PBX with the value modified? Thanks! Ricardo *De:* volga629 *Enviado el:* martes, 23 de marzo de 2021 23:37 *Para:* OpenSIPS users mailling list ; Ricardo Martinez *Asunto:* Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?) Hello Ricardo, I noticed this issue too. My w

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Ricardo Martinez
Hi Liviu. I'm using version: opensips 3.1.0 (x86_64/linux) git revision: 58804282f Ricardo -Mensaje original- De: Liviu Chircu Enviado el: miércoles, 24 de marzo de 2021 4:59 Para: OpenSIPS users mailling list ; Ricardo Martinez Asunto: Re: [OpenSIPS-Users] Mid_Registrar

Re: [OpenSIPS-Users] mid_registrar lookup

2021-03-24 Thread volga629 via Users
Hello Liviu, We use topology hiding edge proxy for end point. Here are example of contact header Contact: that call is inbound from PBX  to opensips and opensips forward to end point.    

Re: [OpenSIPS-Users] mid_registrar lookup

2021-03-24 Thread Liviu Chircu
On 24.03.2021 05:04, volga629 via Users wrote: But then arrive the ACK and that where start the problems lookup  only find first contact and not second. Hi Volga, So you're doing a lookup() on the ACK Request-URI?  Typically, the ACK R-URI will contain a contact header, which is not meant to

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-24 Thread Liviu Chircu
On 23.03.2021 17:46, Ricardo Martinez wrote: Hi. I’m still unable to understand why the REGISTER is not using the outgoing_expire. Hi, What version are you using?  `opensips -V` -- Liviu Chircu www.twitter.com/liviuchircu | www.opensips-solutions.com

[OpenSIPS-Users] mid_registrar lookup

2021-03-23 Thread volga629 via Users
Hello Everyone, One extension contain multiply  registered devices. We use mid_registrar in AOR  mode 2. The issue that lookup always find only result . For example: Inbound call from provider to  class 5 device then to

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-23 Thread volga629 via Users
Hello Ricardo, I noticed this issue too. My work around is Where 7200 is  outgoing_expires in module params. if($(hdr("Expires"){s.int})!=7200) {     remove_hf("Expires");   

Re: [OpenSIPS-Users] Mid_Registrar outgoing_expire issue (Bug?)

2021-03-23 Thread Ricardo Martinez
Hi. I’m still unable to understand why the REGISTER is not using the outgoing_expire. First. It's weird because according to the debug seems to change the outgoing_expire to 3600 but when I check the outgoing REGISTER from the MID_REGISTRAR still has the Expire Header = 300. One thing I noticed

[OpenSIPS-Users] Mid_Registrar outgoing_expire issue

2021-03-19 Thread Ricardo Martinez
Hi. I’m facing two problems with my mid_registrar module scenario. The scenario is as follows: UAC --- MID_REGISTRAR - PBX When a REGISTER came from the UAC to MID_REGISTRAR it has a header Expires:300 I have set the modparam("mid_registrar", "outgoing_expires", 3600) UAC

Re: [OpenSIPS-Users] mid_registrar local contact table

2020-11-18 Thread Arsen Semenov
Hi, try opensips-cli -x mi ul_dump or check you location table in case you use db as a back-end storage On Wed, Nov 18, 2020 at 6:44 PM Ricardo Martinez wrote: > Hi. > > I’m using the mid_registrar module as a front end for my local PBX > registrar Service. > > So far I was able to store the

[OpenSIPS-Users] mid_registrar local contact table

2020-11-18 Thread Ricardo Martinez
Hi. I’m using the mid_registrar module as a front end for my local PBX registrar Service. So far I was able to store the contact for a UAC before it goes to the REGISTRAR server. Is there a way to display or search the contacts stored in that table through the console? Thanks, *Ricardo

Re: [OpenSIPS-Users] mid_registrar load balance

2020-11-13 Thread David Villasmil
You should be able to use the dispatcher module just before relaying. Have you tried that? On Fri, 13 Nov 2020 at 13:09, Andy Kama wrote: > Hi Guys > > is it possible to load balance with mid_registrar? > perhaps setting multiple $ru in this part > >if (is_method("REGISTER")) {

Re: [OpenSIPS-Users] mid_registrar load balance

2020-11-13 Thread Alain Bieuzent
, "$avp(IP)", 3600);     t_relay();     break;     case 2:     xlog("L_INFO", "absorbing REGISTER for $tU ");         break;  

[OpenSIPS-Users] mid_registrar load balance

2020-11-13 Thread Andy Kama
Hi Guys is it possible to load balance with mid_registrar? perhaps setting multiple $ru in this part if (is_method("REGISTER")) { mid_registrar_save("location"); switch ($retcode) { case 1: xlog("forwarding REGISTER to main registrar

Re: [OpenSIPS-Users] mid_registrar and topology_hiding

2020-08-05 Thread Slava Bendersky via Users
can share my config with cluster support, but really need you help with this. I have open ticket while back for RE-INVITE issue #2067. Slava. From: "volga629" To: "OpenSIPS users mailling list" Sent: Wednesday, August 5, 2020 9:23:49 AM Subject: Re: [OpenSIPS-

Re: [OpenSIPS-Users] mid_registrar and topology_hiding

2020-08-05 Thread Slava Bendersky via Users
From: "Yohann Poilvert" To: "OpenSIPS users mailling list" Sent: Wednesday, August 5, 2020 5:28:08 AM Subject: Re: [OpenSIPS-Users] mid_registrar and topology_hiding Hello Liviu ! Great news ! Have you a full config example ? I think it missed "ctid" in

Re: [OpenSIPS-Users] mid_registrar and topology_hiding

2020-08-05 Thread Yohann Poilvert
[ tel:0686739335 | 0686739335 ] [ mailto:y.poilv...@geekinfo.fr | y.poilv...@geekinfo.fr ] [ https://www.geekinfo.fr/ | https://www.geekinfo.fr/ ] De: "Liviu Chircu" À: "users" Envoyé: Mercredi 5 Août 2020 10:20:13 Objet: Re: [OpenSIPS-Users] mid

Re: [OpenSIPS-Users] mid_registrar and topology_hiding

2020-08-05 Thread Liviu Chircu
On 05.08.2020 11:11, Yohann Poilvert wrote: Is mid_registrar and topology_hiding are now compatible between them ? Inbound calls are ok but not outbound... (Need auth) Hey, Yohann! Yes, since mid-registrar mangles the REGISTER contacts, while topology_hiding mangles the INVITE/200 OK

[OpenSIPS-Users] mid_registrar and topology_hiding

2020-08-05 Thread Yohann Poilvert
Hi all. Is mid_registrar and topology_hiding are now compatible between them ? Inbound calls are ok but not outbound... (Need auth) Thank's [ https://twitter.com/SegLoad ] [ https://www.linkedin.com/in/yohann-poilvert-a7ba84117/ ] Yohann Poilvert

Re: [OpenSIPS-Users] mid_registrar - AOR mode - Disable parallel forking.

2020-04-02 Thread Liviu Chircu
On 02.04.2020 11:16, Alain Bieuzent wrote: The issue (in my case) that in case of asterisk box send a call to janus (via opensips mid_registrar module), the call is forked to the 2 janus endpoints in parallel I want to limit the incoming to only the last endpoint registered. Is there a

[OpenSIPS-Users] mid_registrar - AOR mode - Disable parallel forking.

2020-04-02 Thread Alain Bieuzent
Hi, I’m trying to use mid_registrar module between a janus gateway and asterisk box. I have the same janus endpoints registered 2 time opensips mid_registrar module (so only 1 with opensips IP forward to asterisk box) The issue (in my case) that in case of asterisk box send a call to

Re: [OpenSIPS-Users] mid_registrar question

2019-09-28 Thread Igor Olhovskiy
Problem is phone is not deletes it registration. Problem is in not consistent timer behavior of some phones. Fully complies to RFC, but breakes middle logic. On Sep 28 2019, at 12:26 am, Alexey Vasilyev wrote: > Hi Igor, > > If the phone lost registration, it should also be deleted from

Re: [OpenSIPS-Users] mid_registrar question

2019-09-27 Thread Alexey Vasilyev
Hi Igor, If the phone lost registration, it should also be deleted from mid_registrar. With nathelper, e.g. So next REGISTER should be forwarded, not consumed. But it would be really good solution to have feature like this https://github.com/OpenSIPS/opensips/issues/1769

Re: [OpenSIPS-Users] mid_registrar question

2019-09-27 Thread Igor Olhovskiy
Enpoint B also have 3600 expiry time. So, 1000 + 2600 = 3600. But you got the point. Actually I faced more interesting issue a bit later, maybe actually it was the reason. Only 1 phone involved. Time 0 -> Enpoint A -> mid_registrar -> upstream_registrar (expires 3600) Time 1000 -> Enpoint

Re: [OpenSIPS-Users] mid_registrar question

2019-09-27 Thread Liviu Chircu
Hi, Igor! Correct me if I'm wrong, but doesn't endpoint B think it's registered for another 1000 seconds at step 4) in your example? Anyway, logically speaking, on step 2), the mid-registrar should forward the call to main reg, since there is no guarantee that any of the endpoints will send a

[OpenSIPS-Users] mid_registrar question

2019-09-27 Thread Igor Olhovskiy
Hi! I'm using mid_registrar in mode 2 with default_expires = 3600 Have a following issue. In a case of 2 enpoints registers with expires = 3600 (and actually re-registers in 3599) in a case of 1 phone is down, contact expires on upstream registrar. Like following Time 0 - > Enpoint A ->

Re: [OpenSIPS-Users] mid_registrar mode=0 expires problem

2019-03-22 Thread Liviu Chircu
Hi, Jeff! This should be fixed now on master and 2.4 -- good catch! Regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 20.03.2019 12:53, Liviu Chircu wrote: Ok, happened on first try :)  Working on a fix. Liviu Chircu OpenSIPS Developer

Re: [OpenSIPS-Users] mid_registrar mode=0 expires problem

2019-03-20 Thread Liviu Chircu
Ok, happened on first try :)  Working on a fix. Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 20.03.2019 12:26, Liviu Chircu wrote: Hello, Jeff! Looks like a bug - let me try to reproduce it first, then I'll return with some findings. Cheers, Liviu Chircu OpenSIPS

Re: [OpenSIPS-Users] mid_registrar mode=0 expires problem

2019-03-20 Thread Liviu Chircu
Hello, Jeff! Looks like a bug - let me try to reproduce it first, then I'll return with some findings. Cheers, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 19.03.2019 03:12, Jeff Pyle wrote: Hello, This is on OpenSIPS 2.4.5 from the apt.opensips.org

[OpenSIPS-Users] mid_registrar mode=0 expires problem

2019-03-18 Thread Jeff Pyle
Hello, This is on OpenSIPS 2.4.5 from the apt.opensips.org repo. I'm running mid_registrar in mode=0 with all parameters default. The REGISTER message comes from the client towards OpenSIPS with an expires=3600 in the Contact. I run mid_registrar_save("location") and relay the REGISTER

Re: [OpenSIPS-Users] mid_registrar not updating exipres when receiving 200 ok

2018-09-20 Thread Dominic
Thanks for the reply Liviu, let me know if I can do anything to help, this is a dev environment so I can try anything on it if it can be usefull. Dominic On Thu, Sep 20, 2018 at 10:11 AM Liviu Chircu wrote: > Hi Dominic, > > The 200 OK returned by OpenSIPS should definitely contain a 120s

Re: [OpenSIPS-Users] mid_registrar not updating exipres when receiving 200 ok

2018-09-20 Thread Liviu Chircu
Hi Dominic, The 200 OK returned by OpenSIPS should definitely contain a 120s expiry time.  Thanks for the detailed explanation - I will look into this asap. Best regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 20.09.2018 16:29, Dominic wrote: Hi all, I have

[OpenSIPS-Users] mid_registrar not updating exipres when receiving 200 ok

2018-09-20 Thread Dominic
Hi all, I have the following setup: -sip device is registering to OpenSIPS setup as a mid_registrar who then fowards registers to asterisk once they are authenticated -OpenSIPS is setup in contact throttling mode with outgoing expires set to 3600 sec. The scenario I came accross is the following:

Re: [OpenSIPS-Users] mid_registrar unregister on expire

2018-09-17 Thread John Kiniston
You could do a mid_registrar_lookup on your route for traffic from the PBX and if it fails drop the response. On Wed, Sep 12, 2018 at 8:38 AM Dominic wrote: > i think I may have figured it out, OpenSIPS is behaving properly (it sends > the unregister after expiery) I haden't seen it initially

Re: [OpenSIPS-Users] mid_registrar unregister on expire

2018-09-12 Thread Dominic
i think I may have figured it out, OpenSIPS is behaving properly (it sends the unregister after expiery) I haden't seen it initially in the asterisk CLI. However the issue is that it looks like asterisk continues to send it's SIP OPTIONS to that peer and OpenSIPS replies 404 not found and then

Re: [OpenSIPS-Users] mid_registrar unregister on expire

2018-09-12 Thread Liviu Chircu
Hi Dominic, This should be working -- are you able to reproduce this problem?  Also, any setup details (binary version, mid-registrar modparams, SIP traces) would be of great help. Best regards, Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com On 12.09.2018 16:52, Dominic

[OpenSIPS-Users] mid_registrar unregister on expire

2018-09-12 Thread Dominic
Hi, I setup OpenSIPs as a mid_registrar in contact throttling mode, in front of an asterisk server. Everything is working fine so far exept that I would like for when an entry in usrloc expires on the OpenSIPS, that an unregister is sent to the Asterisk. Right now, I see the sip device registered

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread volga629
small correction need change force_send_socket($var(src_socket)); to $fs = $var(src_socket); , becuse force_send_socket is not accepting variable expansion. volga629 On Fri, Aug 24, 2018 at 1:52 PM, volga...@networklab.ca wrote: Hello Ben, Thank you, that works. I though as final soultion

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread volga629
Hello Ben, Thank you, that works. I though as final soultion some think like this, not sure if possibe do in more optimized way. route[SET_SOURCE_IP] { $var(i) = 0; while($var(i) < $(var(ip_lst){csv.count})) { if($Ri==$(var(ip_lst){csv.value,$var(i)})) {

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread Ben Newlin
Volga, You are trying to use the csv transformation but your data is not comma-separated. You are using semi-colons. I think you are trying to remove the semi-colons with the regex and replace them with commas? I'm not sure what the value of that is, since you could just use commas to begin

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread volga629
Hello Ben, I tried this. Cfgutils loadmodule "cfgutils.so" modparam("cfgutils", "shvset", "vip_lan_lst=s:192.168.10.10;192.168.10.11;192.168.10.12") modparam("cfgutils", "shvset", "vip_wan_lst=s:209.234.43.2;209.234.43.3;209.234.43.4") $avp(arr) = $shv(vip_lan_lst);

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-24 Thread Ben Newlin
Volga, I had recommended using individual variables, but if you want to use a list that will work. I would recommend using transformations [1] to manipulate the list. Depending on what you choose as your separator you can use the csv transformations (","), or the string select transformation

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-21 Thread volga629
Hello Ben, All what I am trying is introduce $shv(lan_lst) for lan vips and $shv(wan_lst) for wan vips, originaly you idea. My issue is how get define the list and how to get through all ips in list as example for filter if($Ri==$shv(lan_lst) && $avp(DLG_dir)=="topbx") { volga629 On

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-21 Thread Ben Newlin
Volga, I'm still not sure I fully understand, but it sounds like all you really need is a mapping LAN<->WAN for each set of IPs? So in the scenario you outlined, when node 1 receives a packet on the LAN interface that was previously on node 2 you want it to send out the WAN for node 2. But if

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-21 Thread Ben Newlin
Volga, You can use shared variables as I suggested to get the proper VIPs into variables. Your keepalived script can change those values when failover occurs using the MI commands for shared variables. When I suggested this you posed the question "How I can determine which vip ip address

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-21 Thread volga629
Example right now we have on each node one vip for LAN and one vip for WAN. When failover happened node 1 will hold LAN and WAN vips of node 2. If on node 2 was active registrations they will be relocated to node 1 and source ip will be vip's node 2. The question how to define all the vips

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-21 Thread volga629
Hello Ben, The script bellow is to find the way define vips in variable so if failover happends on keepalived script can process traffic and set proper vips (source ip) volga629. On Tue, Aug 14, 2018 at 4:38 PM, Ben Newlin wrote: Volga, I must be misunderstanding. If you are able to

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-14 Thread Ben Newlin
Volga, I must be misunderstanding. If you are able to determine the correct receiving interface in OpenSIPS and you are using the Path header to communicate that to the next hop destination, I'm not sure I'm clear on what the issue is you are still trying to solve? Ben Newlin On 8/14/18,

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-14 Thread volga629
Hello Ben, Yes, I create logic like this if(!has_totag() && is_method("INVITE")) { create_dialog(); if($Ri== vip1 ip addr) { set_dlg_sharing_tag("vip1"); $avp(vip) = "vip1 ip addr"; } else if($Ri==

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-14 Thread Ben Newlin
Volga, Sorry, I didn't fully understand your scenario. Even though you said it was active/active, I was assuming an active/standby scenario where only 1 IP would be active on a box at a time. I don't think this approach would work for the scenario you are describing. Is there some reason you

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-14 Thread volga629
Hello Ben, Do you mean for this modparam("cfgutils", "varset", "init=i:1") modparam("cfgutils", "varset", "gw=s:sip:11.11.11.11;transport=tcp") or this modparam("cfgutils", "shvset", "debug=i:1") modparam("cfgutils", "shvset", "pstngw=s:sip:10.10.10.10") in my case will be something like

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-02 Thread Ben Newlin
M4 will process the file before OpenSIPS runs and will not be changeable at runtime. It sounds like that will not work for you if I am understanding properly. My first thought would be to use the shared variables from CFGUTILS [1]. They can be accessed from inside the script, but can also be

Re: [OpenSIPS-Users] mid_registrar work arround

2018-08-02 Thread volga629
Hello Liviu, Yes, that correct. Right now each node in cluster have own vip from keepalived on LAN side. The issue how to specify correct vip in case of failover, so if node 2 fail and node 2 vip was relocated to node 1. All sessions should be process on node 1 and append_hf("Path: \r\n");

  1   2   >