Summary:ASTERISK-08213: unexpected ringtone
Reporter:Wolfgang Hamann (musicman)Labels:
Date Opened:2006-11-29 14:52:43.000-0600Date Closed:2007-03-05 14:20:24.000-0600
Versions:Frequency of
Environment:Attachments:( 0) verbosedebug.txt
( 1) verbosedebug.txt2
Description:external call is connected to phone A (iax device)
A manager redirect moves E and A into a conference, kicks A from the conference,
and originates a call from A to B (another iax phone). When B picks up, the call is connected - but A continues to hear ringing


I am trying to make better use of "phones" with only a "hook" switch, so all dialling etc has to be done via manager interface
Comments:By: Serge Vecher (serge-v) 2006-11-30 11:24:21.000-0600

please enable iax debug and post the relevant log here.

By: Wolfgang Hamann (musicman) 2006-12-01 13:50:00.000-0600

this is how the call gets to the phone:
exten => 669678,1,DBget(ansage=ansage/${CALLERIDNUM})
exten => 669678,2,Gotoif($["${ansage}" != ""]?3:6)
exten => 669678,3,Answer
exten => 669678,4,Playback(/var/lib/asterisk/ansagen/${ansage})
exten => 669678,5,Hangup
exten => 669678,6,DBput(redir/IAX2/wolfgang=${CHANNEL})
exten => 669678,7,DIAL(IAX2/wolfgang/${CALLERIDNUM},60,tr)
this is how the second phone is called:
[intern]exten => 45,1,Dial(IAX2/iaxcomm2,100,trg)
exten => 45,2,Cut(redirchan=CHANNEL,-,1)
exten => 45,3,DBGet(redir=redir/${redirchan})
exten => 45,4,NoOp(${DIALSTATUS})
exten => 45,5,Gotoif($["${redir}" != ""]?6:7)
exten => 45,6,AsyncGoto(${redir}|default|46)

By: Serge Vecher (serge-v) 2006-12-01 15:29:22.000-0600

We still need a debug log to see what's happening.
1) Make sure your logger.conf has the following line:
  console => notice,warning,error,debug
2) restart Asterisk with the following command:
  'asterisk -Tvvvvvdddddgc | tee /tmp/verbosedebug.txt'
3) Enable verbose/debug logging with the following CLI commands:
set debug 4
set verbose 4
4) Reproduce the problem
5) Attach verbosedebug.txt to the issue.

By: Joshua C. Colp (jcolp) 2006-12-04 14:02:17.000-0600

The 'r' option in your Dial line might be causing this as well. Is there a reason you have it?

By: Serge Vecher (serge-v) 2006-12-04 14:11:02.000-0600

also, I see than unsupported chan_capi is involved; chan_misdn is an official ISDN channel driver in Asterisk. Switch to chan_mISDN and if you are still able to reproduce the problem, please reopen the report with a new debug log attached. Thanks and good luck!

By: Wolfgang Hamann (musicman) 2006-12-05 17:16:54.000-0600

just to follow up: I changed the dial options from tr to t and also arranged for the call to come in via iax rather than isdn. The behaviour is still the same.
I have a new debug log
Of course, if there is a better way to achieve the original goal (transfer a call via manager interface) I would prefer that

By: Jason Parker (jparker) 2006-12-05 17:39:48.000-0600

You still have an 'r' here: exten => 45,1,Dial(IAX2/iaxcomm2,100,trg)

By: Wolfgang Hamann (musicman) 2006-12-06 00:10:34.000-0600

I just double-checked .. the 'r' is really gone from both extens that are used in the test

By: Serge Vecher (serge-v) 2006-12-06 10:03:27.000-0600

Yes, but you are still using chan_CAPI!!!
[Dec  5 20:55:04]     -- Executing �[1;36;40mAsyncGoto�[0;37;40m("�[1;35;40mIAX2/wolfgang-1�[0;37;40m", "�[1;35;40mCAPI/ISDN1/669678-1f|default|46�[0;37;40m") in new

Please download a clean Asterisk tarball and apply no chan_capi patches. Also, make sure you log the verbose output as well, as per note 556669

By: Wolfgang Hamann (musicman) 2006-12-06 17:14:12.000-0600

I have temporarily removed chan_capi (which does not patch asterisk and builds in its own directory) from modules.conf and the modules directory; the ringtone was still there, so this really does not seem to depend on the technology used for other calls
About chan_capi vs chan_misdn: I dont think misdn would work on this system without major upgrades (it runs a 2.4 kernal and various non-packaged software), so I will - at some time - setup and test a new system and use that opportunity for a change,

By: Serge Vecher (serge-v) 2007-01-09 13:22:27.000-0600

musicman: thanks, please produce a new log, now that you've removed chan_capi, also, please add "n" option when starting asterisk, so no color codes are recorded - makes the log easier to read. Thanks.

By: Wolfgang Hamann (musicman) 2007-01-11 23:41:43.000-0600

In the meantime I have found out that this behaviour is peculiar to a specific phone (iaxcomm softphone); an iax hardphone works normally

By: Joshua C. Colp (jcolp) 2007-02-13 19:43:13.000-0600

If you would still like to approach this it might be useful to see an iax2 debug with iaxcomm involved.

By: Serge Vecher (serge-v) 2007-03-05 14:20:23.000-0600

please reopen if still reproducible with 1.2.16 and you are able to provide debugging information as requested.