[asterisk-bugs] [Asterisk 0014118]: Asterisk crashes when calling more than a single location

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 19 15:01:33 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14118 
====================================================================== 
Reported By:                blitzrage
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   14118
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   crash
Priority:                   high
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 165955 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-19 14:36 CST
Last Modified:              2008-12-19 15:01 CST
====================================================================== 
Summary:                    Asterisk crashes when calling more than a single
location
Description: 
By doing something like the following, Asterisk crashes for me:

Dial(SIP/leifmadsen_desk&SIP/leifmadsen_laptop&SIP/leifmadsen_cell,30,o)
====================================================================== 

---------------------------------------------------------------------- 
 (0096731) blitzrage (administrator) - 2008-12-19 15:01
 http://bugs.digium.com/view.php?id=14118#c96731 
---------------------------------------------------------------------- 
[ivr]
exten => s,1,Verbose(1,Handling call in IVR from ${CALLERID(all)})
exten => s,n,Set(CALLERID(name)=LME:${CALLERID(name)})
exten => s,n,GoSub(setup_timeouts,s,1)
exten => s,n,Answer()
exten => s,n,Set(LOOP_SUPPRESSOR=1)
exten => s,n(start),Background(silence/1&custom/ivr_main)
exten => s,n,WaitExten()

exten => s,n,Verbose(1, No digits pressed... sending to operator)
exten => s,n,GoSub(sub-phones,s,1(100&101&61)
exten => s,n,Hangup()

exten => i,1,NoOp()
exten => i,n,Set(LOOP_SUPPRESSOR=$[${LOOP_SUPPRESSOR} + 1])
exten => i,n,ExecIf($[${LOOP_SUPPRESSOR} > 3]?NoOp():Playback(invalid))
exten => i,n,ExecIf($[${LOOP_SUPPRESSOR} >
3]?Playback(pls-wait-connect-call):NoOp())
exten => i,n,GoSubIf($[${LOOP_SUPPRESSOR} >
3]?sub-phones,s,1(100&101&61))
exten => i,n,Goto(s,start)


exten => 1,1,GoSub(sub-phones,s,1(100&101&61))
exten => 1,n,Hangup()



[setup_timeouts]
exten => s,1,NoOp()
exten => s,n,Set(TIMEOUT(digit)=3)
exten => s,n,Set(TIMEOUT(response)=12)
exten => s,n,Return()




;-- GoSub for handling internal calls --;
[sub-phones]
; ARG1: Extension numbers to dial separated by ampersands (&)
exten => s,1,NoOp()
exten => s,n,Set(EXT=${ARG1})
exten => s,n,GotoIf($[${ISNULL(${ARG1})}]?error)
exten => s,n,Set(PRIMARY_EXT=${CUT(EXT,&,1)})
exten => s,n,Set(PBX=${DB(system/pbx)})
exten => s,n,Set(X=1)

exten => s,n,While($[${EXISTS(${CUT(EXT,&,${X})})}])
exten => s,n,Set(CURR_EXT=${CUT(EXT,&,${X})})
exten => s,n,Set(USERNAME=${DB(phones/${CURR_EXT}/username)})
exten => s,n,Set(TECH=${DB(phones/${CURR_EXT}/tech)})
exten => s,n,GotoIf($[${ISNULL(${USERNAME})} | ${ISNULL(${TECH})}]?next)
exten =>
s,n,Set(DIALSTRING=${IF($[${ISNULL(${DIALSTRING})}]?${TECH}/${USERNAME}:${DIALSTRING}&${TECH}/${USERNAME})})
exten => s,n(next),NoOp()
exten => s,n,Set(X=$[${X} + 1])
exten => s,n,EndWhile()

exten => s,n,GotoIf($[${EXISTS(${DIALSTRING})}]?dial)
exten => s,n(error),Playback(an-error-has-occured)
exten => s,n,Return()

exten => s,n(dial),NoOp()
exten => s,n,Dial(${DIALSTRING},${G_DEFAULT_RING_CYCLE},o)
exten => s,n,GotoIf($["${CUT(DIALSTRING,/,3)}" = "6474483075"]?vm)
exten => s,n,Read(RESPONSE,custom/press-1-locate-2-vm,1)
exten => s,n,GotoIf($[${ISNULL(${RESPONSE})} | "${RESPONSE}" = "2"]?vm)
exten => s,n,Playback(pls-wait-connect-call)
exten => s,n,Dial(SIP/4164790259/6474483075,26,o)
exten => s,n(vm),Voicemail(${PRIMARY_EXT}@${PBX},${IF($["${DIALSTATUS}" =
"BUSY"]?b:u)})
exten => s,n,Hangup() 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-19 15:01 blitzrage      Note Added: 0096731                          
======================================================================




More information about the asterisk-bugs mailing list