Hello,
which SEMS version are you using? 1.3?
I remember that specifically this changed some time back, so the
documentation was actually out of date and the example correct. I just
tried with both 1.4 branch and master (and updated the doc accordingly).
Stefan
o Jayesh Nambiar on 08/18/2011 12:18 PM:
Hi,
This just got solved by changing the following in the aas_callee.dsm.
-- postEvent($b_leg_var.a_ltag, b_status);
++ postEvent($a_ltag, b_status);
This was mentioned in the documentation as follows:
arrayname_var.* variables for new call, e.g.
arrayname_var.somevar will be set as $somevar
I would request Stefan to make the changes in the example if I am
right here.
Thanks,
--- Jayesh
On Thu, Aug 18, 2011 at 2:31 PM, Jayesh Nambiar <[email protected]
<mailto:[email protected]>> wrote:
Hi All,
I am trying to use the DSM example mentioned in b2b_connect_audio
and I have the following problem:
I am not able to post events from leg-b to leg-a. I see this in
the debug:
[#7f1f8d3af700/21736] [runactions, DSMStateEngine.cpp:236]
DEBUG: executing 'set($b_status=FAILED)'
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:546] DEBUG:
set $b_status='FAILED'
[#7f1f8d3af700/21736] [runactions, DSMStateEngine.cpp:236]
DEBUG: executing 'set($code=#code)'
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:546] DEBUG:
set $code='407'
[#7f1f8d3af700/21736] [runactions, DSMStateEngine.cpp:236]
DEBUG: executing 'set($reason=#reason)'
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:546] DEBUG:
set $reason='Proxy Authentication Required'
[#7f1f8d3af700/21736] [runactions, DSMStateEngine.cpp:236]
DEBUG: executing 'postEvent($b_leg_var.a_ltag, b_status;code;reason)'
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:253] DEBUG:
adding postEvent param b_status=FAILED
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:253] DEBUG:
adding postEvent param code=407
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:253] DEBUG:
adding postEvent param reason=Proxy Authentication Required
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:260] DEBUG:
posting event to session ''
[#7f1f8d3af700/21736] [runactions, DSMStateEngine.cpp:236]
DEBUG: executing 'log(2,$b_leg_var.a_ltag)'
[#7f1f8d3af700/21736] [execute, DSMCoreModule.cpp:443] INFO:
FSM: $b_leg_var.a_ltag ''
The line "posting event to session" is blank. The code written is
on the callee script:
transition "failed callee leg" START - failed / {
set($b_status=FAILED);
-- copy code and reason to other leg so it can be used as reply
code
set($code=#code);
set($reason=#reason);
postEvent($b_leg_var.a_ltag, b_status;code;reason);
log(2, $b_leg_var.a_ltag);
stop(false);
} -> END;
How do I get the variable in the first application to be visible
in the second application that is called??
Any ideas will be appreciated.
Thanks,
--- Jayesh
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems
--
frafos.com
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems