Hi all,
For detection of a re-INVITE request from the script is it sufficient to detect the presence of a to tag using has_to_tag() function? Eg: if (method=="INVITE" && has_to_tag()) { ... };
What about detecting a reply to a re-INVITE in an onreply_route ? Is it doable from the script? How?
Thanks in advance for your help.
JF
Hello,
On 11/26/05 14:47, JF wrote:
Hi all,
For detection of a re-INVITE request from the script is it sufficient to detect the presence of a to tag using has_to_tag() function?
yes.
Eg: if (method=="INVITE" && has_to_tag()) { ... };
What about detecting a reply to a re-INVITE in an onreply_route ? Is it doable from the script? How?
You can set a special onreply_route[] when you detect the re-INVITE and you are sure that the replies coming in that reply route are for reinvites:
if (method=="INVITE" && has_to_tag()) { t_on_reply("5"); t_relay(); };
onreply_route[5] { # only replies from re-INVITEs are processed here ... }
Cheers, Daniel
Thanks in advance for your help.
JF
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users