Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-16 Thread voiplist

Trixbox is only used as the client to simulate what we already saw
happening with a customer.

I don't think the fact that we used a Trixbox on the client side has
anything to do with the problem on the server side which is not using
Trixbox.

The on the server side Asterisk only sees the Trixbox as a client
coming in under an iax_buddies record which has an accountcode
assigned to it.

The server side is taking the call, then inserting the CDR with a
correct account code, dst, src and so on but the channel is wrong.



On 7/15/06, Tim Panton [EMAIL PROTECTED] wrote:


On 15 Jul 2006, at 19:26, voiplist wrote:

 On 7/15/06, Tim Panton [EMAIL PROTECTED] wrote:

 On 15 Jul 2006, at 17:24, voiplist wrote:

  After further testing, here is what we found..
 
  The account code was actually right after all, what made us
 think it
  was incorrect was the fact that * was reporting the wrong
 channel for
  the call.
 

 
  Test 2:
 
  We turned off the softphones mentioned above. We then setup a test
  Asterisk box with the same IAX accounts mentioned above. Each
 account
  registered to our server remotely just as the softphones did. We
 then
  made 10 phone calls with each account dialing totally different
 phone
  numbers so we could identify the records from each IAX account.
 
 
  Results (Test 2):
 
  We found that the majority of calls now had wrong/mismatched
 channels
  in the CDR. Basically we would show a channel like IAX2/user2
 for a
  call that we are certain came from the IAX user user1.
 
 
  And... That's my story and I'm stickin' to it :)

 Hmm, I'd like to know more about this, as it is likely to bite me
 too :-(

 Can you describe the setup of the 'originating' asterisk in your
 second test?
 If possible please share the relevant bits of extensions.conf and
 iax.conf.

 Thanks.
 Tim.


 Tim Panton
 [EMAIL PROTECTED]

 Sure it was TrixBox 1.1 running on a VmWare virtual machine (great for
 testing). We basically setup two Trunks as they are known is TrixBox
 ([EMAIL PROTECTED]), one with each of the IAX accounts we setup on the
 server end. Just to keep the confusion to a minimum, the TrixBox was
 the client which was sending the calls to the Asterisk Server which
 was terminating the calls to the PSTN.

 If you are familiar with TrixBox Trunk Configs I can send you the
 basic details of the settings in the GUI Trunk screen.

Ah, no, I am using the base asterisk facilities, plus a bit
of AGI magic.
You would need to strip the test case down to just asterisk
before you could be sure where the problem is.


Tim Panton

www.mexuar.com



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-16 Thread Tim Panton


On 16 Jul 2006, at 19:00, voiplist wrote:


Trixbox is only used as the client to simulate what we already saw
happening with a customer.

I don't think the fact that we used a Trixbox on the client side has
anything to do with the problem on the server side which is not using
Trixbox.

The on the server side Asterisk only sees the Trixbox as a client
coming in under an iax_buddies record which has an accountcode
assigned to it.

The server side is taking the call, then inserting the CDR with a
correct account code, dst, src and so on but the channel is wrong.


I still think that if you want your problem fixed, you'll
need to reduce it to a test case that an asterisk maintainer can
reproduce, without using trixbox. (or fix it yourself)

The other alternative would be to capture some IAX traces
either with ethereal or asterisk's iax2 debug of a call
where this goes wrong. This might give clues as to how
your problem happens.

If you do produce IAX traces I'd be happy to look them over
as I'm going to likely run into this problem myself in a
couple of weeks.


Tim Panton

www.mexuar.com



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-16 Thread voiplist

Actually, at this point this info was more for the community as a
whole. We don't need to fix this now because the account code is right
and that's what is important.



On 7/16/06, Tim Panton [EMAIL PROTECTED] wrote:


On 16 Jul 2006, at 19:00, voiplist wrote:

 Trixbox is only used as the client to simulate what we already saw
 happening with a customer.

 I don't think the fact that we used a Trixbox on the client side has
 anything to do with the problem on the server side which is not using
 Trixbox.

 The on the server side Asterisk only sees the Trixbox as a client
 coming in under an iax_buddies record which has an accountcode
 assigned to it.

 The server side is taking the call, then inserting the CDR with a
 correct account code, dst, src and so on but the channel is wrong.

I still think that if you want your problem fixed, you'll
need to reduce it to a test case that an asterisk maintainer can
reproduce, without using trixbox. (or fix it yourself)

The other alternative would be to capture some IAX traces
either with ethereal or asterisk's iax2 debug of a call
where this goes wrong. This might give clues as to how
your problem happens.

If you do produce IAX traces I'd be happy to look them over
as I'm going to likely run into this problem myself in a
couple of weeks.


Tim Panton

www.mexuar.com



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-15 Thread voiplist

After further testing, here is what we found..

The account code was actually right after all, what made us think it
was incorrect was the fact that * was reporting the wrong channel for
the call.

For example we may have a call from iaxuser1 which comes in with the
correct account code but it seems that the channel that shows for the
call is something like IAX2/user2.

In our testing we made 10 calls each to two separate IAX accounts to
two different phone numbers. We did this so we could identify the
records in the CDR with certainty.

What we found is that we would have records with the correct to and
from numbers, correct account code and so on but the channel column
was many times flat out wrong and didn't match the iax account which
to call came in on.

We set two test and I will explain both below. We have only seen this
bahavior when the IAX accounts in question are coming from the same IP
address. So for example a NAT setup with either multiple IAX
softphones, multiple Asterisk servers or one Asterisk server with
multiple IAX accounts to our server.

Test 1:

We setup two IAX softphones (Diax) behind a NAT. Each softphone had a
totally different account code in their configuration (on the server
side in iax.conf). Each phone registered using their respective
usernames/secrets..

Results (Test 1):

When calls were made each call was correctly inserted into the CDR
with the correct channel account code etc.



Test 2:

We turned off the softphones mentioned above. We then setup a test
Asterisk box with the same IAX accounts mentioned above. Each account
registered to our server remotely just as the softphones did. We then
made 10 phone calls with each account dialing totally different phone
numbers so we could identify the records from each IAX account.


Results (Test 2):

We found that the majority of calls now had wrong/mismatched channels
in the CDR. Basically we would show a channel like IAX2/user2 for a
call that we are certain came from the IAX user user1.


And... That's my story and I'm stickin' to it :)



On 7/14/06, Matt Riddell (NZ) [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

voiplist wrote:
 I wish it were that simple..

 We see the username coming in, it's in the channel etc..

 We see the call come into one account and we see * set an account code
 for another account.. Really..

 It seems that it has something to do with the fact that accounts
 registering from the same IP get mixed up.

 Anyone else experience this?

 We are using 1.2.4 on this particular box.

Are you sure you don't have an account with no password or something?

- --
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuG+NS6d5vy0jeVcRAh/vAJ0cArD+Zs2fmKYmZZf+VumBVh0CUwCfRYa4
rywZhhYMlLFNWRCMc/4nrkw=
=9gIG
-END PGP SIGNATURE-
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-15 Thread Tim Panton


On 15 Jul 2006, at 17:24, voiplist wrote:


After further testing, here is what we found..

The account code was actually right after all, what made us think it
was incorrect was the fact that * was reporting the wrong channel for
the call.





Test 2:

We turned off the softphones mentioned above. We then setup a test
Asterisk box with the same IAX accounts mentioned above. Each account
registered to our server remotely just as the softphones did. We then
made 10 phone calls with each account dialing totally different phone
numbers so we could identify the records from each IAX account.


Results (Test 2):

We found that the majority of calls now had wrong/mismatched channels
in the CDR. Basically we would show a channel like IAX2/user2 for a
call that we are certain came from the IAX user user1.


And... That's my story and I'm stickin' to it :)


Hmm, I'd like to know more about this, as it is likely to bite me  
too :-(


Can you describe the setup of the 'originating' asterisk in your  
second test?
If possible please share the relevant bits of extensions.conf and  
iax.conf.


Thanks.
Tim.


Tim Panton
[EMAIL PROTECTED]



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-15 Thread voiplist

On 7/15/06, Tim Panton [EMAIL PROTECTED] wrote:


On 15 Jul 2006, at 17:24, voiplist wrote:

 After further testing, here is what we found..

 The account code was actually right after all, what made us think it
 was incorrect was the fact that * was reporting the wrong channel for
 the call.



 Test 2:

 We turned off the softphones mentioned above. We then setup a test
 Asterisk box with the same IAX accounts mentioned above. Each account
 registered to our server remotely just as the softphones did. We then
 made 10 phone calls with each account dialing totally different phone
 numbers so we could identify the records from each IAX account.


 Results (Test 2):

 We found that the majority of calls now had wrong/mismatched channels
 in the CDR. Basically we would show a channel like IAX2/user2 for a
 call that we are certain came from the IAX user user1.


 And... That's my story and I'm stickin' to it :)

Hmm, I'd like to know more about this, as it is likely to bite me
too :-(

Can you describe the setup of the 'originating' asterisk in your
second test?
If possible please share the relevant bits of extensions.conf and
iax.conf.

Thanks.
Tim.


Tim Panton
[EMAIL PROTECTED]


Sure it was TrixBox 1.1 running on a VmWare virtual machine (great for
testing). We basically setup two Trunks as they are known is TrixBox
([EMAIL PROTECTED]), one with each of the IAX accounts we setup on the
server end. Just to keep the confusion to a minimum, the TrixBox was
the client which was sending the calls to the Asterisk Server which
was terminating the calls to the PSTN.

If you are familiar with TrixBox Trunk Configs I can send you the
basic details of the settings in the GUI Trunk screen.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-15 Thread Tim Panton


On 15 Jul 2006, at 19:26, voiplist wrote:


On 7/15/06, Tim Panton [EMAIL PROTECTED] wrote:


On 15 Jul 2006, at 17:24, voiplist wrote:

 After further testing, here is what we found..

 The account code was actually right after all, what made us  
think it
 was incorrect was the fact that * was reporting the wrong  
channel for

 the call.



 Test 2:

 We turned off the softphones mentioned above. We then setup a test
 Asterisk box with the same IAX accounts mentioned above. Each  
account
 registered to our server remotely just as the softphones did. We  
then
 made 10 phone calls with each account dialing totally different  
phone

 numbers so we could identify the records from each IAX account.


 Results (Test 2):

 We found that the majority of calls now had wrong/mismatched  
channels
 in the CDR. Basically we would show a channel like IAX2/user2  
for a

 call that we are certain came from the IAX user user1.


 And... That's my story and I'm stickin' to it :)

Hmm, I'd like to know more about this, as it is likely to bite me
too :-(

Can you describe the setup of the 'originating' asterisk in your
second test?
If possible please share the relevant bits of extensions.conf and
iax.conf.

Thanks.
Tim.


Tim Panton
[EMAIL PROTECTED]


Sure it was TrixBox 1.1 running on a VmWare virtual machine (great for
testing). We basically setup two Trunks as they are known is TrixBox
([EMAIL PROTECTED]), one with each of the IAX accounts we setup on the
server end. Just to keep the confusion to a minimum, the TrixBox was
the client which was sending the calls to the Asterisk Server which
was terminating the calls to the PSTN.

If you are familiar with TrixBox Trunk Configs I can send you the
basic details of the settings in the GUI Trunk screen.


Ah, no, I am using the base asterisk facilities, plus a bit
of AGI magic.
You would need to strip the test case down to just asterisk
before you could be sure where the problem is.


Tim Panton

www.mexuar.com



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Re: Wrong account code from iax_buddies

2006-07-14 Thread voiplist

Anyone have any thoughts on this?

On 7/13/06, voiplist [EMAIL PROTECTED] wrote:

We have a situation where the wrong account code is being passed from
Asterisk to our AGI and then on into the accountcode field in the CDR.

Here is the situation, best I can explain it..

We have 3 user records in the iax_buddies table which all come from
the same IP address and possibly the same Asterisk server (client
side).

The accountcode field in the iax_buddies records look like this:

name  accountcode   ipaddr
user1  155112.223.225.114
user2  156112.223.225.114
user3  157112.223.225.114


When user1, user2 or user3 terminates a call through the * box the
account code doesn't match the accountcode assigned to that user in
iax_buddies most of the time.

As far as we can tell it only gets mixed up with iax users coming from
the same IP. We have lots of other records which show the correct
account code on every call.

We have searched around and tried for hours to understand how this is
possible. All we can come up with is that Asterisk is somehow
associating the IP with any of the users names sort of willy nilly
regardless of the IAX user the call comes in as.

Any help would be appreciated.


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-14 Thread Eric \ManxPower\ Wieling

Sounds to me that the incoming call is providing the wrong userid/password.

voiplist wrote:

Anyone have any thoughts on this?

On 7/13/06, voiplist [EMAIL PROTECTED] wrote:

We have a situation where the wrong account code is being passed from
Asterisk to our AGI and then on into the accountcode field in the CDR.

Here is the situation, best I can explain it..

We have 3 user records in the iax_buddies table which all come from
the same IP address and possibly the same Asterisk server (client
side).

The accountcode field in the iax_buddies records look like this:

name  accountcode   ipaddr
user1  155112.223.225.114
user2  156112.223.225.114
user3  157112.223.225.114


When user1, user2 or user3 terminates a call through the * box the
account code doesn't match the accountcode assigned to that user in
iax_buddies most of the time.

As far as we can tell it only gets mixed up with iax users coming from
the same IP. We have lots of other records which show the correct
account code on every call.

We have searched around and tried for hours to understand how this is
possible. All we can come up with is that Asterisk is somehow
associating the IP with any of the users names sort of willy nilly
regardless of the IAX user the call comes in as.

Any help would be appreciated.


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users




--
Now accepting new clients in Birmingham, Atlanta, Huntsville, 
Chattanooga, and Montgomery.

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-14 Thread voiplist

I wish it were that simple..

We see the username coming in, it's in the channel etc..

We see the call come into one account and we see * set an account code
for another account.. Really..

It seems that it has something to do with the fact that accounts
registering from the same IP get mixed up.

Anyone else experience this?

We are using 1.2.4 on this particular box.



On 7/14/06, Eric ManxPower Wieling [EMAIL PROTECTED] wrote:

Sounds to me that the incoming call is providing the wrong userid/password.

voiplist wrote:
 Anyone have any thoughts on this?

 On 7/13/06, voiplist [EMAIL PROTECTED] wrote:
 We have a situation where the wrong account code is being passed from
 Asterisk to our AGI and then on into the accountcode field in the CDR.

 Here is the situation, best I can explain it..

 We have 3 user records in the iax_buddies table which all come from
 the same IP address and possibly the same Asterisk server (client
 side).

 The accountcode field in the iax_buddies records look like this:

 name  accountcode   ipaddr
 user1  155112.223.225.114
 user2  156112.223.225.114
 user3  157112.223.225.114


 When user1, user2 or user3 terminates a call through the * box the
 account code doesn't match the accountcode assigned to that user in
 iax_buddies most of the time.

 As far as we can tell it only gets mixed up with iax users coming from
 the same IP. We have lots of other records which show the correct
 account code on every call.

 We have searched around and tried for hours to understand how this is
 possible. All we can come up with is that Asterisk is somehow
 associating the IP with any of the users names sort of willy nilly
 regardless of the IAX user the call comes in as.

 Any help would be appreciated.

 ___
 --Bandwidth and Colocation provided by Easynews.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
Now accepting new clients in Birmingham, Atlanta, Huntsville,
Chattanooga, and Montgomery.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Re: Wrong account code from iax_buddies

2006-07-14 Thread Matt Riddell (NZ)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

voiplist wrote:
 I wish it were that simple..
 
 We see the username coming in, it's in the channel etc..
 
 We see the call come into one account and we see * set an account code
 for another account.. Really..
 
 It seems that it has something to do with the fact that accounts
 registering from the same IP get mixed up.
 
 Anyone else experience this?
 
 We are using 1.2.4 on this particular box.

Are you sure you don't have an account with no password or something?

- --
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuG+NS6d5vy0jeVcRAh/vAJ0cArD+Zs2fmKYmZZf+VumBVh0CUwCfRYa4
rywZhhYMlLFNWRCMc/4nrkw=
=9gIG
-END PGP SIGNATURE-
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users