[Asterisk-bsd] Re: One Way Audio
Jay Adelson
jay at adelson.org
Mon Nov 1 17:11:15 CST 2004
Tom,
Good news. This patch did the trick.
My current Asterisk box is also serving as my NAT, and I've had no
problems using IAX2, SIP, in any configuration so far. I have plenty
more testing to do but I thought I'd share the postive results.
NetBSD running smoothly...
Thanks,
-Jay
On Mon, Oct 18, 2004 at 12:21:00PM +0200, Tom Ivar Helbekkmo wrote:
> Tom Ivar Helbekkmo <tih at eunetnorge.no> writes:
>
> > I've submitted a new patch to Digium to reinstate the proper use of
> > the routing socket, and will be submitting a patch to the NetBSD
> > maintainers to make this feature actually work there. Meanwhile, what
> > you want is for the relevant bit of Asterisk's acl.c to look like this:
>
> One more change is needed, actually, because with just that one, and
> the NetBSD kernel fix, it only works the first time. :-) There's a
> hard coded '1' in acl.c that needs to be a reference to the sequence
> number used for the query. Change...
>
> do {
> l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
> } while (l > 0 && (m_rtmsg.m_rtm.rtm_seq != 1 || m_rtmsg.m_rtm.rtm_pid != pid));
>
> ...into...
>
> do {
> l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg));
> } while (l > 0 && (m_rtmsg.m_rtm.rtm_seq != seq || m_rtmsg.m_rtm.rtm_pid != pid));
>
> ...that is, just replace that '1' with 'seq', and it'll be OK. The
> submitted patch is updated; it (and the one for NetBSD) can be found
> in Mantis, in bug number 2668.
>
> -tih
> --
> Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway Hosting
> www.eunet.no T +47-22092958 M +47-93013940 F +47-22092901 FWD 484145
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
More information about the Asterisk-BSD
mailing list