Hello all,

Sending this question one more time, hope i can’t get some ideas to move 
forward.

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

My question : 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
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to