Help! Problem with bxfer (transfert calls)

Hello!
If users make internal calls is ok!
If user has incoming call from VoIP provider, he counldn’t make a bxfer (transfert call to anothet user) use “*2” combination. Asterisk doesn’t make anything.

---------------VOIP provider peer
[RTK]
type=friend
host=...14
deny=0.0.0.0/0
permit=
.
.**.14/32
;pridialplan=natioanl
;prilocaldialplan=national
context=rostelekom
ignoresdpversion=yes
t38pt_udptl=no
;faxdetect=yes
nat=yes
;pedantic=yes
insecure=invite
qualify=yes
disallow=all
allow=alaw
allow=ulaw
dtmfmode=auto
;dtmfmode=rfc2833
canreinvite=yes
qualify=yes
language=ru

-----------------------------sip.conf
ip-phones-internal-rus-1
type=friend
context=internal-users
host=dynamic
secret=******
language=ru
;limitonpeers = yes
;dtmfmode=auto
dtmfmode = rfc2833
canreinvite = no
insecure = invite,port
disallow=all
allow=alaw
allow=gsm
allow=g729
allow=g723

1117
context=mgmn-users
callerid = **
mailbox=**
;callgroup=49
;pickupgroup=49
qualify=yes

-----------extension.conf (from VOIP provider to intermal phone)
[line-445896]
exten => 445896,1,Verbose(1, To extension ${EXTEN})
same => n, Ringing()
same => n, Wait(1)
same => n, Answer()
same => n, Set(__MY_CALL_ID=${UNIQUEID})
same => n, Set(__INITIAL_CALLERID=${CALLERID(num)})
same => n, Set(CALLFILE=${STRFTIME(${EPOCH},%Y-%m-%d/%H-%M-%S)}${INITIAL_CALLERID}${MY_CALL_ID}${CALLERID(num)}${EXTEN})
same => n, Set(monopt=nice -n 19 /usr/bin/lame -b 16 -f --silent “/var/spool/asterisk/monitor/${CALLFILE}.wav” “/var/spool/asterisk/monitor/${CALLFILE}.mp3” && rm -f “/var/spool
same => n, Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
same => n, Set(CDR(transfer_callid)=${MY_CALL_ID})
same => n, Set(CDR(monitor_file)=${CALLFILE})
same => n, Set(CDR(initial_Callerid)=${INITIAL_CALLERID})
same => n, MixMonitor(${CALLFILE}.wav,b,${monopt})
same => n, Dial(SIP/1117,30,m(default),hktL(3600000:180000:60000));
same => n, Verbose(2,Call From ${CALLERID(num)} to Extension ${MACRO_EXTEN} with Dialstatus as ${DIALSTATUS})
same => n, Goto(${DIALSTATUS})
same => n, Hangup()
same => n(NOANSWER),Playback(abonent&ne-otvechaet)
same => n, Read(Secret,vm-leavemsg,2)
same => n, Gotoif($[”${Secret}" = “5”]?Voicemail:Off)
same => n,Hangup()
same => n(CONGESTION),PlayBack(cannot-complete-as-dialed)
same => n, Read(Secret,vm-leavemsg,2)
same => n, Gotoif($["${Secret}" = “5”]?Voicemail:Off)
same => n,HangUp()
same => n(CHANUNAVAIL),PlayBack(cannot-complete-as-dialed)
same => n, Read(Secret,vm-leavemsg,2)
same => n, Gotoif($["${Secret}" = “5”]?Voicemail:Off)
same => n,HangUp()
same => n(BUSY),PlayBack(all-circuits-busy-now)
same => n, Read(Secret,vm-leavemsg,2)
same => n, Gotoif($["${Secret}" = “5”]?Voicemail:Off)
same => n(Off), Playback(vm-goodbye)
same => n,HangUp()

---------------------------------------CLI log

  1. If user makes internal call:
    [Apr 5 10:31:44] DTMF[10592]: channel.c:4066 __ast_read: DTMF begin ‘’ received on SIP/1117-00023ab8
    [Apr 5 10:31:44] DTMF[10592]: channel.c:4076 __ast_read: DTMF begin passthrough '
    ’ on SIP/1117-00023ab8
    – Nobody picked up in 10000 ms
    [Apr 5 10:31:44] DTMF[10592]: channel.c:3981 __ast_read: DTMF end ‘’ received on SIP/1117-00023ab8, duration 160 ms
    [Apr 5 10:31:44] DTMF[10592]: channel.c:4021 __ast_read: DTMF end accepted with begin '
    ’ on SIP/1117-00023ab8
    [Apr 5 10:31:44] DTMF[10592]: channel.c:4050 __ast_read: DTMF end passthrough ‘*’ on SIP/1117-00023ab8
    – Executing [781539@from-vtk:17] Dial(“SIP/vtk-781539-00023abc”, “SIP/1302,10,hHkKtTL(3600000:180000:60000)”) in new stack
    > Limit Data for this call:
    > timelimit = 3600000 ms (3600.000 s)
    > play_warning = 180000 ms (180.000 s)
    > play_to_caller = yes
    > play_to_callee = no
    > warning_freq = 60000 ms (60.000 s)
    > start_sound =
    > warning_sound = timeleft
    > end_sound =
    == Using SIP RTP CoS mark 5
    – Called SIP/1302
    == Extension Changed 1302[lab] new state Ringing for Notify User 1010
    – SIP/1302-00023abe is ringing
    [Apr 5 10:31:44] DTMF[10592]: channel.c:4066 __ast_read: DTMF begin ‘2’ received on SIP/1117-00023ab8
    [Apr 5 10:31:44] DTMF[10592]: channel.c:4076 __ast_read: DTMF begin passthrough ‘2’ on SIP/1117-00023ab8
    == End MixMonitor Recording SIP/1292-00023a8d
    [Apr 5 10:31:45] DTMF[10592]: channel.c:3981 __ast_read: DTMF end ‘2’ received on SIP/1117-00023ab8, duration 110 ms
    [Apr 5 10:31:45] DTMF[10592]: channel.c:4021 __ast_read: DTMF end accepted with begin ‘2’ on SIP/1117-00023ab8
    [Apr 5 10:31:45] DTMF[10592]: channel.c:4050 __ast_read: DTMF end passthrough ‘2’ on SIP/1117-00023ab8
    – Started music on hold, class ‘default’, on SIP/stargate-00023ab9
    – <SIP/1117-00023ab8> Playing ‘pbx-transfer.alaw’ (language ‘ru’)

  2. If user have incoming call
    – Called SIP/1117
    – Started music on hold, class ‘default’, on SIP/RTK-00023adf
    – SIP/1117-00023ae0 is ringing
    – SIP/1117-00023ae0 answered SIP/RTK-00023adf
    – Stopped music on hold on SIP/RTK-00023adf
    [Apr 5 10:34:08] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin ‘’ received on SIP/1117-00023ae0
    [Apr 5 10:34:08] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:3981 __ast_read: DTMF end ‘’ received on SIP/1117-00023ae0, duration 180 ms
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4050 __ast_read: DTMF end passthrough ‘’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin ‘2’ received on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:3981 __ast_read: DTMF end ‘2’ received on SIP/1117-00023ae0, duration 60 ms
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4036 __ast_read: DTMF end ‘2’ detected to have actual duration 49 on the wire, emulation will be triggered on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4043 __ast_read: DTMF end ‘2’ has duration 49 but want minimum 80, emulating on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4143 __ast_read: DTMF end emulation of ‘2’ queued on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin '
    ’ received on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough ‘’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:3981 __ast_read: DTMF end '
    ’ received on SIP/1117-00023ae0, duration 130 ms
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin ‘’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4050 __ast_read: DTMF end passthrough '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin ‘2’ received on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:3981 __ast_read: DTMF end ‘2’ received on SIP/1117-00023ae0, duration 70 ms
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4036 __ast_read: DTMF end ‘2’ detected to have actual duration 59 on the wire, emulation will be triggered on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4043 __ast_read: DTMF end ‘2’ has duration 59 but want minimum 80, emulating on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4143 __ast_read: DTMF end emulation of ‘2’ queued on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin ‘’ received on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:3981 __ast_read: DTMF end ‘’ received on SIP/1117-00023ae0, duration 120 ms
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:09] DTMF[10720]: channel.c:4050 __ast_read: DTMF end passthrough ‘’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin ‘2’ received on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:3981 __ast_read: DTMF end ‘2’ received on SIP/1117-00023ae0, duration 90 ms
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4050 __ast_read: DTMF end passthrough ‘2’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin '
    ’ received on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough ‘’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:3981 __ast_read: DTMF end '
    ’ received on SIP/1117-00023ae0, duration 120 ms
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin ‘’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4050 __ast_read: DTMF end passthrough '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4066 __ast_read: DTMF begin ‘’ received on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4076 __ast_read: DTMF begin passthrough '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:3981 __ast_read: DTMF end ‘’ received on SIP/1117-00023ae0, duration 60 ms
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4021 __ast_read: DTMF end accepted with begin '
    ’ on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4036 __ast_read: DTMF end ‘’ detected to have actual duration 49 on the wire, emulation will be triggered on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4043 __ast_read: DTMF end '
    ’ has duration 49 but want minimum 80, emulating on SIP/1117-00023ae0
    [Apr 5 10:34:10] DTMF[10720]: channel.c:4143 __ast_read: DTMF end emulation of ‘*’ queued on SIP/1117-00023ae0

THANK YOU!

Spurious “,” in options.

I can not understand where the error occurred. In the setting of the peer [RTK] or [line-445896] ? Thank you!

Change the below line

same => n, Dial(SIP/1117,30,m(default),hktL(3600000:180000:60000));

as

same => n, Dial(SIP/1117,30,mhktL(3600000:180000:60000));

It’s ok! Thank you!