[Asterisk-Dev] ast_hangup
Brian West
brian.west at mac.com
Wed Mar 30 09:51:15 MST 2005
Try ast_softhangup
/b
On Mar 30, 2005, at 10:16 AM, Martin Bangiev wrote:
> Hi guys,
> I'm trying to write a simple application that hang's up the chanel in
> few seconds but I have a problem. When the application returns
> asterisk crashes with Segmentation Fault. Here is the source (pretty
> simple)
>
> static int myhangup_exec(struct ast_channel *chan, void *data) {
> struct localuser *u;
>
> LOCAL_USER_ADD(u);
> sleep(3);
> ast_hangup(chan);
> LOCAL_USER_REMOVE(u);
> return(0);
> }
>
> Can you pelase tell me what the proper use of ast_hangup is?
> Thanks in advance.
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list