<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi everybody, <BR>
<BR>
I'm having a problem with some of my DAHDI Trunks, it is a strange thing, above is the output of the core show channels command:<BR>
<BR>
Channel Location State Application(Data) <BR>
<BR>
DAHDI/11-1 ~~s~~@dial_dahdi:15 Up Dial(DAHDI/12/ 91162109,120,"T <BR>
DAHDI/12-1 (None) Up AppDial((Outgoing Line)) <BR>
<BR>
As you can see, there is one line calling using another one, these two lines don't have any relation. This problem occurred with another PABX systems in this same machine, (Disc-Os, Trixbox, etc), now it's running FreeBSD and Asterisk manually configured.<BR>
<BR>
<BR>
When this problem occurs, i have to log into my system, and run a manual hangup request.<BR>
<BR>
Here is the macro I use to call through DAHDI channels:<BR>
<BR>
macro dial_dahdi(trunks,number) {<BR>
<BR>
Set(__TRANSFER_CONTEXT=ramais);<BR>
<BR>
Verbose(2,"==> Chamando a MACRO dial_dahdi - macros.ael <==");<BR>
Verbose(4,"====> Macro dial_dahdi -> Iniciando macro dial_dahdi...");<BR>
<BR>
Verbose(4,"====> Macro dial_dahdi -> Verificando qual tronco do grupo ${trunks} esta disponivel.");<BR>
<BR>
ChanIsAvail(${trunks},s);<BR>
<BR>
FromExt=${CALLERID(num)};<BR>
<BR>
Verbose(4,"====> Macro dial_dahdi -> Verificando se existe algum tronco disponivel para a discagem...");<BR>
<BR>
if ("${AVAILORIGCHAN}" != "") {<BR>
<BR>
Verbose(4,"====> Macro dial_dahdi -> AVAILORIGCHAN: ${AVAILORIGCHAN}");<BR>
<BR>
Verbose(2,"==> Macro dial_dahdi -> Chamada externa de: ${FromExt} para ${number}");<BR>
<BR>
System(/bin/sh /var/spool/asterisk/calllog/log.sh ${FromExt} ${number} TO-DAHDI);<BR>
<BR>
Verbose(4,"====> Macro dial_dahdi -> SYSTEMSTATUS: ${SYSTEMSTATUS}");<BR>
<BR>
Dial(${AVAILORIGCHAN}/${number},${DAHDI_DIAL_TIMEOUT},${DAHDI_DIAL_OPTIONS});<BR>
<BR>
Hangup();<BR>
}<BR>
else {<BR>
Verbose(2,"==> Macro dial_dahdi -> Nenhum dos canais do grupo ${trunks} esta disponivel.");<BR>
Verbose(4,"====> Macro dial_dahdi -> Finalizando macro dial_dahdi.");<BR>
Playback(all-circuits-busy-now);<BR>
Hangup();<BR>
};<BR>
<BR>
return;<BR>
<BR>
};<BR>
<BR>
If somebody knows what can cause this, I'll be thankful.<BR>
<BR>
Regards.<BR>
<BR>
</BODY>
</HTML>