------------------------SDT2 AddLeg--------------------------------------------------------------------------------------------------------------------------------------------------------ObjectName----------------------------------------ObjectType----------------------------------------!%&()LinkEndpoints--------------------------------!%()HeadingText----------------------------------- AddLeg---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------6--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------()[8(!1 ;FPAR IN legID LegType; RETURNS R ResultType;)]}]}RNS R ResultType;)]}esultType;)]}------------------------------------------------------------------------------------------------------------------------------------------------------G()[8(! Procedure AddLeg)]}e Core_INAP/Block Type CallConfiguration/Process Type ConnectionView>> AddLeg)]}------------------------------------------------------------------------------------------------------------------------------------+()[(! l! 22!(d)[h(! l)[k(! 6)[n(! 6d! )]][ q(! 6)][&(! 6R,! d)[8(! )][!%()HeadingText-----------------------------------!%()PageOrder-------------------------------------1---------------------------------------------------------------------------------------------------- ------------!%()HeaderText--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------(!!")[ ((! 6! )[8(! legID = controllingLegID)][ =(!"~&&!"~&)[: (! 6!)[8(!- Is the leg to be added the controlling leg?)]]][+(!!")[8(! 6! False /* No */)][ (! 6!  )[8(! CP! PassiveLegs(LegId) !Used)][(!RR!"R)[8(! 6k! False)][6(! 6&! ,)[8(!& CP! PassiveL egs(legID)! Used := true)][%(!~!"~)[6(! 6X! d)[8(! R := Successful)][(!"--F!"F )['(! 6RF! d)[8(! )]]]]]]][(!~RR!"~R)[8(! 6k! True)][6(! 6L! d)[8 (! R := Failed)][ (!LFL!"FLL)[(! 6F!)[8(! LegId already in use!)]]][(!"~--F!"F~)[(! 6-!)][)()]]]]]][4(!&&!"&)[8(! 6?! True /* Yes */)][6@(! 6d! ,)[8(!" CP! ControllingLeg! Used := True)][C(!~!"~)[61(! 6! d)[8(! R := Successful)][7(!"--F!"F)[(! 6-!)][)()]]]]]]]]]]]}------------------------------------------------------------------------------------------------------------------------------------------------------j(!4C!5!7)[!(! 1!!3)]}--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------P()[w(!GSDL)]}-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------