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.
On 08.11.19 11:52, Konstantinos Merentitis wrote:
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
The log message suggests that the INVITE was cancelled -- can you look at the sip traffic and see if there is a CANCEL request received from caller UA? If yes, the transaction was terminated and cannot be re-routed.
Cheers, Daniel
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.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Right, apparently the incoming trunk sends a CANCEL request approx 20secs after the initial INVITE, i suppose because the kamailio subscriber is not answering, so the flow in my logs is normal. I should now rephrase my question and ask if there is a way to forward calls that are not answered - is there a timer for this? can you please point me to any direction?
Regards,
Konstantinos
On 8 Nov 2019, at 1:19 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
On 08.11.19 11:52, Konstantinos Merentitis wrote:
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
The log message suggests that the INVITE was cancelled -- can you look at the sip traffic and see if there is a CANCEL request received from caller UA? If yes, the transaction was terminated and cannot be re-routed.
Cheers, Daniel
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.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com http://www.asipto.com/ www.twitter.com/miconda http://www.twitter.com/miconda -- www.linkedin.com/in/miconda http://www.linkedin.com/in/miconda Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com http://www.kamailioworld.com/
On Fri, Nov 08, 2019 at 02:43:57PM +0200, Konstantinos Merentitis wrote:
Right, apparently the incoming trunk sends a CANCEL request approx 20secs after the initial INVITE, i suppose because the kamailio subscriber is not answering, so the flow in my logs is normal. I should now rephrase my question and ask if there is a way to forward calls that are not answered - is there a timer for this? can you please point me to any direction?
See fr_inv_timer. http://www.kamailio.org/docs/modules/5.2.x/modules/tm.html#tmp.p.fr_inv_time...
Which can be dynamically changed with http://www.kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.f.t_set_fr so if a user has voicemail enabled you could set it to 15s or else leave it at 60/120s.
Great, already fixed it:
Nov 8 15:15:03 spock /usr/sbin/kamailio[22550]: ERROR: <script>: ============= Calling local: sip:6297@192.168.1.131 ============= Nov 8 15:15:08 spock /usr/sbin/kamailio[22555]: ERROR: <script>: ============= Route failure, propably no answer, forwarding to voicemail ============= Nov 8 15:15:08 spock /usr/sbin/kamailio[22555]: ERROR: <script>: #012 RDNIS = sip:297@192.168.1.134 Nov 8 15:15:08 spock /usr/sbin/kamailio[22555]: ERROR: <script>: =============forwarding to voicemail1, RDNIS: sip:297@192.168.1.134 ===========
Thank you,
Konstantinos
On 8 Nov 2019, at 2:56 PM, Daniel Tryba d.tryba@pocos.nl wrote:
On Fri, Nov 08, 2019 at 02:43:57PM +0200, Konstantinos Merentitis wrote:
Right, apparently the incoming trunk sends a CANCEL request approx 20secs after the initial INVITE, i suppose because the kamailio subscriber is not answering, so the flow in my logs is normal. I should now rephrase my question and ask if there is a way to forward calls that are not answered - is there a timer for this? can you please point me to any direction?
See fr_inv_timer. http://www.kamailio.org/docs/modules/5.2.x/modules/tm.html#tmp.p.fr_inv_time...
Which can be dynamically changed with http://www.kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.f.t_set_fr so if a user has voicemail enabled you could set it to 15s or else leave it at 60/120s.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users