[asterisk-bugs] [JIRA] (ASTERISK-29964) Faulty/incomplete sample code in Blog "Building a Channel Driver Part 1"

Benjamin Keith Ford (JIRA) noreply at issues.asterisk.org
Fri Mar 11 12:20:06 CST 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=258363#comment-258363 ] 

Benjamin Keith Ford commented on ASTERISK-29964:
------------------------------------------------

Feel free to open another ticket if you find anything else. I'll go ahead and close this one out.

> Faulty/incomplete sample code in Blog "Building a Channel Driver Part 1"
> ------------------------------------------------------------------------
>
>                 Key: ASTERISK-29964
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29964
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Documentation
>    Affects Versions: GIT
>            Reporter: Marcel Wagner
>
> Some code samples in the blog/article https://www.asterisk.org/building-a-channel-driver-part-1/ didn't seem to be working when just copying. 
> The first sample should end with ");" instead of "};".
> I think in the sixth sample, line 6 should be "struct ast_frame* ast_groovy_receive_frame()", i.e. the asterisk should be after ast_frame instead of being infront of it.
> The seventh sample (starts with #ifndef _ASTERISK_RES_GROOVY_H), should include a semicolon at the end of line 4.
> Also, it would be very helpful if the required header files where also be included in the samples to make following easier.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list