[Asterisk-Dev] Seg Fault with chan_local
Brancaleoni Matteo
mbrancaleoni at espia.it
Tue Sep 30 12:23:04 MST 2003
Hi.
I'm running * cvs 10/09/2003 .
I'm trying to do a sort of webcall app, where
I put a file in /var/spool/asterisk/outgoing/ to generate
the call.
I want to dial an operator, showing him a caller id
composed from the web page, and when the operator
answers, call the number that wants to be called.
Here's my 'sample.call'
Channel: Local/operator at webcall ; my operator
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Context: webcall
Extension: 01234566 ; number to be called
Priority: 1
Callerid: WEBCALL <01234566>
and my webcall context:
[webcall]
include => outerworld
exten => operator,1,Dial(Local/33 at interni,10,m)
exten => operator,2,Hangup
[outerworld]
exten => _0XX.,1,Dial(Zap/g2/${EXTEN:1})
exten => _0XX.,2,Hangup
I use chan_local, since call spooling works by calling the
number and then connecting to an ext.
What I wanna do is to go to an exten, do some stuff (agi),
and if answered go on with my call.
So specifying Local/blah as channel does the trick.
my exten gets called, some agi is done (in [interni] context),
and an operator answers. now it's connected with Extension 0123456,
prio 1 in the webcall context (matched thanks to [outerworld] context).
That sort of 'nested local' seems to work, but sometimes I get
a seg fault.
is that an error, or I'm doing that in a 'strange way' ;) ?
here's the bt:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 80976 (LWP 3911)]
0x08056386 in ast_queue_frame (chan=0x81439b8, fin=0x50cfec1c, lock=0)
at channel.c:368
368 cur = chan->pvt->readq;
(gdb) bt
#0 0x08056386 in ast_queue_frame (chan=0x81439b8, fin=0x50cfec1c,
lock=0)
at channel.c:368
#1 0x0805b611 in ast_channel_masquerade (original=0x81439b8,
clone=0x817c970)
at channel.c:1875
#2 0x41efa196 in check_bridge (p=0x80fba90, isoutbound=1) at
chan_local.c:143
#3 0x41efa41a in local_write (ast=0x8182c98, f=0x80fc0e4) at
chan_local.c:178
#4 0x080583ea in ast_write (chan=0x8182c98, fr=0x80fc0e4) at
channel.c:1386
#5 0x0805a53e in ast_channel_bridge (c0=0x8182c98, c1=0x817c970,
flags=0,
fo=0x50cfee64, rc=0x50cfee68) at channel.c:2277
#6 0x4002c4c3 in ast_bridge_call (chan=0x8182c98, peer=0x817c970,
allowredirect_in=0, allowredirect_out=0, allowdisconnect=0)
at res_parking.c:224
#7 0x41e9ed27 in dial_exec (chan=0x8182c98, data=0x50cff6fc) at
app_dial.c:668
#8 0x08060eb6 in pbx_exec (c=0x8182c98, app=0x80cf440, data=0x50cff6fc,
newstack=1) at pbx.c:396
#9 0x08062a9a in pbx_extension_helper (c=0x8182c98,
context=0x8182dec "interni", exten=0x8182ee0 "33", priority=2,
callerid=0x8184540 "WEBCALL <3351306730>", action=1) at pbx.c:1151
#10 0x0806373e in ast_pbx_run (c=0x8182c98) at pbx.c:1635
#11 0x080696af in pbx_thread (data=0x8182c98) at pbx.c:1856
#12 0x4003afaf in pthread_start_thread () from /lib/i686/libpthread.so.0
#13 0x4003b09f in pthread_start_thread_event () from
/lib/i686/libpthread.so.0
(gdb)
--
Brancaleoni Matteo <mbrancaleoni at espia.it>
Espia - Emmegi Srl
More information about the asterisk-dev
mailing list