Hello, maybe a good approach is to loop back the registrations to Kamailio via outbound proxy and then do the usual request routing using request_route block, where you can engage dispatcher and other modules to try to achieve what you need.
Cheers, Daniel On 30.01.21 10:07, Karsten Horsmann wrote: > Hi Javier, > > Not knowing your config I could imagine that you can maybe use > > > |ds_next_dst()| > > In a while loop to iterate over all setid members of dispatcher. > That's not tested and most people here would strongly suggest to use > Kamailio as Registrar. > > Or you try some configuration that spreads the registration around to > your backends > Take a look at this thread > > http://sip-router.1086192.n5.nabble.com/MID-Registrar-Example-td192277.html#a192339 > <http://sip-router.1086192.n5.nabble.com/MID-Registrar-Example-td192277.html#a192339> > > Not sure if this works for you (due the path missing in asterisk 11 > you mentioned) but maybe gives some inspiration. > > > Kind regards > Karsten Horsmann > > Javier Valencia <[email protected] <mailto:[email protected]>> schrieb am Mi., > 27. Jan. 2021, 11:34: > > 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) > > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] <mailto:[email protected]> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users> > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > 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 [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
