[OpenSIPS-Users] B2BUA - REFER- detect 200 OK to send notify
amel.guesmi at sofrecom.com
amel.guesmi at sofrecom.com
Thu Aug 10 13:26:39 UTC 2023
Could anyone help us to move forward in this subject please ?
If more clarification or details need , please let me know
Thank you very much
De : GUESMI Amel SOFRECOM
Envoyé : lundi 7 août 2023 10:54
À : 'users at lists.opensips.org' <users at lists.opensips.org>
Cc : DL FT-FR Sbc TEAM <sbc.team at sofrecom.com>
Objet : B2BUA - REFER- detect 200 OK to send notify
Hello all,
Sorry for sending this question several times, hope i get some help this time 😊
We are trying to implement the « REFER » method in opensips 3.3. we used this documentation :
openSIPS | Documentation / Tutorials-B2BUA<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips.org%2FDocumentation%2FTutorials-B2BUA%23toc15&data=05%7C01%7Camel.guesmi%40orange.com%7C181723563d0c43181dce08db9429c16f%7C90c7a20af34b40bfbc48b9253b6f5d20%7C0%7C0%7C638266679269197623%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=icy4eVaC2QsWW%2FZRcnUT0xQfGYAPYDUNiJyE2pW7NtY%3D&reserved=0>
When we detect a REFER method, we are excuting those functions :
b2b_send_reply(202, "Accepted");
# Example: Send NOTIFY request
$var(destination) = $hdr(Refer-From);
$var(message_body) = "This is the message body of the NOTIFY";
send_request("NOTIFY", $var(destination), $hdr(Refer-To), $var(message_body));
# create the client entity corresponding to
# the user specified in the 'Refer-To' header
b2b_client_new("referee", $hdr(Refer-To));
# bridge the referrer's peer with the referee
b2b_bridge("peer", "referee");
#b2b_end_dlg_leg();
With that scenario, we succeeded in transfering a call after the REFER and we are tryning now to implement that process with « Notify » after the REFER (see the flow in the following link).
REFER_-_User_docs_2.width-800.png (720×540) (twilio.com)<https://assets.cdn.prod.twilio.com/images/REFER_-_User_docs_2.width-800.png>
For this, when we open the new client session, we don’t end the session with the one sending the REFER and we need to detect when the call is accepted by the Callee (200 OK) when we are using that function : b2b_client_new("referee", $hdr(Refer-To));
How can we detect the 200 OK in that B2B mode in order to send the NOTIFY before ending the session with Alice.
Thank you very much
BR, Amel
Orange Restricted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230810/0c7284d7/attachment.html>
More information about the Users
mailing list