[SR-Users] UACREG to many Asterisk

Javier Valencia jv at voiper.es
Wed Jan 27 11:32:01 CET 2021


Hi there!

Go ahead I apologize for my English.

I have a Kamailio 5.4 with the DISPATCHER module and UAC enabled (for 
remote REGISTER), the DISPATCHER has several SETIDs, and they have one 
or more Asterisk balanced behind it.

In Kamalio script, when an endpoint does REGISTER, I enable the REGISTER 
of the UAC module. And when it expires or expires=0 I disable the 
REGISTER in the UAC module.

In the UACREG table in the database, L_UUID (unique key), L_USERNAME, 
R_USERNAME, and AUTH_USERNAME have the same value. For example CST100EXT100.

Knowing that the DISPATCHER and UAC modules have no relationship, but 
that when a SETID has several balanced Asterisks, how can I make the UAC 
module send the REGISTER to all the Asterisks of a SETID?

Clarifications;

1.- I cannot update the Asterisk, which are currently in version 11. 
They do not support PATH.

2.- I can modify the content of the UACREG table so that l_uuid has a 
suffix '_X'.

3.- Call jsonrpc_exec several times to enable the REGISTER in the UAC 
module.

(diff emulated)
< jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method": "uac.reg_enable", 
"params": ["l_uuid", "s: $ au"]}') ;
 > jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method": 
"uac.reg_enable", "params": ["l_uuid", "s: $ au_1"]}') ;
 > jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method": 
"uac.reg_enable", "params": ["l_uuid", "s: $ au_2"]}') ;
 > jsonrpc_exec ('{"id": 1, "jsonrpc": "2.0", "method": 
"uac.reg_enable", "params": ["l_uuid", "s: $ au_3"]}') ;

But I want to know if there is any more elegant way to do this.

Cheers, JV

-- 
Logo <http://www.voiper.es/>

	
Javier Valencia | CTO
Centro de Negocios Martín Buendía
Camino de las Cañadas, nº 1C, Portal 1, 2ºG
29649 Mijas (Málaga)

# 	951562080 (T) <tel:951562080> | 687486759 (M) <tel:687486759>
# 	www.voiper.es <http://www.voiper.es/>

------------------------------------------------------------------------

AVISO LEGAL
-----------

Este mensaje contiene información confidencial destinada para ser leída
exclusivamente por el destinatario. Queda prohibida la reproducción,
publicación, divulgación, total o parcial del mensaje así como el uso no
autorizados por el emisor. En caso de recibir el mensaje por error, se ruega
su comunicación al remitente lo antes posible. Por favor, indique
inmediatamente si usted o su empresa no aceptan comunicaciones de este tipo
por Internet.

Las opiniones, conclusiones y demás información incluida en este mensaje que
no esté relacionada con asuntos profesionales de SMART RECARGAS, S.L, se
entenderá que nunca se ha dado, ni está respaldado por el mismo.

Responsable del Tratamiento de Datos
------------------------------------
SMART RECARGAS , SL
Camino de las Cañadas, 1C PORTAL 1 2º G
29651 MIJAS COSTA (MALAGA)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210127/071f47bd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lifdepipkhmghccj.png
Type: image/png
Size: 7800 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210127/071f47bd/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knjkbldnhbpmaoik.png
Type: image/png
Size: 334 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210127/071f47bd/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nmnpcnkgioijalle.png
Type: image/png
Size: 453 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210127/071f47bd/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jv.vcf
Type: text/x-vcard
Size: 306 bytes
Desc: not available
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210127/071f47bd/attachment.vcf>


More information about the sr-users mailing list