Re: [Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Ian Blenke
Ian Blenke wrote:
Brian West wrote:

I would use the latest CVS for one.  And try again.


Unfortunately, I've tried numerous times to get a current CVS trunk 
snapshot to talk to *anything*, to no avail. Even getting my Grandstream 
phones to register with it was an apparent excersize in futility. 
Dropping back to 0.4.0 *immediately* worked with the same configs.
Ok, I've managed to get my Grandstream phones working correctly. With 
G.711/ulaw and 8 voice frames per packet, they work fine. Until I 
hard-coded all negotiable codecs to ulaw/alaw and upped the default 
setting of 1 voice frame per packet, I was getting no voice. Joy.

Anyway, the BudgeTone 100's (1.0.3.78) are working fine with Asterisk 
now, using today's CVS snapshot.

Back to the problem at hand: I simply cannot get the IAX/IAX2 
registration to "work". Honestly, I'm a bit lost. I'm still getting the 
same errors:

  WARNING[14351]: File chan_iax.c, Line 4852 (find_cache): Unable to 
generate call for 'privatepbx:[EMAIL PROTECTED]/local'
  WARNING[14351]: File chan_iax.c, Line 4972 (iax_exists): Unable to 
make DP cache
  WARNING[14351]: File chan_iax.c, Line 4852 (find_cache): Unable to 
generate call for 'privatepbx:[EMAIL PROTECTED]/local'
  WARNING[14351]: File chan_iax.c, Line 4994 (iax_canmatch): Unable to 
make DP cache

along with an apparent Registration Refused:

  NOTICE[9226]: File chan_iax2.c, Line 4341 (socket_read): Registration 
of 'privatepbx' rejected: Registration Refused

on the Public PBX box, I'm getting the following:

  NOTICE[7176]: File chan_iax2.c, Line 2860 (register_verify): Host 
privatepbx failed RSA authentication with inkeys 'privatepbx'

Now this is the weird part, I can start asterisk with -i or run "init 
keys" and the keys appear to load just fine:

PrivatePBX

*CLI> show keys
Key Name   TypeStatus   Sum
privatepbx PUBLIC  [Loaded] 7ace809ae1c70b1bf4e50586f2d228e9
privatepbx PRIVATE [Loaded] 4288d8b63dd77228ac9a9ceebba335c8
publicpbx  PUBLIC  [Loaded] 115599073563eec2fd3cfc5e1891ed27
iaxtel PUBLIC  [Loaded] d919b3ef03eb4dc54c8fee86bfeeada1
PrivatePBX

*CLI> show keys
Key Name   TypeStatus   Sum
publicpbx  PUBLIC  [Loaded] 115599073563eec2fd3cfc5e1891ed27
publicpbx  PRIVATE [Loaded] b2b4484bbd90e93ac8e17a05251b561d
iaxtel PUBLIC  [Loaded] d919b3ef03eb4dc54c8fee86bfeeada1
publicpbx  PUBLIC  [Loaded] 7ace809ae1c70b1bf4e50586f2d228e9
also, the initial IAX registration appears to work!

PrivatePBX

*CLI> iax show registry
Host UsernamePerceivedRefresh  State
x.x.x.x:5036 privatepbx  y.y.y.y:5036 60   Registered
*CLI> iax2 show registry
Host UsernamePerceivedRefresh  State
x.x.x.x:4569 privatepbx  y.y.y.y:4569 60   Registered
but here's the weird part: if I check back on these registrations 
periodically, I will see IAX or IAX2 as Rejected, apparently randomly:

*CLI> iax show registry
Host UsernamePerceivedRefresh  State
x.x.x.x:5036 privatepbx  y.y.y.y:5036 60   Registered
*CLI> iax2 show registry
Host UsernamePerceivedRefresh  State
x.x.x.x:5036 privatepbx  y.y.y.y:5036 60   Rejected
On the other side, I see the registration:

PublicPBX

*CLI> iax show peers
Name/Username HostMask Port  Status
privatepbxy.y.y.y (D) 255.255.255.255  5036  Unmonitored
Gah. In debug mode, I see initial REGREJ messages often when I reload, 
yet if I wait a bit, I seem to see REJACK messages after a while - but 
nothing deterministic.

  Tx-Frame Retry[000] -- Seqno: 01  Type: IAX Subclass: REGREQ
   Timestamp: 00066ms  Callno: 00014  DCall: 00193 [x.x.x.x:5036]
  Rx-Frame Retry[N/A] -- Seqno: 01  Type: IAX Subclass: ACK
   Timestamp: 00066ms  Callno: 00193  DCall: 00014 [x.x.x.x:5036]
  Rx-Frame Retry[N/A] -- Seqno: 01  Type: IAX Subclass: REGREJ
   Timestamp: 00045ms  Callno: 00193  DCall: 00014 [x.x.x.x:5036]
and then a few frames later:

  Rx-Frame Retry[No] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REGACK
   Timestamp: 00061ms  SCall: 4  DCall: 1 [66.152.21.108:4569]
   USERNAME: privatepbx
   REFRESH : 60
   APPARENT ADDRES : IPV4 y.y.y.y:4569
I'm slowly beginning to study these IAX frames to decypher their meanings...

This is my current setup, perhaps you can point out what I'm doing wrong 
(the same diagram from my earlier email stands):

PrivatePBX

;iax.conf:
[general]
; This appears to work.
register => privatepbx:[EMAIL PROTECTED]
;extension.conf:
[local]
; Neither of these seem to work.
switch => IAX2/privatepbx:[EMAIL PROTECTED]/local
;switch => IAX/privatepbx:[EMAIL PROTECTED]/local

PublicPBX


Re: [Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Ian Blenke
Chris Albertson wrote:

I would also like to see a more structured release
program.  It's kind
of scary to tell people that they should "just use
the latest CVS code".
For testing and development, this isn't a bad thing - as long as the 
trunk codebase generally *compiles* and *runs* more often than not. I've 
had no problems compiling the latest snapshots, but running it seems to 
lead me down a path of frustration - nothing seemed to work as the 0.4.0 
release did.

For production, a stable release cycle really would be nice. 
Particularly with a patch history along the stable tree until a next 
release (0.4.1, 0.4.2, etc, until the 0.5.0 development tree is deemed 
adequate for a feature freeze to 0.5.0).

That's where consultants earn their money.  They
should be preforming some kind of quality control. 
You build the code, get it to work, test it and ONLY
then install it at a customer's site for final
testing.  If you don't have a consultent then you do
this kind of work yourself.
In the OpenSource world, consultants typically implement stable releases 
of packages - typically for bug reporting if for no other reason. It's 
difficult to explain to someone why your CVS checkout from 3 months ago 
exhibits some unexpected flaw - who out there is going to have the same 
snapshot installed to compare notes?

You are right.   It would be stupid to install a new
untested CVS download on a working PBX system.
Granted. It would also be stupid to dictate a code-fork of the Asterisk 
source base just to have a "stable" reference tree.

I'm partial to the Mozilla approach. New development in trunk, branch 
stable releases with fixes rolled back into trunk as appropriate.

How many folks are running 2.6.0preX series Linux kernels on their 
production servers? This isn't much different, really. I don't mind 
rolling in a half dozen backports to patch up a 2.4 tree to something I 
can use, and *depend* on.

In the end, I'm really just happy to have something of Asterisk's 
quality in the OpenSource community. Despite a few minor quirks, 0.4.0 
really does seem to work quite well.

--
- Ian C. Blenke <[EMAIL PROTECTED]>
(This message bound by the following:
http://www.nks.net/email_disclaimer.html)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Chris Albertson


> I would also like to see a more structured release
> program.  It's kind
> of scary to tell people that they should "just use
> the latest CVS code".

That's where consultants earn their money.  They
should be preforming some kind of quality control. 
You build the code, get it to work, test it and ONLY
then install it at a customer's site for final
testing.  If you don't have a consultent then you do
this kind of work yourself.

You are right.   It would be stupid to install a new
untested CVS download on a working PBX system.

=
Chris Albertson
  Home:   310-376-1029  [EMAIL PROTECTED]
  Cell:   310-990-7550
  Office: 310-336-5189  [EMAIL PROTECTED]
  KG6OMK

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Steve Meyers
On Wed, 2003-08-20 at 11:09, Ian Blenke wrote:
> Brian West wrote:
> > I would use the latest CVS for one.  And try again.
> 
> Unfortunately, I've tried numerous times to get a current CVS trunk 
> snapshot to talk to *anything*, to no avail. Even getting my Grandstream 
> phones to register with it was an apparent excersize in futility. 
> Dropping back to 0.4.0 *immediately* worked with the same configs.
> 
> I'll give it a go again with today's snapshot and see if I can get 
> *anything* to work again.
> 
> Is there any hope for a 0.5.0 release on the horizon?

I would also like to see a more structured release program.  It's kind
of scary to tell people that they should "just use the latest CVS code".

Steve

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Ian Blenke
Brian West wrote:
I would use the latest CVS for one.  And try again.
Unfortunately, I've tried numerous times to get a current CVS trunk 
snapshot to talk to *anything*, to no avail. Even getting my Grandstream 
phones to register with it was an apparent excersize in futility. 
Dropping back to 0.4.0 *immediately* worked with the same configs.

I'll give it a go again with today's snapshot and see if I can get 
*anything* to work again.

Is there any hope for a 0.5.0 release on the horizon?

--
- Ian C. Blenke <[EMAIL PROTECTED]>
(This message bound by the following:
http://www.nks.net/email_disclaimer.html)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Brian West
I would use the latest CVS for one.  And try again.

bkw

On Wed, 20 Aug 2003, Ian Blenke wrote:

> I'm attempting to get two Asterisk 0.4.0 PBXes to communicate with one
> another using IAX/IAX2 trunks.
>
> I've managed to get a semi-functional NAT Firewall working as a PBX
> (with Asterisk running directly on the firewall itself), but there are
> issues with bind()ing to various interfaces which is causing outbound
> SIP issues.
>
> To get around these issues, the idea is to do something like this:
>
>   Internet
>  |
>---
>  |   |
>  |  Public PBX
>  |
>   NAT Firewall
>  |
>
>|| |
> Private PBX  Phone Phone ...
>
>
> This way we can run private Asterisk PBXes behind NATting firewalls that
> register with a central "public" Asterisk PBX using IAX/IAX2. The phones
> can merrily run SIP to the local Private PBX without worrying about NAT
> headaches or outbound proxies.
>
> I've managed to get the PBXes to mutually register correctly:
>
>Public PBX:
>
>   *CLI> iax show users
>   Username   Secret Authen Def.Context  A/C
>   privatepbxrsadefault  No
>
>Private PBX:
>
>   *CLI> iax show registry
>   Host  Username  PerceivedRefresh State
>   x.x.x.x:5036 privatepbx x.x.x.x:5036 60  Registered
>
>   *CLI> iax2 show registry
>   Host  Username  PerceivedRefresh State
>   x.x.x.x:4569 privatepbx x.x.x.x:4569 60  Registered
>
> On the Public PBX, I added:
>
>   iax.conf:
>
>   [privatepbx]
>   type=friend
>   host=dynamic
>   ;trunk=yes  ;<-- doesn't work without a zap interface for timing
>   context=outgoing
>   auth=rsa
>   inkeys=privatepbx
>   outkeys=publicpbx
>   qualify=yes
>
>   extension.conf:
>
>   [outgoing]
>   include => iaxtel   ; IAXTEL
>   include => fwd  ; fwd.pulver.com
>   include => iptel; iptel.org
>   include => sipphone ; SIPPhone.com
>   include => commx; CommunicationsXchange.com
>
> On the Private PBX, I've added what I think are the appropriate sections:
>
>   iax.conf:
>
>   [general]
>   register => privatepbx:[EMAIL PROTECTED]
>
>   extension.conf:
>
>   [outgoing]
>   switch => IAX/privatepbx:[EMAIL PROTECTED]/outgoing
>   ;exten => s,1,Dial(IAX/privatepbx:[EMAIL PROTECTED]/outgoing,20,tr)
>
> Whenever I try to route an outbound call, however, I get the following
> errors on the private PBX:
>
> WARNING[15376]: File chan_iax.c, Line 4837 (find_cache): Unable to
> generate call for 'privatepbx:[EMAIL PROTECTED]/outgoing'
> WARNING[15376]: File chan_iax.c, Line 4957 (iax_exists): Unable to make
> DP cache
> WARNING[15376]: File chan_iax.c, Line 4837 (find_cache): Unable to
> generate call for 'privatepbx:[EMAIL PROTECTED]/outgoing'
> WARNING[15376]: File chan_iax.c, Line 4979 (iax_canmatch): Unable to
> make DP cache
>
> No IAX traffic appears to go out in response to this.. so I'm guessing I
> have another problem.
>
> Can anyone help point me in the right direction?
>
> --
> - Ian C. Blenke <[EMAIL PROTECTED]>
> (This message bound by the following:
> http://www.nks.net/email_disclaimer.html)
>
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] IAX <> IAX trunking... DP cache?

2003-08-20 Thread Ian Blenke
I'm attempting to get two Asterisk 0.4.0 PBXes to communicate with one 
another using IAX/IAX2 trunks.

I've managed to get a semi-functional NAT Firewall working as a PBX 
(with Asterisk running directly on the firewall itself), but there are 
issues with bind()ing to various interfaces which is causing outbound 
SIP issues.

To get around these issues, the idea is to do something like this:

Internet
   |
 ---
|   |
|  Public PBX
|
 NAT Firewall
|
  
  || |
Private PBX  Phone Phone ...
This way we can run private Asterisk PBXes behind NATting firewalls that 
register with a central "public" Asterisk PBX using IAX/IAX2. The phones 
can merrily run SIP to the local Private PBX without worrying about NAT 
headaches or outbound proxies.

I've managed to get the PBXes to mutually register correctly:

  Public PBX:

*CLI> iax show users
Username   Secret Authen Def.Context  A/C
privatepbxrsadefault  No
  Private PBX:

*CLI> iax show registry
Host  Username  PerceivedRefresh State
x.x.x.x:5036 privatepbx x.x.x.x:5036 60  Registered
*CLI> iax2 show registry
Host  Username  PerceivedRefresh State
x.x.x.x:4569 privatepbx x.x.x.x:4569 60  Registered
On the Public PBX, I added:

	iax.conf:

[privatepbx]
type=friend
host=dynamic
;trunk=yes  ;<-- doesn't work without a zap interface for timing
context=outgoing
auth=rsa
inkeys=privatepbx
outkeys=publicpbx
qualify=yes
	extension.conf:

[outgoing]
include => iaxtel; IAXTEL
include => fwd   ; fwd.pulver.com
include => iptel ; iptel.org
include => sipphone  ; SIPPhone.com
include => commx ; CommunicationsXchange.com
On the Private PBX, I've added what I think are the appropriate sections:

	iax.conf:

[general]
register => privatepbx:[EMAIL PROTECTED]
	extension.conf:

[outgoing]
switch => IAX/privatepbx:[EMAIL PROTECTED]/outgoing
;exten => s,1,Dial(IAX/privatepbx:[EMAIL PROTECTED]/outgoing,20,tr)
Whenever I try to route an outbound call, however, I get the following 
errors on the private PBX:

WARNING[15376]: File chan_iax.c, Line 4837 (find_cache): Unable to 
generate call for 'privatepbx:[EMAIL PROTECTED]/outgoing'
WARNING[15376]: File chan_iax.c, Line 4957 (iax_exists): Unable to make 
DP cache
WARNING[15376]: File chan_iax.c, Line 4837 (find_cache): Unable to 
generate call for 'privatepbx:[EMAIL PROTECTED]/outgoing'
WARNING[15376]: File chan_iax.c, Line 4979 (iax_canmatch): Unable to 
make DP cache

No IAX traffic appears to go out in response to this.. so I'm guessing I 
have another problem.

Can anyone help point me in the right direction?

--
- Ian C. Blenke <[EMAIL PROTECTED]>
(This message bound by the following:
http://www.nks.net/email_disclaimer.html)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users