Here is the full log when leg A calls leg B 
http://pastebin.com/0JAZQpe7

Here is the log when leg B calls leg A
http://pastebin.com/8Q5abKEC

I can see  different errors in these two cases .

Regards,
Neeraj