<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Ok. now everything is well.</p>
    <p>Many thanks.</p>
    <p>Best Regards,</p>
    <p>M Fauzi Roelee<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 26/07/2016 20:57, M. Fauzi R. wrote:<br>
    </div>
    <blockquote
      cite="mid:582a56e3-258a-400a-ec17-9d53b9b92ec2@gratika.co.id"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <p>I have sangoma card A104 with this configuration,<br>
      </p>
      <p>from telco :<br>
      </p>
      <p>incoming is using R2 ( span 1) <br>
        and outgoing is using ISDN PRI ( span 2).</p>
      <p>chan_dahdi.conf :<br>
      </p>
      <p><font face="Courier New, Courier, monospace" size="-2">[trunkgroups]<br>
          <br>
          [channels]<br>
          context=default<br>
          usecallerid=yes<br>
          hidecallerid=no<br>
          callwaiting=yes<br>
          usecallingpres=yes<br>
          callwaitingcallerid=yes<br>
          threewaycalling=yes<br>
          transfer=yes<br>
          canpark=yes<br>
          cancallforward=yes<br>
          callreturn=yes<br>
          echocancel=yes<br>
          echocancelwhenbridged=yes<br>
          relaxdtmf=yes<br>
          rxgain=0.0<br>
          txgain=0.0<br>
          group=1<br>
          ;callgroup=1<br>
          ;pickupgroup=1<br>
          immediate=no<br>
          <br>
          <br>
          ;Sangoma A104 port 1 [slot:4 bus:130 span:1] <wanpipe1><br>
          ;context=PCOXX<br>
          ;group=0<br>
          ;echocancel=yes<br>
          ;faxdetect=incoming<br>
          ;signalling=em<br>
          ;channel => 1-31<br>
          <br>
          group=1,16<br>
          context=from-pstn<br>
          signalling=mfcr2<br>
          mfcr2_variant=id<br>
          mfcr2_get_ani_first=no<br>
          mfcr2_max_ani=15<br>
          mfcr2_max_dnis=5<br>
          mfcr2_category=national_priority_subscriber<br>
          mfcr2_call_files=yes<br>
          mfcr2_logdir=span1<br>
          mfcr2_logging=all<br>
          mfcr2_mfback_timeout=-1<br>
          mfcr2_metering_pulse_timeout=-1<br>
          mfcr2_skip_category=no<br>
          mfcr2_allow_collect_calls=no<br>
          mfcr2_double_answer=no<br>
          channel => 1-15,17-31<br>
        </font></p>
      <p><font face="Courier New, Courier, monospace" size="-2">;Sangoma
          A104 port 2 [slot:4 bus:130 span:2] <wanpipe2><br>
          group=2,47<br>
          switchtype=euroisdn<br>
          context=PCOXX<br>
          group=2<br>
          echocancel=yes<br>
          faxdetect=incoming<br>
          signalling=pri_cpe<br>
          channel =>32-46,48-62<br>
        </font></p>
      <p>extension.custom.conf :</p>
      <p><font face="Courier New, Courier, monospace" size="-2">[PCOXX]<br>
          <br>
          exten => 12066,1,Answer()<br>
          exten => 12066,n,Verbose(CALLERID = ${CALLERID(num)})<br>
          exten =>
          12066,n,Set(TIMESTARTED=${STRFTIME(${EPOCH},,%Y-%m-%d)}
          ${STRFTIME(${EPOCH},,%H:%M:%S)})<br>
          exten => 12066,n,AGI(tecclite/inccall.agi)<br>
          <br>
          [PCOXX-DIAL]<br>
          <br>
          exten => _X,1,Read(tmp,tecclite/v1,14)<br>
          exten => _X,n,set(BNUM=${tmp})<br>
          exten => _X,n,set(CALLID=${UNIQUEID})<br>
          exten => _X,n,set(SHARED(__timeanswered)=0)<br>
          exten =>
          _X,n,set(SHARED(__timeanswered_string)=${TIMESTARTED})<br>
          exten => _X,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/set_bnum.php
          '${CALLERID(num)}' '${BNUM}' '${UNIQUEID}')<br>
          exten =>
          _X,n,Dial(DAHDI/g2/${BNUM},90,TWHgRU(GOSUB-SETTIMEANSWERED^${CHANNEL}))<br>
          <br>
          include => PCOXX-HANGUP<br>
          <br>
          [PCOXX-UNREGISTERED]<br>
          <br>
          exten => s,1,Playback(busy)<br>
          exten => s,n,Busy(10)<br>
          exten => s,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/statistik.php
          '${STRFTIME(${EPOCH},,%Y-%m-%d)}
          ${STRFTIME(${EPOCH},,%H:%M:%S)}' '0' '${CDR(src)}' ''
          'UNREGISTERED' '${UNIQUEID}' '${HANGUPCAUSE}')<br>
          exten => s,n,Hangup()<br>
          <br>
          [PCOXX-LIMIT_BALANCE]<br>
          <br>
          exten => s,1,Playback(tecclite/v3)<br>
          exten => s,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/statistik.php
          '${STRFTIME(${EPOCH},,%Y-%m-%d)}
          ${STRFTIME(${EPOCH},,%H:%M:%S)}' '0' '${CDR(src)}' ''
          'LIMITBALANCE' '${UNIQUEID}' '${HANGUPCAUSE}')<br>
          exten => s,n,Hangup()<br>
          <br>
          [PCOXX-LIMIT_TIME_BEFORE]<br>
          <br>
          exten => s,1,Playback(tecclite/v4)<br>
          exten => s,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/statistik.php
          '${STRFTIME(${EPOCH},,%Y-%m-%d)}
          ${STRFTIME(${EPOCH},,%H:%M:%S)}' '0' '${CDR(src)}' ''
          'LIMITTIMEBEFORE' '${UNIQUEID}' '${HANGUPCAUSE}')<br>
          exten => s,n,Hangup()<br>
          <br>
          [PCOXX-LIMIT_TIME_AFTER]<br>
          <br>
          exten => s,1,Playback(tecclite/v5)<br>
          exten => s,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/statistik.php
          '${STRFTIME(${EPOCH},,%Y-%m-%d)}
          ${STRFTIME(${EPOCH},,%H:%M:%S)}' '0' '${CDR(src)}' ''
          'LIMITTIMEAFTER' '${UNIQUEID}' '${HANGUPCAUSE}')<br>
          exten => s,n,Hangup()<br>
        </font><br>
        <br>
        <font face="Courier New, Courier, monospace" size="-2">[PCOXX-HANGUP]<br>
          <br>
          exten => h,1,Verbose(${DIALSTATUS})<br>
          exten => h,n,Set(TIMEDISCONNECT=${STRFTIME(${EPOCH},,%s)})<br>
          exten =>
          h,n,Set(TIMEANSWERED_STRING=${SHARED(timeanswered_string)})<br>
          exten => h,n,Verbose(CDR(start) = ${CDR(start)})<br>
          exten => h,n,Verbose(CDR(duration) = ${CDR(duration)})<br>
          exten => h,n,Verbose(CDR(billsec) = ${CDR(billsec)})<br>
          exten => h,n,Verbose(CDR(src) = ${CDR(src)})<br>
          exten => h,n,Verbose(CDR(dst) = ${CDR(dst)})<br>
          exten => h,n,Verbose(CDR(dstchannel) = ${CDR(dstchannel)})<br>
          exten => h,n,Verbose(CDR(disposition) =
          ${CDR(disposition)})<br>
          exten => h,n,Verbose(BNUM = ${BNUM})<br>
          exten => h,n,Verbose(CALLID = ${CALLID})<br>
          exten => h,n,Verbose(UNIQUEID = ${UNIQUEID})<br>
          exten => h,n,Verbose(HANGUPCAUSE = ${HANGUPCAUSE})<br>
          exten => h,n,Verbose(TIMESTARTED = ${TIMESTARTED})<br>
          exten => h,n,Verbose(TIMEANSWERED =
          ${SHARED(timeanswered)})<br>
          exten => h,n,Verbose(TIMEANSWERED_STRING =
          ${TIMEANSWERED_STRING})<br>
          exten => h,n,Set(callstarttime=${SHARED(timeanswered)})<br>
          ;exten => h,n,Set(callendtime=${TIMEDISCONNECT})<br>
          exten => h,n,Set(callendtime=${IF($[ ${callstarttime} =
          0]?0:${TIMEDISCONNECT})})<br>
          exten =>
          h,n,Set(duration=$[${callendtime}-${callstarttime}])<br>
          exten => h,n,Verbose(DURATION CALL ${duration})<br>
          ;exten => h,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/endcall.php
          '${TIMEANSWERED_STRING}' '${duration}' '${CDR(src)}' '${BNUM}'
          '${DIALSTATUS}' '${UNIQUEID}' '${HANGUPCAUSE}')<br>
          exten => h,n,System(/usr/bin/php
          /var/lib/asterisk/agi-bin/tecclite/endcall.php
          '${TIMEANSWERED_STRING}' '${duration}' '${CDR(src)}' '${BNUM}'
          '${CDR(disposition)}' '${UNIQUEID}' '${HANGUPCAUSE}')<br>
          exten => h,n,Verbose(UPDATE DEPOSIT)<br>
          exten => h,n,Hangup()<br>
          <br>
          [GOSUB-SETTIMEANSWERED]<br>
          ;exten => s,1,Verbose(GOSUB BEFORE SET timeanswered
          ${SHARED(timeanswered,${ARG1})} , timeanswered_string
          ${SHARED(timeanswered_string,${ARG1})})<br>
          exten =>
          s,1,Set(SHARED(timeanswered,${ARG1})=${STRFTIME(${EPOCH},,%s)})<br>
          exten =>
