I'm trying to produce some enhancements to one of the applications,
and am trying to use ast_request("zap", format, "pseudo") to create
a new channel on /dev/zap/pseudo, which I can then bind to a zaptel
conference and play a stream to it.

I've been using as inspiration the Radio Repeater app, app_rpt.c,
which uses this technique to play idents and announcements.

Unfortunately, I can't get it to work. In chan_zap.c, having called
zt_request(), it decides that the zt_pvt for my X100P card is a
sufficient match for the request, which terminates the search loop
and then fails later tests.

There should be special processing for CHAN_PSEUDO, but by the time
zt_request gets to the test (p->channel == CHAN_PSEUDO) around line
8524 of chan_zap.c, the p returned by available() has channel==1.

I suspect a bug in the function available().

Could anyone knowledgable in this area advise? Thanks!

Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to