Hi Stefan,
Thanks for all the suggestions you provided earlier, it really helped and I
was able to properly deploy a complete B2B solution with media playing on
the first leg of the call. It was fun. Now there is a specific requirement
that I need to handle. Here is the scenario:

1) A calls B.
2) As soon as B answers the call, Caller A blind transfers that call to C
and disconnects.
3) While the call is being transferred, and until it gets connected; a
specific announcement sound file is to be played to number B.
4) Once C answers the call, B should be connected to C.

Doubts and Questions:
1) If I need to take this call through SEMS, it is logically 3 different
calls for SEMS right? Or rather 3 legs that are to be handled.
2) I don't want to relay the REFER ahead as the proxy ahead does not allow
me to send REFER requests.
2) To handle transfer(REFER), I need to write
set($enable_request_events="true");. Can I write this line in the RUN_INVITE
state? RUN_INVITE is where the call enters as soon as the call comes in.
3) When I transfer the call, I wait for REFER method in a state and parse
the Referred-To and Referred-By header. Like below:
transition "refer recvd" wait_refer - sipRequest(#method=="REFER") / {
    uri.getHeader(Refer-To, refer_to);
    uri.getHeader(Referred-By, referred_by);

    uri.parse($refer_to, transfer_);
    uri.parse($referred_by, caller_);

    set(b_leg_caller=$caller_user);
    set(b_leg_callee=$transfer_user);
    set(b_leg_domain=1.2.3.4);
    set(b_leg_app=aas_callee);

    set(b_leg_var.a_ltag=@local_tag);
    dlg.dialout(b_leg);
}

4) The above step only initiates a second call, but when I disconnect the
first leg, this second leg should be already patched to the third leg, since
the call is now transferred. Can this be done by using postEvent??
5) How can I play some file in 183 Session Progress of third leg which will
be audible by the second leg??

Any and all help in this regards will be really appreciated !!

Thanks in advance.

--- Jayesh
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to