# How to provide bug information for asterisk

**URL:** <https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854>\
**Category:** Asterisk Support\
**Created:** [September 4, 2008, 1:53am UTC](https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854 "2008-09-04T01:53:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![g2010](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@g2010](https://community.asterisk.org/u/g2010)\
**Post date:** [September 4, 2008, 1:53am UTC](https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854/1 "2008-09-04T01:53:12Z")

</div>

hello,  
i am currently working on tracking down a bug in asterisk which is causing my system to crash.

What I am wondering is: what is the properly protocol for configuring asterisk to help track down bugs so they can properly be submitted to the bug list.

I currently only have WARNING and ERROR messages going to my log and they don’t really provide any useful information. The last thing I see in my log is:

[Sep 3 18:56:34] WARNING[24221] channel.c: SIP/bw-077d3210 is already going to masquerade as Local/OFFHOOK@acd\_dial\_offhook-62e9,1

Followed immediately by a system restart.

Thanks for any information.

-G

---

<div class="post-metadata">

**Author:** ![davevg](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@davevg](https://community.asterisk.org/u/davevg)\
**Post date:** [September 4, 2008, 7:36pm UTC](https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854/2 "2008-09-04T19:36:51Z")

</div>

They will likely need a backtrace of the crash. Look in the \<\*source\>/doc/backtrace.txt for a mini how-to.

---

<div class="post-metadata">

**Author:** ![g2010](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@g2010](https://community.asterisk.org/u/g2010)\
**Post date:** [September 4, 2008, 8:15pm UTC](https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854/3 "2008-09-04T20:15:47Z")

</div>

thanks, looks to me like the only real preparation was to disable compiler optimization and recompile to ensure good info in the core dump. Guess it’s just a waiting game now.

my previous core dumps are totally useless, but i guess that’s to be expected with the compiler optimizing things.

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [September 4, 2008, 8:20pm UTC](https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854/4 "2008-09-04T20:20:23Z")

</div>

Hi

what version of \* is this ?

`SIP/bw-077d3210 is already going to masquerade as Local/OFFHOOK@acd_dial_offhook-62e9,1
`

Well that does tell you a fair bit realy, I would do a show dialplan OFFHOOK@acd\_dial\_offhook and see what the dialplan is as it seems to be a problem area.

and bug [bugs.digium.com/view.php?id=9549](http://bugs.digium.com/view.php?id=9549) does mention it. seems to be an issue with possibly transfers

Ian

---

<div class="post-metadata">

**Author:** ![g2010](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@g2010](https://community.asterisk.org/u/g2010)\
**Post date:** [September 5, 2008, 1:33pm UTC](https://community.asterisk.org/t/how-to-provide-bug-information-for-asterisk/22854/5 "2008-09-05T13:33:18Z")

</div>

The version of \* which crashed was 1.4.20.1. I have since upgraded to 1.4.21.2, i can’t say if the problem has gone away as I only upgraded last night. I don’t believe the dialplan is actually the problem as it is a sporadic crash. This context is run successfully hundreds or thousands of times before a crash actually occurs.

I have a fairly complex application which uses AMI redirects, FastAGI, and app\_conference. This is just a small piece of the puzzle. Basically we request a manager originate for a Local channel which lands in this context.

```auto
[acd_dial_offhook]
exten => OFFHOOK,1,Verbose(1,About to dial offhook agent)
exten => OFFHOOK,n,SipAddHeader(P-Charge-Info:"${p_charge}" <sip:${p_charge}@XX.XX.XX.XX>)
exten => OFFHOOK,n,Dial(${dial_string},${timeout},${options})
exten => OFFHOOK,n,Agi(agi://${AGI_HOST}/ACD_OffHookResultHandler.agi?dial_result=${DIALSTATUS}&message_id=${message_id})
exten => OFFHOOK,n,Verbose(1,Outbound Call Failed, Counting on OriginateResponse handler to clean up)
exten => OFFHOOK,n,Hangup()

exten => ANSWER,1,Agi(agi://${AGI_HOST}/ACD_OffHookResultHandler.agi?dial_result=ANSWER&message_id=${message_id})
exten => ANSWER,n,Playback(silence/5)
exten => ANSWER,n,GoTo(acd_call_hold,HOLD,1)
```

Thanks,  
G
