Hi Franco,
Failrly complex issue and not easy to answer succinctly but I'll try. Analogue calls have no number associated with them, just a channel number, e.g. DAHDI/1, DAHDI/2 and so on. SARK/SAIL routing is number (or character string) based. When an analogue call arrives, SAIL allocates a number string to it. Essentially this is the channel name (DAHDI/1-1) but with the slash(/) removed (DAHDI1-1). Now, you want to ship the call over IAX to another machine. It will be sent with a DNID of DAHDI1-1 or DAHDI1-2, etc. However, unless you have a dailplan entry of DAHDI1-1 in the receiving machine then your call will be rejected.
This is exactly what is happening...
Dial IAX2/hp~v4@v4~hp/DAHDI1-1||
...Call rejected by 172.16.0.1: No such context/extension
The receiving SAIL box doesn't know what to do with the call, so it rejects it.
In SAIL-2.3.2-3 there is a cure for this problem by using something called a DiD-Class. DiD-Class exists in 2.3.1-20 but it doesn't work properly.
2.3.2-3 will be released in a few days so you should not have too long to wait for this fix.
Alternatively, you can just create a custom app along the lines of
exten=>DAHDI1-1,1,Dial(some extension)
Apologies for the problem but, to our knowledge, no one has ever wanted to cross-dock analogue calls. Cross docking between machines is ususally only done by customers with ISDN30 digital circuits or SIP trunks, both of which work just fine.
Best
S