Trying to connect 2 asterisks via IAX but touble on remote

Hi,

I have a server at my office, and another on the other side of the world, interconected via VPN (therefore same network).

at my office with asterisk 1.24 and the remote one with 1.07, both with debian Sarge.

they work fine with SIP phones and ZAP devices, that is when a call comes in on a ZAP device on the local server goes to a SIP phone of it’s own well.

I can’t test now the other server but used to work like that.

I am trying to convey a call from the local server via IAX2 to the other server to take ZAP 1 an call out.

I did the following:

On the local server

extensions.conf

[from-pstn]

exten => s,1,Answer()
exten => s,2,DIAL(IAX2/CPC:1234@remoteIP/${EXTEN})

On the remote server

IAX.conf:

[CPC]
type=friend
username=CPC
secret=1234
context=trusted
host=10.201.0.1

extensions.conf:

[trusted]
exten => s,1,Answer()
exten => s,2,Dial(ZAP/1)

the call goes to the remote server and gets answered there but just can’t find the zap device:

goes:
app_dial.c:759 dial_exec: Unable to create channel of type ‘ZAP’

does anyone has any clue about this?

could this happens if the pstn line is disconnected?

thanks

forgot to say, the remote machine is in switzerland in a normal house. the person that connected it is a lawyer so only did the connection part and has no further knoledge, but did ask for an analog line to connect.

It is supposed to be connected to an analog line but aren’t certain.

when I check with zttool it shows the following:

Alarms
RED Wildcard X101P Board 1

Whad does that RED alarm means?

how do I check from the server if it is a loopstart or koolstart type of line, or if by some reason they are connecting to a different kind of line like a BRI or something.?

the board did work on our office connected to an standard extension of our PBX.