o Juha Heinanen on 03/01/2014 07:35 AM:
> Juha Heinanen writes:
> 
>> on the other hand, i haven't managed to implement a transparent dsm
>> script using B2B call control or dlg module functions either.  no matter
>> what value connect_session var has, sems replies with 200 ok before it
>> sends the invite out to b leg.
> 
> i got this sorted out.  for invite i have:
> 
> initial state START;
> transition "got INVITE in caller leg" START - invite -> RUN_INVITE;
> 
> state RUN_INVITE enter {
> 
>   set($connect_session=0);
>   dlg.reply(100, Trying);
>   ...
>   dlg.dialout(b_leg);
> }
> 
> and then invite is accepted when callee answers:
> 
> transition "Callee Answered" (START, RUN_INVITE) - test(#b_status==CONNECTED) 
> / {
>   dlg.acceptInvite(200, OK);
> } -> CONNECTED;

that's already good, but for what you linked to above you'd need
dsm/sbc I think. I'll try to add an example soon.

Stefan

> 
> -- juha
> 

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

Reply via email to