<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de balão Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodebaloChar
        {mso-style-name:"Texto de balão Char";
        mso-style-priority:99;
        mso-style-link:"Texto de balão";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=PT-BR link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal><span lang=EN-US>I posted this message to user list but got
no answer… Maybe here someone can help me, or apply this code to trunk.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>There´s a way to get the channel signalling
in dialplan?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I have changed the code in
channels/chan_dahdi.c and include:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><
} else if
(!strcasecmp(data, "signalling")) {<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><
ast_mutex_lock(&p->lock);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><
snprintf(buf, len, "%s", sig2str(p->sig));<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><
ast_mutex_unlock(&p->lock);<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>those lines on dahdi_func_read and works
perfect, but wanna know if there is a way without touch in code.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>So in dialplan I can use:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten =>
s,n,GotoIf($["${CHANNEL(channeltype)}"="DAHDI"]?:end)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten =>
s,n,GotoIf($["${CHANNEL(signalling)}"="MFC/R2"]? mfcr2)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten =>
s,n,GotoIf($["${CHANNEL(signalling)}"="ISDN PRI"]? isdnpri)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>exten => s,n,GotoIf($["${CHANNEL(signalling)}"="FXS
Kewlstart"]? fxskewstart)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left
style='border-collapse:collapse;margin-left:5.4pt'>
<tr>
<td width=144 rowspan=2 style='width:108.0pt;border:none;border-right:solid #999999 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal align=center style='text-align:center;mso-element:frame;
mso-element-frame-hspace:7.65pt;mso-element-wrap:around;mso-element-anchor-vertical:
paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly'><span
style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#1F497D'><img
width=120 height=47 id="Imagem_x0020_1"
src="cid:image001.png@01CB5BD8.E4E0C370"></span><b><span style='font-size:
8.0pt;font-family:"Tahoma","sans-serif";color:gray'><o:p></o:p></span></b></p>
</td>
<td width=401 style='width:300.6pt;border:none;border-bottom:solid #999999 1.0pt;
padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='mso-margin-top-alt:3.0pt;margin-right:0cm;
margin-bottom:3.0pt;margin-left:0cm;mso-element:frame;mso-element-frame-hspace:
7.65pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;
mso-element-anchor-horizontal:column;mso-height-rule:exactly'><b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:gray'>Arnaldo
Giacomitti Junior</span></b><b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";
color:gray'> <br>
</span></b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";
color:gray'>Engenheiro de Desenvolvimento <b><br>
</b><a href="mailto:arnaldo.junior@cits.br"><span style='color:blue'>arnaldo.junior@cits.br</span></a><b><br>
</b>Tel. +55 41 3527-2785 - Ramal 222</span><span style='font-size:8.0pt;
font-family:"Tahoma","sans-serif";color:#1F497D'><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width=401 style='width:300.6pt;padding:0cm 5.4pt 0cm 5.4pt'>
<p class=MsoNormal style='mso-margin-top-alt:3.0pt;margin-right:0cm;
margin-bottom:3.0pt;margin-left:0cm;mso-element:frame;mso-element-frame-hspace:
7.65pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;
mso-element-anchor-horizontal:column;mso-height-rule:exactly'><b><span
style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:gray'>CITS -
Centro Internacional de Tecnologia de Software<br>
</span></b><span style='font-size:8.0pt;font-family:"Tahoma","sans-serif";
color:gray'>Rua Carneiro Lobo, 468 | 10º Andar | Batel<br>
CEP 80240-240 | Curitiba/PR – Brasil<b><br>
</b>Tel. +55 41 3527-2787<br>
<a href="http://www.cits.br/"><span style='color:blue'>www.cits.br</span></a></span><b><span
style='font-size:8.0pt;font-family:"Tahoma","sans-serif";color:gray'><o:p></o:p></span></b></p>
</td>
</tr>
</table>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>