[SR-Users] custom mid registrar using kamailio.

2023-05-26 Thread Yuriy Nasida
Hello,

https://lists.kamailio.org/pipermail/sr-users/2020-October/110792.html

I read this thread very carefully and I think I managed to implement all
the steps described by Daniel. Thank you so much for the detailed
description.

But it looks like I'm stuck on the last step. I can't delete records from
htable when an incoming call cannot reach the registered device (e.g., no
more internet access, power off at the device). I try to do this from
failure route but looks like i kamailio has not access to htable from it.

failure_route[INTERNAL_TO_EXTERNAL_FAILURE] {
  if (t_check_status("408")) {
  xlog("L_WARN", "$ci|log| hello \n");
  xlog("L_WARN", "$ci|log| mid reg token -
$sht(mid_reg_token=>$fU::$si::$sp) \n");
   }
}

I do not see xlog message with mid reg token but i see 'hello'.
Yes, htable record exists in case i check using:
kamcmd htable.dump mid_reg_token

Also I need a way to remove registration at the registrar (Freeswitch in my
case). This means I need to send api request from kamailio or just run some
script that will do this. What is the best way ? module exec ?

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


[SR-Users] Re: Knowing about the uac module with primary and secondary proxy setting

2023-05-26 Thread Ihor Olkhovskyi
Hello!

Yes, you can 'loop' outbound registration via self and than - use
dispatcher module to send REGISTER accordingly.
For the detection part, you can play with dispatcher event routes -
https://kamailio.org/docs/modules/devel/modules/dispatcher.html#idm1090

Le ven. 26 mai 2023 à 12:16, MUSLIH K  a écrit :

> Hi,
>
> *sip_provider_proxy1[* uac module-register] ---> *kamailio* [dispatcher
> Module]  > *Asterisk1*
>
>  > *Asterisk 2*
>
> in my configuration kamailio register to the sip provider using *uac
> module*, sip information are stored in database (uacreg).
>
> when a incoming call(INVITE) come to kamailio it will dispatch call to
> Asterisk using* "dispatcher module".*
>
> Here i have couple of questions
>
> 1.  If my SIP provider has a secondary proxy as a failover server
> (sip_provider_proxy2), can I configure Kamailio with the uac module to use
> the secondary proxy if the primary proxy fails?
> 2. Since my application is inbound-only, registration failure is only
> identified when the registration expires (3600 seconds = 1 hour). Can I use
> the dispatcher module to select the SIP proxy and switch the registration
> to the secondary proxy if the primary proxy is not reachable (using
> OPTIONS)?
>
> __
> 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:
>


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


[SR-Users] Re: http_client using JWT?

2023-05-26 Thread Henning Westerholt
Hello,

did you already check the functionality which the jwt module provides? 
https://www.kamailio.org/docs/modules/5.5.x/modules/jwt.html

Cheers,

Henning 

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

> -Original Message-
> From: Benoît Panizzon 
> Sent: Freitag, 26. Mai 2023 11:57
> To: sr-users@lists.kamailio.org
> Subject: [SR-Users] http_client using JWT?
> 
> Hi
> 
> The http_client module support the somehow old fashioned way to submit
> credentials as part of the URL.
> 
> Our 'held' server developer would love to use either JWT or a Bearer Token in 
> the
> Auth-Header or a 'cookie-jar' to authenticate the requests.
> 
> Is this somehow possible?
> 
> --
> Mit freundlichen Grüssen
> 
> -Benoît Panizzon- @ HomeOffice und normal erreichbar
> --
> I m p r o W a r e   A G-Leiter Commerce Kunden
> __
> 
> Zurlindenstrasse 29 Tel  +41 61 826 93 00
> CH-4133 PrattelnFax  +41 61 826 93 01
> Schweiz Web  http://www.imp.ch
> __
> __
> Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send
> an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: [sr-dev] Troubles with outbound kamailio call to other server

2023-05-26 Thread Henning Westerholt
Hello

(added sr-users, as its probably more a usage question).

The SIP message (the BYE) cannot be parsed apparently. From the log it looks 
that there is an invalid character in the first line. 
Do a network trace to analyse the packets that its actually send and try to get 
some more clues from that.

Cheers,

Henning

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

> -Original Message-
> From: aaron.s...@dialapplet.com 
> Sent: Freitag, 26. Mai 2023 10:44
> To: sr-...@lists.kamailio.org
> Subject: [sr-dev] Troubles with outbound kamailio call to other server
> 
> Hi everyone,
> I'm having the following errors in kamailio when i try to make an outbound 
> call to
> other server, I don't know what does it mean, if some one can help me
> 
> 11(25) ERROR:  [core/receive.c:310]: receive_msg(): core parsing of SIP
> message failed (XX.XX.XX.XX.5060/1)
> 13(27) ERROR:  [core/parser/parse_fline.c:271]: parse_first_line():
> parse_first_line: bad message (offset: 65)
> 13(27) ERROR:  [core/parser/msg_parser.c:681]: parse_msg(): ERROR:
> parse_msg: message= sip:asterisk@10.0.5.158:4080;alias=10.0.5.158~44730~1 SIP/2.0
> Via: SIP/2.0/UDP 84.127.226.15:5060;branch=z9hG4bK3bc90b47;rport
> Route:  ebc224ba0e2a;vsf=AAAJCQABGgUAAAMJLjE4ODo1MDYw;
> nat=yes>, ebc224ba0e2a;vsf=AAAJCQABGgUAAAMJLjE4ODo1MDYw;
> nat=yes>
> Max-Forwards: 70
> From: ;tag=as6f32aa26
> To: ;tag=5c7f862f-9692-4028-8af0-
> ebc224ba0e2a
> Call-ID: b9a49c52-7829-4cdf-a88c-0064cc5bb438
> CSeq: 102 BYE
> User-Agent: Asterisk PBX 11.2-cert3
> X-Asterisk-HangupCause: No user responding
> X-Asterisk-HangupCauseCode: 18
> Content-Length: 0
> 
> >
> ___
> Kamailio (SER) - Development Mailing List To unsubscribe send an email to 
> sr-dev-
> le...@lists.kamailio.org
__
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] http_client using JWT?

