[Asterisk-Dev] ast_smoother_feed frame.c

Michael Manousos manousos at inaccessnetworks.com
Tue Jul 1 11:04:30 MST 2003


Santosh Prasad wrote:
> Hello,
> 
> I would like to know what ast_smoother_feed function does in frame.c, I

This function, in combination with "ast_smoother_read", is used
to convert frames with different data lengths into
frames of one data length (that's the "smoother" part).

> am getting a seg fault while executing this function when the call is
> ini progress. what configuration affects these functions.
> 
> I am trying to call from SIP end point(ATA) -->H323 end point(ATA) using 
> Asterisk.
> 
> Segfault details
> 

Checking the backtrace, it seems that the "s" pointer is
corrupted, since it isn't NULL. It's a strange situation.
Try these from inside gdb, to get more info:

print *s
print *f


Michael.

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 426011 (LWP 23405)]
> ast_smoother_feed (s=0xd1240e0d, f=0x8101ff0) at frame.c:72
> 72              if (!s->format) {
> (gdb) bt
> #0  ast_smoother_feed (s=0xd1240e0d, f=0x8101ff0) at frame.c:72
> #1  0x408b893b in oh323_write (c=0x80faa38, f=0x8101ff0) at 
> chan_oh323.c:955
> #2  0x08057ffb in ast_write (chan=0x80faa38, fr=0x8101ff0) at 
> channel.c:1317
> #3  0x0805a3a1 in ast_channel_bridge (c0=0x8101ff0, c1=0x8101ff0, 
> flags=0, fo=0xbc5feeb4, rc=0xbc5feeb8)
>     at channel.c:2138
> #4  0x4022cc0e in ast_bridge_call (chan=0x810b3b0, peer=0x80faa38, 
> allowredirect=0, allowdisconnect=0)
>     at res_parking.c:207
> #5  0x40686f11 in dial_exec (chan=0x810b3b0, data=0x40687ffb) at 
> app_dial.c:640
> #6  0x0806051a in pbx_exec (c=0x810b3b0, app=0x407050f8, 
> data=0xbc5ff74c, newstack=1) at pbx.c:388
> #7  0x080673b8 in pbx_extension_helper (c=0x810b3b0, context=0xbc5ff74c 
> "OH323/BYEXTENSION",
>     exten=0x810b574 "4050", priority=1, callerid=0x80d9e78 "5011", 
> action=135312304) at pbx.c:1130
> #8  0x0806237c in ast_pbx_run (c=0x810b3b0) at pbx.c:1614
> #9  0x08067a71 in pbx_thread (data=0x80fe7c8) at pbx.c:1830
> #10 0x4002f463 in pthread_start_thread () from /lib/libpthread.so.0
> #11 0x4002f4df in pthread_start_thread_event () from 
> /lib/libpthread.so.0
> 
> 
> Please suggest what needs to be done.
> 
> Best
> 
> Santosh
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev





More information about the asterisk-dev mailing list