List Info

Thread: Unable to reset default ring on 'Zap/1-1'




Unable to reset default ring on 'Zap/1-1'
country flaguser name
United States
2007-04-19 22:30:57
---------------
Hi,

I actually have a use for custom ringing now that my wife
& I are dropping
our cell phones--I want to let the phone ring and drop to
V-mail if it's for
my wife.  Custom ring pattern was applied fine, but it never
reverts to
default ring.  I added a little debug, and the problem is
that the
invocation of ZT_SETCADENCE tries to flag default ring by
passing a NULL
pointer.  But FreeBSD's ioctl() handling verifies the arg as
a valid memory
pointer and tries to copy it in before any Zaptel code gets
invoked.  Of
course, a copy from NULL fails, and the ioctl() fails with
EFAULT.

So unless somebody has already fixed this, I guess I'll go
add a
ZT_SETCADENCE_DEFAULT command with no arg, and change
zt_chan.c to use that
for resetting the cadence.  After it works OK, I'll post a
patch here for
somebody with commit access to put into the BSD port of the
driver.

BTW, a workaround is to use explicitly ring cadence #1,
which sounds almost
identical to the default anyway.

Regards,
Andy Valencia
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd

Re: Unable to reset default ring on 'Zap/1-1'
user name
2007-04-20 01:41:26
On Thu, 19 Apr 2007 20:30:57 -0700 (PDT), Andy Valencia
wrote:

> So unless somebody has already fixed this, I guess I'll
go add a
> ZT_SETCADENCE_DEFAULT command with no arg, and change
zt_chan.c to use
> that for resetting the cadence.  After it works OK,
I'll post a patch
> here for somebody with commit access to put into the
BSD port of the
> driver.

excellent, sounds good. email the patch to me and i'll
commit it in.

-- 
Regards,                           /_/   "All dogs go
to heaven."
dineshalphaque.com                (0 0)   http://www.openmalay
siablog.com/
+==========================----oOO--(_)--OOo----============
==============+
| for a in past present future; do                          
             |
|   for b in clients employers associates relatives
neighbours pets; do   |
|   echo "The opinions here in no way reflect the
opinions of my $a $b."  |
| done; done                                                
             |
+===========================================================
==============+
_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSDlists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )