Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-28 Thread Nic Colledge
Paul,
Thanks, I'll try this patch later tonight.
Nic.
-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paul Belanger
Sent: 28 October 2010 03:27
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.8 IAX Registration

On Tue, Oct 26, 2010 at 8:26 PM, Paul Belanger
paul.belan...@polybeacon.com wrote:
 I'm going to try and look at this during Astricon :)

Ok, just uploaded a new patch on
https://issues.asterisk.org/view.php?id=18202 Let me know if it
worked.

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-27 Thread Paul Belanger
On Tue, Oct 26, 2010 at 8:26 PM, Paul Belanger
paul.belan...@polybeacon.com wrote:
 I'm going to try and look at this during Astricon :)

Ok, just uploaded a new patch on
https://issues.asterisk.org/view.php?id=18202 Let me know if it
worked.

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-26 Thread Paul Belanger
On Sun, Oct 24, 2010 at 2:20 PM, Nic Colledge n...@njcolledge.net wrote:
 I made a debug log of the register and unregister process for a single Zoiper 
 client using IAX and have emailed it direct to you.
 The error shows in the file as:
 [Oct 24 19:07:32] ERROR[1403] netsock2.c: getnameinfo(): ai_family not 
 supported

I'm going to try and look at this during Astricon :)

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-24 Thread Nic Colledge
Paul,
Further to my last, I think I found another small related issue with IAX which 
is generating the following error:
[Oct 24 14:42:12] ERROR[15589]: netsock2.c:94 ast_sockaddr_stringify_fmt: 
getnameinfo(): ai_family not supported
To reproduce this issue, setup a phone in iax.conf or your realtime table, goto 
Zoiper press register in the Preferences / IAX Account.
The phone will register correctly when your patch is applied.
Then press unregister in Zoiper.
On my realtime peers the error then shows up on the console, but for my static 
iax.conf peers it does not.
If you then do a iax2 show peers on the console, the error is displayed. 
Notice that the value for Host in the command output is a empty string 
(example below).
Name/UsernameHost Mask Port  Status
111  (D)  255.255.255.255  0 Unmonitored

Initially (for static iax.conf peers) before registration this value is null 
and does not cause the error to be displayed on a iax2 show peers command 
(example below). So I'm guessing that somewhere on un-registration this is set 
to  when it should be set to null.
Name/UsernameHost Mask Port  Status
111  (null)  (D)  255.255.255.255  0 Unmonitored

Thanks,
Nic.
-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Nic Colledge
Sent: 24 October 2010 14:31
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.8 IAX Registration

Paul,
I applied your patch to 1.8.0 and I'm happy to report it has fixed the problem 
I was experiencing.
Thanks again.
Nic.
-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paul Belanger
Sent: 23 October 2010 22:06
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.8 IAX Registration

On Sat, Oct 23, 2010 at 3:03 PM, Paul Belanger paul.belan...@polybeacon.com 
wrote:
 Okay, just reproduced your issue and looking at the code now. :)

Ok, think I fixed it.  You can either apply this patch to 1.8.0, or svn update 
the branch I'm working on.  Feedback is welcome.

--
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-24 Thread Paul Belanger
On Sun, Oct 24, 2010 at 10:06 AM, Nic Colledge n...@njcolledge.net wrote:
 Further to my last, I think I found another small related issue with IAX 
 which is generating the following error:

Do you mind collecting a debug log [1]?  Having some issues reproducing this.

[1] 
http://svn.asterisk.org/svn/asterisk/trunk/doc/HOWTO_collect_debug_information.txt

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-24 Thread Nic Colledge
Paul,
I made a debug log of the register and unregister process for a single Zoiper 
client using IAX and have emailed it direct to you.
The error shows in the file as:
[Oct 24 19:07:32] ERROR[1403] netsock2.c: getnameinfo(): ai_family not supported

Thanks,
Nic.
-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paul Belanger
Sent: 24 October 2010 18:40
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.8 IAX Registration

On Sun, Oct 24, 2010 at 10:06 AM, Nic Colledge n...@njcolledge.net wrote:
 Further to my last, I think I found another small related issue with IAX 
 which is generating the following error:

Do you mind collecting a debug log [1]?  Having some issues reproducing this.

