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 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
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 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