[asterisk-r2] Hangup Response Too Long
M. Fauzi R.
fauzi_roeli at gratika.co.id
Tue Jul 26 08:57:50 CDT 2016
I have sangoma card A104 with this configuration,
from telco :
incoming is using R2 ( span 1)
and outgoing is using ISDN PRI ( span 2).
chan_dahdi.conf :
[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
;callgroup=1
;pickupgroup=1
immediate=no
;Sangoma A104 port 1 [slot:4 bus:130 span:1] <wanpipe1>
;context=PCOXX
;group=0
;echocancel=yes
;faxdetect=incoming
;signalling=em
;channel => 1-31
group=1,16
context=from-pstn
signalling=mfcr2
mfcr2_variant=id
mfcr2_get_ani_first=no
mfcr2_max_ani=15
mfcr2_max_dnis=5
mfcr2_category=national_priority_subscriber
mfcr2_call_files=yes
mfcr2_logdir=span1
mfcr2_logging=all
mfcr2_mfback_timeout=-1
mfcr2_metering_pulse_timeout=-1
mfcr2_skip_category=no
mfcr2_allow_collect_calls=no
mfcr2_double_answer=no
channel => 1-15,17-31
;Sangoma A104 port 2 [slot:4 bus:130 span:2] <wanpipe2>
group=2,47
switchtype=euroisdn
context=PCOXX
group=2
echocancel=yes
faxdetect=incoming
signalling=pri_cpe
channel =>32-46,48-62
extension.custom.conf :
[PCOXX]
exten => 12066,1,Answer()
exten => 12066,n,Verbose(CALLERID = ${CALLERID(num)})
exten => 12066,n,Set(TIMESTARTED=${STRFTIME(${EPOCH},,%Y-%m-%d)}
${STRFTIME(${EPOCH},,%H:%M:%S)})
exten => 12066,n,AGI(tecclite/inccall.agi)
[PCOXX-DIAL]
exten => _X,1,Read(tmp,tecclite/v1,14)
exten => _X,n,set(BNUM=${tmp})
exten => _X,n,set(CALLID=${UNIQUEID})
exten => _X,n,set(SHARED(__timeanswered)=0)
exten => _X,n,set(SHARED(__timeanswered_string)=${TIMESTARTED})
exten => _X,n,System(/usr/bin/php
/var/lib/asterisk/agi-bin/tecclite/set_bnum.php '${CALLERID(num)}'
'${BNUM}' '${UNIQUEID}')
exten =>
_X,n,Dial(DAHDI/g2/${BNUM},90,TWHgRU(GOSUB-SETTIMEANSWERED^${CHANNEL}))
include => PCOXX-HANGUP
[PCOXX-UNREGISTERED]
exten => s,1,Playback(busy)
exten => s,n,Busy(10)
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}')
exten => s,n,Hangup()
[PCOXX-LIMIT_BALANCE]
exten => s,1,Playback(tecclite/v3)
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}')
exten => s,n,Hangup()
[PCOXX-LIMIT_TIME_BEFORE]
exten => s,1,Playback(tecclite/v4)
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}')
exten => s,n,Hangup()
[PCOXX-LIMIT_TIME_AFTER]
exten => s,1,Playback(tecclite/v5)
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}')
exten => s,n,Hangup()
[PCOXX-HANGUP]
exten => h,1,Verbose(${DIALSTATUS})
exten => h,n,Set(TIMEDISCONNECT=${STRFTIME(${EPOCH},,%s)})
exten => h,n,Set(TIMEANSWERED_STRING=${SHARED(timeanswered_string)})
exten => h,n,Verbose(CDR(start) = ${CDR(start)})
exten => h,n,Verbose(CDR(duration) = ${CDR(duration)})
exten => h,n,Verbose(CDR(billsec) = ${CDR(billsec)})
exten => h,n,Verbose(CDR(src) = ${CDR(src)})
exten => h,n,Verbose(CDR(dst) = ${CDR(dst)})
exten => h,n,Verbose(CDR(dstchannel) = ${CDR(dstchannel)})
exten => h,n,Verbose(CDR(disposition) = ${CDR(disposition)})
exten => h,n,Verbose(BNUM = ${BNUM})
exten => h,n,Verbose(CALLID = ${CALLID})
exten => h,n,Verbose(UNIQUEID = ${UNIQUEID})
exten => h,n,Verbose(HANGUPCAUSE = ${HANGUPCAUSE})
exten => h,n,Verbose(TIMESTARTED = ${TIMESTARTED})
exten => h,n,Verbose(TIMEANSWERED = ${SHARED(timeanswered)})
exten => h,n,Verbose(TIMEANSWERED_STRING = ${TIMEANSWERED_STRING})
exten => h,n,Set(callstarttime=${SHARED(timeanswered)})
;exten => h,n,Set(callendtime=${TIMEDISCONNECT})
exten => h,n,Set(callendtime=${IF($[ ${callstarttime} =
0]?0:${TIMEDISCONNECT})})
exten => h,n,Set(duration=$[${callendtime}-${callstarttime}])
exten => h,n,Verbose(DURATION CALL ${duration})
;exten => h,n,System(/usr/bin/php
/var/lib/asterisk/agi-bin/tecclite/endcall.php '${TIMEANSWERED_STRING}'
'${duration}' '${CDR(src)}' '${BNUM}' '${DIALSTATUS}' '${UNIQUEID}'
'${HANGUPCAUSE}')
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}')
exten => h,n,Verbose(UPDATE DEPOSIT)
exten => h,n,Hangup()
[GOSUB-SETTIMEANSWERED]
;exten => s,1,Verbose(GOSUB BEFORE SET timeanswered
${SHARED(timeanswered,${ARG1})} , timeanswered_string
${SHARED(timeanswered_string,${ARG1})})
exten => s,1,Set(SHARED(timeanswered,${ARG1})=${STRFTIME(${EPOCH},,%s)})
exten =>
s,n,Set(SHARED(timeanswered_string,${ARG1})=${STRFTIME(${EPOCH},,%Y-%m-%d)}
${STRFTIME(${EPOCH},,%H:%M:%S)})
;exten =>
s,n,Set(RECORDPATH=/home/tlite/log/voice/${STRFTIME(${EPOCH},,%Y)}/${STRFTIME(${EPOCH},,%m)}/${STRFTIME(${EPOCH},,%d)})
;exten =>
s,n,Set(RECORDFILENAME=${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)}_${ARG1})
;exten => s,n,Set(CDR(voicerecording)=${RECORDPATH}/${RECORDFILENAME})
;exten => s,n,Monitor(gsm,${RECORDPATH}/${RECORDFILENAME},m)
;exten => s,n,Verbose(GOSUB AFTER SET timeanswered
${SHARED(timeanswered,${ARG1})} , timeanswered_string
${SHARED(timeanswered_string,${ARG1})})
exten => s,n,Return()
On 26/07/2016 20:23, Mc GRATH Ricardo wrote:
> Hi
> Without detailed information is impossible to reply how to fix it.
> Mc GRATH Ricardo
> ________________________________________
> From: asterisk-r2-bounces at lists.digium.com [asterisk-r2-bounces at lists.digium.com] On Behalf Of M. Fauzi R. [fauzi_roeli at gratika.co.id]
> Sent: 26 July 2016 09:55
> To: asterisk-r2 at lists.digium.com
> 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 http://www.api-digital.com --
>
> asterisk-r2 mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-r2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-r2/attachments/20160726/88a74a09/attachment.html>
More information about the asterisk-r2
mailing list