s,n,Set(SHARED(timeanswered_string,${ARG1})=${STRFTIME(${EPOCH},,%Y-%m-%d)}
          ${STRFTIME(${EPOCH},,%H:%M:%S)})<br>
          <br>
          ;exten =>
s,n,Set(RECORDPATH=/home/tlite/log/voice/${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%d)})<br>
          ;exten =>
          s,n,Set(RECORDFILENAME=${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}_${ARG1})<br>
          ;exten =>
          s,n,Set(CDR(voicerecording)=${RECORDPATH}/${RECORDFILENAME})<br>
          ;exten =>
          s,n,Monitor(gsm,${RECORDPATH}/${RECORDFILENAME},m)<br>
          <br>
          ;exten => s,n,Verbose(GOSUB AFTER SET timeanswered
          ${SHARED(timeanswered,${ARG1})} , timeanswered_string
          ${SHARED(timeanswered_string,${ARG1})})<br>
          exten => s,n,Return()<br>
        </font><br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 26/07/2016 20:23, Mc GRATH Ricardo
        wrote:<br>
      </div>
      <blockquote
cite="mid:B2987561A4BA1940A4D998FEFD648D1C0142C670B993@MBX101.ad2.softcom.biz"
        type="cite">
        <pre wrap="">Hi 
Without detailed information is impossible to reply how to fix it.
Mc GRATH Ricardo
________________________________________
From: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:asterisk-r2-bounces@lists.digium.com">asterisk-r2-bounces@lists.digium.com</a> [<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:asterisk-r2-bounces@lists.digium.com">asterisk-r2-bounces@lists.digium.com</a>] On Behalf Of M. Fauzi R. [<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:fauzi_roeli@gratika.co.id">fauzi_roeli@gratika.co.id</a>]
Sent: 26 July 2016 09:55
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:asterisk-r2@lists.digium.com">asterisk-r2@lists.digium.com</a>
Subject: [asterisk-r2] Hangup Response Too Long

Hi all,

I have problem in how to hangup incoming call , it's repsonse too long
to end the channel.
How to fix this ?

thankyou.

Roelee

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --

asterisk-r2 mailing list
To UNSUBSCRIBE or update options visit:
   <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-r2">http://lists.digium.com/mailman/listinfo/asterisk-r2</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>