[1] 
http://svn.asterisk.org/svn/asterisk/trunk/doc/HOWTO_collect_debug_information.txt

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-23 Thread Olivier
What happens without using Realtime ?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-23 Thread Nic Colledge
Sorry forgot to add this into my initial email.

The same happens with phones configured in iax.conf and the Realtime database 
table.

[Oct 23 16:49:52] ERROR[1220]: chan_iax2.c:8770 update_registry: Bad address 
cast to IPv4 etc.

Nic.

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Olivier
Sent: 23 October 2010 16:07
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.8 IAX Registration

What happens without using Realtime ?
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-23 Thread Paul Belanger
On Sat, Oct 23, 2010 at 11:53 AM, Nic Colledge n...@njcolledge.net wrote:
 Sorry forgot to add this into my initial email.
 The same happens with phones configured in iax.conf and the Realtime
 database table.

https://issues.asterisk.org/view.php?id=18183

I was able to reproduce a problem with realtime IAX2 yesterday, do you
mind trying the branch listed on the issue tracker.

Also, please post a copy of your iax2.conf file that will reproduce
the issue (mask any passwords).

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-23 Thread Nic Colledge
Paul,
Thanks for your reply, I saw that issue on the tracker when I was trying to 
find a solution earlier but it looked completely different so I didn't give it 
much thought.
This happens on my install with both Realtime phones and those configured in 
iax.conf
I have just tried the branch you suggested and the problem remains. It's worse 
with qualify=yes but still happens (albeit less frequently) with qualify=no.

My iax.conf general section:
[general]
bindport=4569
bindaddr=0.0.0.0
srvlookup=yes
jitterbuffer=no
forcejitterbuffer=no
context=default
rtcachefriends=yes
rtautoclear=yes

A typicall iax.conf user:
[111]
type=friend
auth=md5
host=dynamic
context=internal
mailbox=111
accountcode=IAX/111
disallow=all
allow=ulaw
allow=alaw
allow=g729
requirecalltoken=auto
qualify=yes
secret=secret111

Thanks again,
Nic.
-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Paul Belanger
Sent: 23 October 2010 17:58
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk 1.8 IAX Registration

On Sat, Oct 23, 2010 at 11:53 AM, Nic Colledge n...@njcolledge.net wrote:
 Sorry forgot to add this into my initial email.
 The same happens with phones configured in iax.conf and the Realtime
 database table.

https://issues.asterisk.org/view.php?id=18183

I was able to reproduce a problem with realtime IAX2 yesterday, do you
mind trying the branch listed on the issue tracker.

Also, please post a copy of your iax2.conf file that will reproduce
the issue (mask any passwords).

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-23 Thread Paul Belanger
On Sat, Oct 23, 2010 at 1:48 PM, Nic Colledge n...@njcolledge.net wrote:
 I have just tried the branch you suggested and the problem remains. It's 
 worse with qualify=yes but still happens (albeit less frequently) with 
 qualify=no.

Okay, just reproduced your issue and looking at the code now. :)

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Asterisk 1.8 IAX Registration

2010-10-23 Thread Paul Belanger
On Sat, Oct 23, 2010 at 3:03 PM, Paul Belanger
paul.belan...@polybeacon.com wrote:
 Okay, just reproduced your issue and looking at the code now. :)

Ok, think I fixed it.  You can either apply this patch to 1.8.0, or
svn update the branch I'm working on.  Feedback is welcome.

-- 
Paul Belanger | dCAP
Polybeacon | Consultant
Jabber: paul.belan...@polybeacon.com | IRC: pabelanger (Freenode) |
Blog: http://blog.polybeacon.com | Twitter: http://twitter.com/pabelanger
Index: channels/chan_iax2.c
===
--- channels/chan_iax2.c	(revision 292862)
+++ channels/chan_iax2.c	(working copy)
@@ -8700,7 +8700,7 @@
 		peercnt_modify(0, 0, p-addr);
 
 		/* Stash the IP address from which they registered */
-		memcpy(p-addr, sin, sizeof(p-addr));
+		ast_sockaddr_from_sin(p-addr, sin);
 
 		snprintf(data, sizeof(data), %s:%d:%d, ast_inet_ntoa(sin-sin_addr), ntohs(sin-sin_port), p-expiry);
 		if (!ast_test_flag64(p, IAX_TEMPONLY)  sin-sin_addr.s_addr) {
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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