<div dir="ltr"><span style="font-size:13px">Fala Pessoal blz?</span><div style="font-size:13px"><br></div><div style="font-size:13px">Estou estudando a implementação do chan_dongle e Não estou conseguindo obter as informações das variáveis do dongle.</div><div style="font-size:13px"><br></div><div style="font-size:13px">Meu cenário é o seguinte: </div><div style="font-size:13px">Linux: CentOS 6.6</div><div style="font-size:13px">Asterisk: 11.18</div><div style="font-size:13px">Driver Chan_Dongle: Huawei 3G Dongle Channel Driver, Version 1.1, Revision 16</div><div style="font-size:13px"><br></div><div style="font-size:13px">extensions.conf</div><div style="font-size:13px"><br></div><div style="font-size:13px"><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(213,59,211);background-color:rgb(0,0,0)">[from-teste]</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">exten =&gt; </span><span style="color:rgb(52,189,38)">_X.</span>,<span style="color:rgb(213,59,211)">1</span>,<span style="color:rgb(206,121,36)">Noop</span>( Inicio da Chamada )</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">same =&gt; n,<span style="color:rgb(206,121,36)">Noop</span>(NUM_A <span style="color:rgb(195,55,32)">${EXTEN}</span> )</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(195,55,32);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Noop</span><span style="color:rgb(255,251,0)">(</span>${NAME_OF_PROVIDER}<span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(195,55,32);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Noop</span><span style="color:rgb(255,251,0)">(</span>${IMEI_OF_DEVICE}<span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">same =&gt; n,<span style="color:rgb(206,121,36)">Dial</span>(Dongle/r1/<span style="color:rgb(195,55,32)">${EXTEN}</span>)</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">same =&gt; n,<span style="color:rgb(206,121,36)">Noop</span>( <span style="color:rgb(195,55,32)">${DIALSTATUS}</span>)</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(195,55,32);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Noop</span><span style="color:rgb(255,251,0)">( </span>${HANGUPCAUSE}<span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">same =&gt; n,<span style="color:rgb(206,121,36)">Hangup</span>()</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0);min-height:15px"><br></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(195,55,32);background-color:rgb(0,0,0)">exten =&gt; <span style="color:rgb(52,189,38)">h</span><span style="color:rgb(255,251,0)">,</span><span style="color:rgb(213,59,211)">1</span><span style="color:rgb(255,251,0)">,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(255,251,0)">(</span><span style="color:rgb(52,187,199)">CDR(userfield)</span><span style="color:rgb(255,251,0)">=REL.</span>ISDN<span style="color:rgb(255,251,0)">=</span>${HANGUPCAUSE}<span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(255,251,0)">(</span>CDR(NAME_OF_DEVICE)<span style="color:rgb(255,251,0)">=</span><span style="color:rgb(195,55,32)">${DONGLENAME}</span><span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(255,251,0)">(</span>CDR(NAME_OF_PROVIDE)<span style="color:rgb(255,251,0)">=</span><span style="color:rgb(195,55,32)">${DONGLEPROVIDER}</span><span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(255,251,0)">(</span>CDR(IMEI_OF_DEVICE)<span style="color:rgb(255,251,0)">=</span><span style="color:rgb(195,55,32)">${DONGLEIMEI}</span><span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(255,251,0)">(</span>CDR(IMSI_OF_SIMCARD)<span style="color:rgb(255,251,0)">=</span><span style="color:rgb(195,55,32)">${DONGLEIMSI}</span><span style="color:rgb(255,251,0)">)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(52,187,199);background-color:rgb(0,0,0)"><span style="color:rgb(255,251,0)">same =&gt; n,</span><span style="color:rgb(206,121,36)">Set</span><span style="color:rgb(255,251,0)">(</span>CDR(CNUM_NUMBER)<span style="color:rgb(255,251,0)">=</span><span style="color:rgb(195,55,32)">${DONGLENUMBER}</span><span style="color:rgb(255,251,0)">)</span></p></div><div style="font-size:13px"><span style="color:rgb(255,251,0)"><br></span></div><div style="font-size:13px"><br></div><div style="font-size:13px">dongle.conf</div><div style="font-size:13px"><br></div><div style="font-size:13px"><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(213,59,211);background-color:rgb(0,0,0)">[general]</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">interval</span><span style="color:rgb(255,251,0)">=15                     </span>; Number of seconds between trying to connect to devices</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0);min-height:15px"><br></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(213,59,211);background-color:rgb(0,0,0)">[defaults]</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">context</span><span style="color:rgb(255,251,0)">=nada                    </span>; context for incoming calls</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">group</span>=0                         <span style="color:rgb(83,48,225)">; calling group</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">rxgain</span><span style="color:rgb(255,251,0)">=0                        </span>; increase the incoming volume; may be negative</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">txgain</span><span style="color:rgb(255,251,0)">=0                        </span>; increase the outgoint volume; may be negative</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">autodeletesms</span><span style="color:rgb(255,251,0)">=yes               </span>; auto delete incoming sms</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">resetdongle</span><span style="color:rgb(255,251,0)">=yes                 </span>; reset dongle during initialization with ATZ command</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">u2diag</span><span style="color:rgb(255,251,0)">=-1                       </span>; set ^U2DIAG parameter on device (0 = disable everything except modem function) ; -1 not use ^U2DIAG command</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">usecallingpres</span><span style="color:rgb(255,251,0)">=yes              </span>; use the caller ID presentation or not</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">callingpres</span><span style="color:rgb(255,251,0)">=allowed_passed_screen </span>; set caller ID presentation          by default use default network settings</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">disablesms</span><span style="color:rgb(255,251,0)">=no                   </span>; disable of SMS reading from device when received</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">language</span><span style="color:rgb(255,251,0)">=en                     </span>; set channel default language</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">smsaspdu</span><span style="color:rgb(255,251,0)">=yes                    </span>; if &#39;yes&#39; send SMS in PDU mode, feature implementation incomplete and we strongly recommend say &#39;yes&#39;</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">mindtmfgap</span><span style="color:rgb(255,251,0)">=45                   </span>; minimal interval from end of previews DTMF from begining of next in ms</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">mindtmfduration</span><span style="color:rgb(255,251,0)">=80              </span>; minimal DTMF tone duration in ms</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">mindtmfinterval</span><span style="color:rgb(255,251,0)">=200             </span>; minimal interval between ends of DTMF of same digits in ms</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">callwaiting</span><span style="color:rgb(255,251,0)">=auto                </span>; if &#39;yes&#39; allow incoming calls waiting; by default use network settings</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">disable</span><span style="color:rgb(255,251,0)">=no                      </span>; OBSOLETED by initstate: if &#39;yes&#39; no load this device and just ignore this section</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">initstate</span><span style="color:rgb(255,251,0)">=start                 </span>; specified initial state of device, must be one of &#39;stop&#39; &#39;start&#39; &#39;remote&#39;</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">exten</span><span style="color:rgb(255,251,0)">=+1234567890               </span>; exten for start incoming calls, only in case of Subscriber Number not available!, also set to CALLERID(ndid)</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">dtmf</span><span style="color:rgb(255,251,0)">=relax                      </span>; control of incoming DTMF detection, possible values:</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0);min-height:15px"><br></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)">; discovered device</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(213,59,211);background-color:rgb(0,0,0)">[dc_8562_3823]<span style="color:rgb(255,251,0);background-color:rgb(230,230,0)">(defaults)</span></p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)">;audio=/dev/ttyUSB1</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(83,48,225);background-color:rgb(0,0,0)">;data=/dev/ttyUSB2</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">imei</span>=xxxxxxxxxxxxxx(imei suprimido para o topico)</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)"><span style="color:rgb(195,55,32)">imsi</span>=xxxxxxxxxxxxxx<span style="background-color:rgb(0,230,229)">(</span>imsi suprimido para o topico<span style="background-color:rgb(0,230,229)">)</span></p></div><div style="font-size:13px"><br></div><div style="font-size:13px">Resultado na cli</div><div style="font-size:13px"><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]   == Spawn extension (from-teste, 971101304, 6) exited non-zero on &#39;Console/dsp&#39;</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]     -- Executing [h@from-teste:1] <span style="color:rgb(52,187,199)">Set</span>(&quot;<span style="color:rgb(213,59,211)">Console/dsp</span>&quot;, &quot;<span style="color:rgb(213,59,211)">CDR(userfield)=REL.ISDN=16</span>&quot;) in new stack</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]     -- Executing [h@from-teste:2] <span style="color:rgb(52,187,199)">Set</span>(&quot;<span style="color:rgb(213,59,211)">Console/dsp</span>&quot;, &quot;<span style="color:rgb(213,59,211)">CDR(NAME_OF_DEVICE)=</span>&quot;) in new stack</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]     -- Executing [h@from-teste:3] <span style="color:rgb(52,187,199)">Set</span>(&quot;<span style="color:rgb(213,59,211)">Console/dsp</span>&quot;, &quot;<span style="color:rgb(213,59,211)">CDR(NAME_OF_PROVIDE)=</span>&quot;) in new stack</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]     -- Executing [h@from-teste:4] <span style="color:rgb(52,187,199)">Set</span>(&quot;<span style="color:rgb(213,59,211)">Console/dsp</span>&quot;, &quot;<span style="color:rgb(213,59,211)">CDR(IMEI_OF_DEVICE)=</span>&quot;) in new stack</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]     -- Executing [h@from-teste:5] <span style="color:rgb(52,187,199)">Set</span>(&quot;<span style="color:rgb(213,59,211)">Console/dsp</span>&quot;, &quot;<span style="color:rgb(213,59,211)">CDR(IMSI_OF_SIMCARD)=</span>&quot;) in new stack</p><p style="margin:0px;font-family:&#39;Andale Mono&#39;;color:rgb(255,251,0);background-color:rgb(0,0,0)">[2015-08-03 21:30:28]     -- Executing [h@from-teste:6] <span style="color:rgb(52,187,199)">Set</span>(&quot;<span style="color:rgb(213,59,211)">Console/dsp</span>&quot;, &quot;<span style="color:rgb(213,59,211)">CDR(CNUM_NUMBER)=</span>&quot;) in new stack</p></div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px">Está tudo funcionando corretamente e consigo enviar chamadas sem problema, mas quando tento utilizar as informações das variáveis elas aparecem com campo em branco ou NULL.</div><div style="font-size:13px"><br></div><div style="font-size:13px">Li apenas as informações oficiais no wiki:</div><div style="font-size:13px"><a href="http://wiki.e1550.mobi/doku.php?id=usage" target="_blank">http://wiki.e1550.mobi/doku.php?id=usage</a><br></div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px">Valeu Galera,</div><div style="font-size:13px">Abs</div><div style="font-size:13px">Artur M.</div></div>