2023-05-26 Thread Benoît Panizzon
Hi

The http_client module support the somehow old fashioned way to submit
credentials as part of the URL.

Our 'held' server developer would love to use either JWT or a Bearer
Token in the Auth-Header or a 'cookie-jar' to authenticate the
requests.

Is this somehow possible?

-- 
Mit freundlichen Grüssen

-Benoît Panizzon- @ HomeOffice und normal erreichbar
-- 
I m p r o W a r e   A G-Leiter Commerce Kunden
__

Zurlindenstrasse 29 Tel  +41 61 826 93 00
CH-4133 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
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] Knowing about the uac module with primary and secondary proxy setting

2023-05-26 Thread MUSLIH K
Hi,

*sip_provider_proxy1[* uac module-register] ---> *kamailio* [dispatcher
Module]  > *Asterisk1*

   > *Asterisk 2*

in my configuration kamailio register to the sip provider using *uac module*,
sip information are stored in database (uacreg).

when a incoming call(INVITE) come to kamailio it will dispatch call to
Asterisk using* "dispatcher module".*

Here i have couple of questions

1.  If my SIP provider has a secondary proxy as a failover server
(sip_provider_proxy2), can I configure Kamailio with the uac module to use
the secondary proxy if the primary proxy fails?
2. Since my application is inbound-only, registration failure is only
identified when the registration expires (3600 seconds = 1 hour). Can I use
the dispatcher module to select the SIP proxy and switch the registration
to the secondary proxy if the primary proxy is not reachable (using
OPTIONS)?
__
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: