Hello,
On 22.12.17 15:46, Konstantin Tumalevich wrote:
I try to build custom attended transfer logick with
kamailio and asterisk.
My backend can do all work (include interconnect between asterisk
servers), so I need to fully handle REFER in kamailio. But I can't
send back NOTIFY message with the result of a transfer.
Is any way to do this logic inside kamailio or I need to write
external SIP service?
My route looks like:
if(!route(FROM_NODE)) {
if(is_method("REFER")) {
xlog("L_NOTICE", "Got REFER in call ci:$ci for
$(hdr(Refer-To){nameaddr.uri})");
sl_send_reply("202", "Accepted [1]");
# HERE I MAKE async request and want to send NOTIFY back
exit;
}
}
look at t_uac_send() to see if it provides something to build what you need:
-
https://www.kamailio.org/docs/modules/stable/modules/tm.html#tm.f.t_uac_send
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - March 5-7, 2018, Berlin -
www.asipto.com
Kamailio World Conference - May 14-16, 2018 -
www.kamailioworld.com