Hi,

if you pass variables that way from one DSM to another created by dlg.dialout(), it's $b_leg_var.a_ltag, not $a_ltag.

You can see all variables by doing e.g. logVars(3) or logAll(3).

hth
Stefan

P.S.: it can be pretty useful to post actually running test cases...just saying...mine are these:

------------- aas_caller.dsm
import(mod_dlg);
import(mod_conference);
initial state START;
transition "got INVITE in caller leg" START - invite -> RUN_INVITE;

state RUN_INVITE enter {
   set($connect_session=0);
   dlg.acceptInvite(183, Session Progress);

   setInOutPlaylist();
   set(b_leg_caller=sayer);
   set(b_leg_callee=music);
   set(b_leg_domain=iptel.org);
   set(b_leg_app=aas_callee);
   set(b_leg_auth_user=sayer);
   set(b_leg_auth_pwd=mypassword);

   set(b_leg_var.a_ltag=@local_tag);
   dlg.dialout(b_leg);
   log(2,$b_leg_ltag);
  setTimer(1, 10);
};

transition "Caller Answered" RUN_INVITE - test(#b_status==MATCHED) / {
  closePlaylist(false);
  dlg.acceptInvite(200, OK);
  conference.join(@local_tag);
} -> CONNECTED;
state CONNECTED;

-- transition "No answer " RUN_INVITE - failed -> Record;, timerTest(#id==1) } -> Record;
state Record;



------------- aas_callee.dsm
import(mod_conference);
initial state START;
transition "session starts in callee leg" START - sessionStart / {
   logAll(3);
   log(3,$b_leg_var.a_ltag);
   set($b_status=MATCHED);
   postEvent($b_leg_var.a_ltag, b_status);
   conference.join($b_leg_var.a_ltag);
} -> CONNECTED;
state CONNECTED;


o Jason b.a on 06/22/2011 04:10 PM:

Here is a part of the code, the caller calls SEMS, then using dialout
SEMS calls the callee, i have two problem , when the callee answered
the call is established in his side,
but the even is not sent to the caller eventhough i follow the
quizconnect app, second one to leave a message if no answer

Callee:
---------
initial state START;
transition "got INVITE in caller leg" START - invite -> RUN_INVITE;

state RUN_INVITE enter {
set($connect_session=0);
dlg.acceptInvite(183, Session Progress);
setInOutPlaylist();
set(b_leg_caller=x);
set(b_leg_callee=y);
set(b_leg_domain=iptel.org);
set(b_leg_app=callee);
set(b_leg_auth_user=x);
set(b_leg_auth_pwd=mypass);

set(b_leg_var.a_ltag=@local_tag <mailto:b_leg_var.a_ltag=@local_tag>);
dlg.dialout(b_leg);
log(2,$b_leg_ltag);
setTimer(1, 10);
};

transition "Caller Answered" RUN_INVITE - test(#b_status==MATCHED) / {
closePlaylist(false);
dlg.acceptInvite(200, OK);
conference.join(@local_tag);
} -> CONNECTED;
state CONNECTED;

transition "No answer " RUN_INVITE - { failed , timerTest(#id==1) } ->
Record;
state Record;
-----------------------------------------------------------------------------
Caller:
--------
initial state START;
transition "session starts in callee leg" START - sessionStart / {
log(3,$a_ltag); -- always blank , not working
set($b_status=MATCHED);
postEvent($a_ltag, b_status);
conference.join($a_ltag);
} -> CONNECTED;
state CONNECTED;



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


--
Stefan Sayer
frafos.com
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to