I added $du=$null; before route(RELAY) as you suggested but I get the same results:
Nov 8 12:40:22 spock /usr/sbin/kamailio[21826]: ERROR: <script>: transaction
canceled
Nov 8 12:40:22 spock /usr/sbin/kamailio[21826]: ERROR: <script>: #012 RDNIS =
sip:297@192.168.1.134
Nov 8 12:40:22 spock /usr/sbin/kamailio[21826]: ERROR: <script>:
=============forwarding to voicemail1, RDNIS: sip:297@192.168.1.134 ===========
Nov 8 12:40:22 spock /usr/sbin/kamailio[21826]: ERROR: tm [tm.c:1679]: _w_t_relay_to():
t_forward_noack failed
Nov 8 12:40:22 spock /usr/sbin/kamailio[21826]: ERROR: sl [sl_funcs.c:392]:
sl_reply_error(): stateless error reply used: transaction canceled (487/SL)
Regards,
Konstantinos
On Fri Nov 8 10:24:06 CET 2019 Daniel Tryba wrote:
On Thu, Nov 07, 2019 at 04:53:43PM +0200,
Konstantinos Merentitis wrote:
I tried to modify the failure route in order to also forward not answered (failed?)
calls to asterisk mailbox but i get the following error and the call is never forwarded:
You appear to do the same thing I do, except setting $du to null. If the user is
REGISTERed $du will be set to their endpoint, changing $ru will have no effect on routing.
So add $du=$null; in the TOVOICEMAIL route before route(RELAY) and see what happens.