i still haven't figured out if it is somehow possible to trigger
sipReply event when sip reply is received from callee leg.  based on my
test (below), sipReply event is only triggered when reply is received
from caller leg.  as result, it is not possible to call dlg.getReplyBody
and dlg.addReplyBodyPart functions on replies from callee leg.

any advice on this is highly appreciated.

-- juha

test script that only triggers sipReply event when reply is received
from caller leg:

--------------------------------------------------------------------
import(mod_dlg);
 
initial state START
  enter {
    set($connect_session=0);
    set($reply_request=0);
    set($enable_reply_events="true");
};

transition "got invite" START - invite / {
  dlg.reply(100, Trying);
  sets(b_leg_r_uri="sip:@user@@domain");
  dlg.connectCalleeRelayed($b_leg_r_uri, $b_leg_r_uri);
} -> START;

transition "SIP reply" START - sipReply / {
  log(2, "got sip reply");
} -> START;
--------------------------------------------------------------------

if in above i replace "SIP reply" with this:

transition "SIP reply" START - B2B.otherReply(#code==200) / {
  log(2, "got 200 ok reply from callee");
} -> START;

then the transition is triggered when reply is received from callee leg:

Mar 23 10:48:58 siika sems[8025]: [#7f4f8a399700] [execute, 
DSMCoreModule.cpp:569] INFO: FSM:  'got 200 ok reply from callee'

that does not help, however, since functions dlg.getReplyBody and
dlg.addReplyBodyPart only work in sipReply event.
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to