[SR-Users] Capturing response from uac_reg module

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 14 14:52:39 CEST 2021


Hello,

failure route is not executed on replies for REGISTER requests generated
by uac_reg module.

You can get them on reply_route {} block - filter on method REGISTER and
only one Via header.

event_route[uac:reply] is only for uac_req_send() and although they are
part of the same module, it has nothing to do with uac_reg feature.

Cheers,
Daniel

On 11.09.21 23:03, Ross McKillop wrote:
> I did try with failure_route but didn’t seem to get the response from the automatically initiated REGISTER requests, if that should work I shall try again!
>
> Thanks
> Ross 
>
> --
> Sent from my mobile device. 
> Please excuse brevity. 
>
>> On 11 Sep 2021, at 21:13, Henning Westerholt <hw at skalatan.de> wrote:
>>
>> Hello Ross,
>>
>> have you already tried to use a onreply_route for this? If you are interested in the authentication 401/407 responses on the REGISTER request, a failure_route is the way to go, as indicated in the module docs for uac_auth() function.
>>
>> Cheers,
>>
>> Henning
>>
>> -- 
>> Henning Westerholt - https://skalatan.de/blog/
>> Kamailio services - https://gilawa.com 
>>
>> -----Original Message-----
>> From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Ross McKillop
>> Sent: Friday, September 10, 2021 12:41 PM
>> To: sr-users at lists.kamailio.org
>> Subject: [SR-Users] Capturing response from uac_reg module
>>
>> Hi,
>>
>> What's the best way to capture the response from REGISTER requests automatically initiated by the uac_reg module? 
>>
>> I was looking to use event_route[uac:reply] {} but that is only triggered if the evroute flag is set on the initial call made to uac_req_send()
>>
>> Is there a way to set this globally so that uac:reply is called for all requests initiated for peers in the uacreg table or a better way to capture the response?
>>
>> Best,
>> Ross
>>
>>
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>  * sr-users at 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
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at 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

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda




More information about the sr-users mailing list