[Home]

Summary:ASTERISK-00006: ztdummy causes IAX2 trunks not to work..
Reporter:wipeout (wipeout)Labels:
Date Opened:2003-07-22 10:55:56Date Closed:2011-06-07 14:11:59
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:My Setup:

PSTN(chan_capi)--[ast1]--IAX--{nat}--[ast2]--SIPUA

The problem:
When ztdummy is loaded on [ast1] and a call is made either from the SIPUA to a phone on the PSTN or inbound from the PSTN to the SIPUA the audio only works from the SIPUA to the PSTN and not in the other direction..

The following error fills the console screen on [ast2]..

WARNING[1150495040]: File chan_iax2.c, Line 3868 (socket_read): Unable to accept trunked packet from '<IP.ADDRESS>:4569': No matching peer

When ztdummy is not loaded all works fine in both directions..

****** ADDITIONAL INFORMATION ******

Zaptel, Asterisk and Libpri all recompiled from CVS at 15:55 GMT..

[ast1] uses chan_capi which is why ztdummy is used..
[ast2] has a X100P and S100U so ztdummy is not used..
Comments:By: Mark Spencer (markster) 2003-07-28 16:35:19

This is a configuration issue and has nothing to do with ztdummy.  You *must* have a peer declaration which matches the other side and it *must* have trunk=yes.

By: wipeout (wipeout) 2003-07-29 01:48:09

On AST2 I have the following..

[pbx1]
type=friend
auth=md5
secret=password
host=dynamic
context=exten
context=more-exten
context=services
context=dialout
trunk=yes

On AST1 I have..

[pbx2]
type=friend
auth=md5
secret=password
host=dynamic
context=extensions
trunk=yes

This configuration is working perfectly without ztdummy and stops working when ztdummy is loaded which is why I figured ztdummy to be causing the problem..

So are you saying that I must change the "type=friend" on each side to be "type=peer"?? Or are you saying that I need to have the identical(Line for line) configuration on each side??

edited on: 07-29-03 01:36

By: Mark Spencer (markster) 2003-08-02 15:00:35

Do they both register with each other?  They both must have a peer or friend declaration which either statically or dynamically contains the IP address.  This is definitely a configuration issue.

By: wipeout (wipeout) 2003-08-03 04:00:42

Ast2 registers with Ast1 becasue it has a dynamic address, Ast1 has a static IP address..

I still don't understand how it can work perfectly without ztdummy and not work with it but be a configuration error.. But I will take your word for it becasue you know Asterisk inside out.. :)

It doesn't really matter anymore becasue I was only wanting ztdummy so that the voice prompts would sound better but you have already fixed that for systems without zaptel hardware and it seems to be working OK so I probably don't need ztdummy anymore..

Thanks..