Re: [SR-Users] Using DNS log in

2022-03-25 Thread Ovidiu Sas
Hello Steve,

Take a look at the alias keyword:
https://www.kamailio.org/wiki/cookbooks/devel/core#alias
Set your domain as an alias and it should work.

-ovidiu

On Fri, Mar 25, 2022 at 18:21 Steve  wrote:

> Hello,
>
> I have a very basic Kamailio 5.4 configuration on Debian 11 with
> RTPProxy 2.2 behind a firewall. It works fine with the sip client
> logging into the server public ip address. However, the sip client is
> not able to log in when using a dns domain name directed to that public
> ip address. Is there a specific setting in the Kamailio and/or RTPProxy
> config files for using a dns domain name instead of a numeric ip address?
>
> Also, is there a Kamailio module that allows use of encrypted keys
> instead of passwords when logging in?
>
> Thanks for any info,
>
> Steve
>
>
> __
> 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] Forward and proxy

2022-03-25 Thread jaflong


Hi Kamailio community

Any advise on how to archive this

  sip.mydomain.com   sip.mypbx.com
sip_phone ===sip/tls===> KAMAILIO =sip/udp===>PBX


sip_phone should register to Kamilio with tls
Kamailio should proxy register to PBX with udp
sip_phone invites should be proxied to PBX



in sip_client setting he will point to sip.mydomain.com as his server

Regards

__
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] proxy and forward

2022-03-25 Thread jaflong jaflong
 Hi Kamailio communityAny advise on how to archive this   sip.mydomain.com sip.mypbx.comsip_phone sip/tls> KAMAILIO ===sip/udp>PBXsip_phone should register to Kamilio with tlsKamailio should proxy register to PBX with udpsip_phone invites should be proxied to PBXin sip_client setting he will point to sip.mydomain.com as his serverRegards 

__
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] t_suspend / t_continue & insert_hf

2022-03-25 Thread Fuad Trle
 Hello,

I'm inserting some headers after getting value from http_async_query. If a
call is relayed, I see them. But If I t_suspend and t_continue call (before
time out), I do not see added headers. Here is flow:

route(START)
t_newtran();
#.. prep for query
http_async_query("url","HTTP");

route(HTTP)
#.. collect and using data from query
insert_hf("$var(key): $var(value)\r\n");
t_store();

if (registered("location") {
route(RELAY);
} else {
t_suspend();
exit;
}

route(AWAKE)
t_continue();

I see that the branch index ($T_branch_idx) is 0 at start. 1 after http
query, +1 if there is forking or location. +1 after t_suspend. It looks
like t_continue uses a branch with index after t_suspend. I tried with
t_save_lumps() to carry over changes.

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


[SR-Users] (no subject)

2022-03-25 Thread jaflong jaflong
Hi Kamailio community, Any advise on how to archive this                       sip.mydomain.com            sip.mypbx.comsip_phone sip/tls> KAMAILIO ===sip/udp> PBX  sip_phone should register to Kamilio with tlsKamailio should proxy register message to PBX with udpsip_phone invites should be proxied to PBX in sip_client setting he will point to sip.mydomain.com as his server Regards

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


[SR-Users] Kamailio : kamctl address reload with HAProxy

2022-03-25 Thread Paclinio
Dear colleagues,

I've installed a Galera cluster with a HAProxy that kamailio interacts
with.
Kamailio's DBURL is linked to the proxy that will contact the databases.
Kamailio works fine except when I need to reload something from the
database (Using kamctl).

When cache and database are the same I receive

sudo kamctl address reload
> {
>   "jsonrpc":  "2.0",
>   "result": "Reload OK",
>   "id": 13111
> }


Now when I have something using kamctl, it still works and is replaced on
all my databases.

sipsecure@kamailio:~$ sudo kamctl address add 0 192.168.48.15 32 0 Test
> -e \E[37;33mINFO: execute '/sbin/kamctl address reload' to synchronize
> cache and database



 Then when i try to reload i receive

sipsecure@kamailio:~$ sudo kamctl address reload
> {
>   "jsonrpc":  "2.0",
>   "error":  {
> "code": 500,
> "message":  "Reload failed."
>   },
>   "id": 13504
> }


And when I'm going to read my logs to see a error, I only see that little
sentence

Mar 25 17:14:40 kamailio /usr/sbin/kamailio[13343]: ERROR: permissions
> [address.c:233]: reload_address_db_table(): database problem - invalid
> record


Could I have some explanation ?

Thank you.



Virus-free.
www.avast.com

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


[SR-Users] Kamailio SCSCF forward SIP INVITE over TCP

2022-03-25 Thread Weiqi Yao
Hello community,

We currently have some issues with Kamailio SCSCF forwarding a large SIP UDP 
INVITE packet(size around 3000bytes), it got dropped somewhere in the ethernet. 
I tried increase the MTU size on both sides' interface and even define it on 
the switch port, but still no luck.

So I am thinking to force SCSCF to send this INVITE over TCP, I followed this 
link: https://andersbrownworth.com/cms/264/, enabled naptr in SCSCF config and 
configured NAPTR and SRV DNS record, but the SCSCF still stop even forward it 
out. I think I did the DNS part right cause when I switch the NAPTR record to 
point to UDP it worked.

Anyone have some experience with configure SCSCF forwarding SIP through TCP?

BR,

Weiqi
__
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