Hello Giovanni,
thanks for you quick answer.

Please find below patebin link you requested:

XML Dialplan file's extract:
http://pastebin.com/dmHAKWxT

Internal call fscli logs:
http://pastebin.com/KfnaYN11

External call fscli logs
http://pastebin.com/2Khp1MaX


Regarding dialplan files, I'm going to explain here call flow:
Default.xml
1.call hits extension call_local, lua script is run and channel vasr cType=SRV, service_type=IVR
2. extension apps in xml services is execute
Services.xml
lua script is run to retrieve ivr name
3. on selection (2 in the logs) call is transfer to 8910 XML calls
Calls.xml
4. extension: call_inside is execute and call is hangup after
<action application="limit" data="db ${domain_name} MAX_${cCalled} ${maxcallsB} !USER_BUSY"/>

As you can see from the logs mod sofia hangup with user busy and then send a bye to external or internal channel:

2016-03-14 11:37:40.266607 [DEBUG] mod_sofia.c:506 Channel sofia/external/00403737752@10.200.24.10 hanging up, cause: USER_BUSY
2016-03-14 11:37:40.266607 [DEBUG] mod_sofia.c:558 Sending BYE to sofia/external/00403737752@10.200.24.10


2016-03-14 11:38:54.166606 [DEBUG] mod_sofia.c:506 Channel sofia/internal/5532@insiel.fvgvoipcoll.it hanging up, cause: USER_BUSY
2016-03-14 11:38:54.166606 [DEBUG] mod_sofia.c:558 Sending BYE to sofia/internal/5532@insiel.fvgvoipcoll.it


I tried to removed the limit app and the calls then hint limit_exceeded extension in calls.xml but behaviour is the same.
It seems to me that continue_on_fail where passing over IVR is not considered.


If I call directly (without IVR) extension 8910 (while it is busy) behaviour for both internal or external call is correct and busy tone is received.

Looking forward for a clue :-)

Thanks
Regards
Francesco