Re: [SR-Users] Q.850 Reason in CANCEL on Kamailio 3.0

2011-03-15 Thread Jeremy McNamara
On 3/15/11 10:25 AM, Klaus Darilion wrote: Instead of t_relay() use forward(): http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#forward I thought I would need to use forward. Thank you for the confirmation. Note: if you want to forward CANCEL stateless, you also have to forward

Re: [SR-Users] Q.850 Reason in CANCEL on Kamailio 3.0

2011-03-15 Thread Klaus Darilion
On 15.03.2011 13:22, Jeremy McNamara wrote: On 3/15/11 3:33 AM, Klaus Darilion wrote: There are several functions in tm module to automatically generate Reason headers: http://www.kamailio.org/docs/modules/3.1.x/modules/tm.html#t_set_no_e2e_cancel_reason I saw these, but I do not think the

Re: [SR-Users] Q.850 Reason in CANCEL on Kamailio 3.0

2011-03-15 Thread Jeremy McNamara
On 3/15/11 3:33 AM, Klaus Darilion wrote: There are several functions in tm module to automatically generate Reason headers: http://www.kamailio.org/docs/modules/3.1.x/modules/tm.html#t_set_no_e2e_cancel_reason I saw these, but I do not think they help (as I need Q.850 reason codes) A worka

Re: [SR-Users] Q.850 Reason in CANCEL on Kamailio 3.0

2011-03-15 Thread Klaus Darilion
Am 15.03.2011 04:31, schrieb Jeremy McNamara: > I am attempting to add a Reason header with Q.850 result codes. > > Unfortunately, this does not work: > > if (is_method("CANCEL")) { > append_hf("Reason: Q.850; cause=16\r\n"); > if (t_check_trans()) { > t_relay(); > }

[SR-Users] Q.850 Reason in CANCEL on Kamailio 3.0

2011-03-14 Thread Jeremy McNamara
I am attempting to add a Reason header with Q.850 result codes. Unfortunately, this does not work: if (is_method("CANCEL")) { append_hf("Reason: Q.850; cause=16\r\n"); if (t_check_trans()) { t_relay(); } exit; } If I have to use 3.1.x, does it support sending