Cann't call to encrypted phone

Hi,
I have some problem. I’m testing TLS/SRTP

  • softphone Blink
  • created CA, certificate for asterisk, certificate for peer 4000;
  • in sip_general_additional.conf i add
    tlsenable=yes
    tlsbindaddr=my -pbx_ip:5061
    tlscertfile=/etc/asterisk/keys/asterisk.pem
    tlscafile=/etc/asterisk/keys/ca.crt
    tlscadir=/etc/asterisk/keys
    tlsprivetkey=/etc/asterisk/keys/asterisk.key
    tlscipher=ALL
    tlsclientmethod=tlsv1
  • sip-additional.conf
    [4000]
    deny=0.0.0.0/0.0.0.0
    secret=…
    dtmfmode=rfc2833
    canreinvite=yes
    context=from-internal
    host=dynamic
    trustrpid=yes
    mediaencryption=sdes
    sendrpid=pai
    type=friend
    nat=no
    port=5061
    qualify=yes
    qualifyfreq=60
    transport=tls
    avpf=no
    force_avp=no
    icesupport=no
    encryption=no
    dial=SIP/4000
    permit=0.0.0.0/0.0.0.0
    callerid=…
    callcounter=yes
    cc_monitor_policy=generic
    I can make call from this extension, but not to it.
    Any ideas?

If you need more information, telll me please…

changing anything in sip_general_additional.conf will be at best transient , please read the top few lines of that file.

Full file sip_general_additional.conf

accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=dpma_message_context
faxdetect=no
vmexten=*97
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=FPBX-12.0.72(11.15.0)
disallow=all
allow=alaw
tlsenable=yes
tlsbindaddr=10.100.5.2:5061
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
tlsclientmethod=tlsv1
tlsdontverifyserver=yes
tlsprivetkey=/etc/asterisk/keys/asterisk.key
tlscadir=/etc/asterisk/keys/
tcpenable=yes
transport=yes
insecure=invite
callevents=yes
rtpend=20000
rtpstart=10000
language=ru
bindport=5060
jbenable=no
srvlookup=no
registerattempts=0
defaultexpiry=120
minexpiry=60
allowguest=yes
maxexpiry=3600
registertimeout=60
rtpholdtimeout=300
g726nonstandard=no
videosupport=no
maxcallbitrate=384
canreinvite=yes
rtptimeout=30
rtpkeepalive=0
checkmwi=10
notifyhold=yes
notifyringing=yes
nat=no
ALLOW_SIP_ANON=no
localnet=0.0.0.0
localnet=0.0.0.0

I make changes in this file from GUI.

Generally that will be because you keys are wrong or have the wrong ownership/permissions but are you sure about your
posted configuration :-

localnet=0.0.0.0
localnet=0.0.0.0

?

I delete localnet=, when posted this conf.
they are described in like localnet=10.10.10.10/24

Then check the veracity of your keys ownership and permissions, many hits there for you in google land.

This is log when i’m trying make call to extension with TLS/SRTP

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] GotoIf(“SIP/3154-0000004c”, “1?ext-local,4000,1”) in new stack
– Goto (ext-local,4000,1)
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] Macro(“SIP/3154-0000004c”, “exten-vm,novm,4000,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“SIP/3154-0000004c”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “TOUCH_MONITOR=1436962875.78”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “AMPUSER=3154”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/3154-0000004c”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/3154-0000004c”, “1?Set(REALCALLERIDNUM=3154)”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “AMPUSER=3154”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/3154-0000004c”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/3154-0000004c”, “AMPUSERCIDNAME=TEST”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/3154-0000004c”, “0?report”) in new stack
– Executing [[email protected]:9] Set(“SIP/3154-0000004c”, “AMPUSERCID=3154”) in new stack
– Executing [[email protected]:10] Set(“SIP/3154-0000004c”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:11] Set(“SIP/3154-0000004c”, “CALLERID(all)=“TEST” <3154>”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/3154-0000004c”, “0?limit”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/3154-0000004c”, “0?Set(GROUP(concurrency_limit)=3154)”) in new stack
– Executing [[email protected]:14] GosubIf(“SIP/3154-0000004c”, “7?sub-ccss,s,1(macro-exten-vm,4000)”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/3154-0000004c”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “CCSS_SETUP=TRUE”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/3154-0000004c”, “0?monitor_config,1(macro-exten-vm,4000):monitor_default,1(macro-exten-vm,4000)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/3154-0000004c”, “1?is_exten”) in new stack
– Goto (sub-ccss,monitor_default,4)
– Executing [[email protected]:4] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(cc_monitor_policy)=generic”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(cc_max_monitors)=5”) in new stack
– Executing [[email protected]:6] Return(“SIP/3154-0000004c”, “TRUE”) in new stack
– Executing [[email protected]:4] GosubIf(“SIP/3154-0000004c”, “7?agent_config,1():agent_default,1()”) in new stack
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(cc_agent_policy)=generic”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(cc_offer_timer)=30”) in new stack
– Executing [[email protected]:3] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(ccbs_available_timer)=”) in new stack
– Executing [[email protected]:4] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(ccnr_available_timer)=”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(cc_callback_macro)=ccss-default”) in new stack
[2015-07-15 15:21:15] WARNING[18122][C-0000002e]: ccss.c:1000 ast_set_cc_callback_macro: Usage of cc_callback_macro is deprecated. Please use cc_callback_sub instead.
– Executing [[email protected]:6] ExecIf(“SIP/3154-0000004c”, “1?Set(CALLCOMPLETION(cc_recall_timer)=)”) in new stack
– Executing [[email protected]:7] ExecIf(“SIP/3154-0000004c”, “1?Set(CALLCOMPLETION(cc_max_agents)=)”) in new stack
– Executing [[email protected]:8] ExecIf(“SIP/3154-0000004c”, “0?Set(CALLCOMPLETION(cc_agent_dialstring)=Local/[email protected])”) in new stack
– Executing [[email protected]:9] Set(“SIP/3154-0000004c”, “CALLCOMPLETION(cc_callback_macro)=ccss-default”) in new stack
[2015-07-15 15:21:15] WARNING[18122][C-0000002e]: ccss.c:1000 ast_set_cc_callback_macro: Usage of cc_callback_macro is deprecated. Please use cc_callback_sub instead.
– Executing [[email protected]:10] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “DB(AMPUSER/3154/ccss/last_number)=4000”) in new stack
– Executing [[email protected]:6] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/3154-0000004c”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/3154-0000004c”, “0?continue”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/3154-0000004c”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:18] Set(“SIP/3154-0000004c”, “__TTL=64”) in new stack
– Executing [[email protected]:19] GotoIf(“SIP/3154-0000004c”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,30)
– Executing [[email protected]:30] Set(“SIP/3154-0000004c”, “CALLERID(number)=3154”) in new stack
– Executing [[email protected]:31] Set(“SIP/3154-0000004c”, “CALLERID(name)=TEST”) in new stack
– Executing [[email protected]:32] Set(“SIP/3154-0000004c”, “CDR(cnum)=3154”) in new stack
– Executing [[email protected]:33] Set(“SIP/3154-0000004c”, “CDR(cnam)=TEST”) in new stack
– Executing [[email protected]:34] Set(“SIP/3154-0000004c”, “CHANNEL(language)=ru”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“SIP/3154-0000004c”, “__EXTTOCALL=4000”) in new stack
– Executing [[email protected]:4] Set(“SIP/3154-0000004c”, “__PICKUPMARK=4000”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “RT=”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/3154-0000004c”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
– Executing [[email protected]:7] ExecIf(“SIP/3154-0000004c”, “0?MacroExit()”) in new stack
– Executing [[email protected]:8] Gosub(“SIP/3154-0000004c”, “sub-record-check,s,1(exten,4000,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/3154-0000004c”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/3154-0000004c”, “NOW=1436962875”) in new stack
– Executing [[email protected]:4] Set(“SIP/3154-0000004c”, “__DAY=15”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “__MONTH=07”) in new stack
– Executing [[email protected]:6] Set(“SIP/3154-0000004c”, “__YEAR=2015”) in new stack
– Executing [[email protected]:7] Set(“SIP/3154-0000004c”, “__TIMESTR=20150715-152115”) in new stack
– Executing [[email protected]:8] Set(“SIP/3154-0000004c”, “__FROMEXTEN=3154”) in new stack
– Executing [[email protected]:9] Set(“SIP/3154-0000004c”, “__MON_FMT=alaw”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/3154-0000004c”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/3154-0000004c”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/3154-0000004c”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/3154-0000004c”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/3154-0000004c”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/3154-0000004c”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“SIP/3154-0000004c”, “Exten Recording Check between 3154 and 4000”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “CALLTYPE=internal”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/3154-0000004c”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/3154-0000004c”, “CALLEE=no”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/3154-0000004c”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/3154-0000004c”, “0?callee”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/3154-0000004c”, “0?caller”) in new stack
– Executing [[email protected]:8] ExecIf(“SIP/3154-0000004c”, “2?Set(CALLER_PRI=10):Set(CALLER_PRI=0)”) in new stack
– Executing [[email protected]:9] ExecIf(“SIP/3154-0000004c”, “2?Set(CALLEE_PRI=10):Set(CALLEE_PRI=0)”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/3154-0000004c”, “1?caller:callee”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [[email protected]:13] Set(“SIP/3154-0000004c”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/3154-0000004c”, “0?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/3154-0000004c”, “1?Set(RECMODE=no)”) in new stack
– Executing [[email protected]:16] Gosub(“SIP/3154-0000004c”, “recordcheck,1(no,internal,4000)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/3154-0000004c”, “Starting recording check against no”) in new stack
– Executing [[email protected]:2] Goto(“SIP/3154-0000004c”, “no”) in new stack
– Goto (sub-record-check,recordcheck,12)
– Executing [[email protected]:12] Set(“SIP/3154-0000004c”, “__REC_POLICY_MODE=NO”) in new stack
– Executing [[email protected]:13] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:17] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/3154-0000004c”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,15)
– Executing [[email protected]:15] GosubIf(“SIP/3154-0000004c”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:16] Macro(“SIP/3154-0000004c”, “dial-one,Ttr,4000”) in new stack
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “DEXTEN=4000”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]one:3] GosubIf(“SIP/3154-0000004c”, “0?screen,1()”) in new stack
– Executing [[email protected]:4] GosubIf(“SIP/3154-0000004c”, “0?cf,1()”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/3154-0000004c”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“SIP/3154-0000004c”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/3154-0000004c”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“SIP/3154-0000004c”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/3154-0000004c”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [[email protected]:23] GotoIf(“SIP/3154-0000004c”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [[email protected]:24] ExecIf(“SIP/3154-0000004c”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [[email protected]:25] GotoIf(“SIP/3154-0000004c”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“SIP/3154-0000004c”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “DEVICES=4000”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/3154-0000004c”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/3154-0000004c”, “0?Set(DEVICES=000)”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“SIP/3154-0000004c”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“SIP/3154-0000004c”, “THISDIAL=SIP/4000”) in new stack
– Executing [[email protected]:8] GosubIf(“SIP/3154-0000004c”, “1?zap2dahdi,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/3154-0000004c”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/3154-0000004c”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“SIP/3154-0000004c”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“SIP/3154-0000004c”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“SIP/3154-0000004c”, “THISPART2=SIP/4000”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/3154-0000004c”, “0?Set(THISPART2=DAHDI/4000)”) in new stack
– Executing [[email protected]:7] Set(“SIP/3154-0000004c”, “NEWDIAL=SIP/4000&”) in new stack
– Executing [[email protected]:8] Set(“SIP/3154-0000004c”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/3154-0000004c”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“SIP/3154-0000004c”, “THISDIAL=SIP/4000”) in new stack
– Executing [[email protected]:11] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/3154-0000004c”, “1?doset”) in new stack
– Goto (macro-dial-one,dstring,12)
– Executing [[email protected]:12] Set(“SIP/3154-0000004c”, “DSTRING=SIP/4000&”) in new stack
– Executing [[email protected]:13] Set(“SIP/3154-0000004c”, “ITER=2”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/3154-0000004c”, “0?begin”) in new stack
– Executing [[email protected]:15] Set(“SIP/3154-0000004c”, “DSTRING=SIP/4000”) in new stack
– Executing [[email protected]:16] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/3154-0000004c”, “0?nodial”) in new stack
– Executing [[email protected]:28] GotoIf(“SIP/3154-0000004c”, “0?skiptrace”) in new stack
– Executing [[email protected]:29] GosubIf(“SIP/3154-0000004c”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “DB(CALLTRACE/4000)=3154”) in new stack
– Executing [[email protected]:2] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:30] Set(“SIP/3154-0000004c”, “D_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:31] ExecIf(“SIP/3154-0000004c”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [[email protected]:32] ExecIf(“SIP/3154-0000004c”, “0?SIPAddHeader()”) in new stack
– Executing [[email protected]:33] ExecIf(“SIP/3154-0000004c”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:34] GosubIf(“SIP/3154-0000004c”, “0?qwait,1()”) in new stack
– Executing [[email protected]:35] Set(“SIP/3154-0000004c”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:36] Set(“SIP/3154-0000004c”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:37] GotoIf(“SIP/3154-0000004c”, “0?usegoto,1”) in new stack
– Executing [[email protected]:38] GotoIf(“SIP/3154-0000004c”, “0?godial”) in new stack
– Executing [[email protected]:39] Gosub(“SIP/3154-0000004c”, “sub-presencestate-display,s,1(4000)”) in new stack
– Executing [[email protected]:1] Goto(“SIP/3154-0000004c”, “state-available,1”) in new stack
– Goto (sub-presencestate-display,state-available,1)
– Executing [[email protected]:1] Set(“SIP/3154-0000004c”, “PRESENCESTATE_DISPLAY=(Available)”) in new stack
– Executing [[email protected]:2] Return(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:40] Set(“SIP/3154-0000004c”, “CONNECTEDLINE(name,i)=Test2(Available)”) in new stack
– Executing [[email protected]:41] Set(“SIP/3154-0000004c”, “CONNECTEDLINE(num)=4000”) in new stack
– Executing [[email protected]:42] Set(“SIP/3154-0000004c”, “D_OPTIONS=TtrI”) in new stack
– Executing [[email protected]:43] Macro(“SIP/3154-0000004c”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:44] Dial(“SIP/3154-0000004c”, “SIP/4000,TtrI”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/4000
– Connected line update to SIP/3154-0000004c prevented.
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:45] ExecIf(“SIP/3154-0000004c”, “0?MacroExit()”) in new stack
– Executing [[email protected]:46] ExecIf(“SIP/3154-0000004c”, “0?Set(DIALSTATUS=)”) in new stack
– Executing [[email protected]:47] GosubIf(“SIP/3154-0000004c”, “0?s-CHANUNAVAIL,1()”) in new stack
– Executing [[email protected]:48] MacroExit(“SIP/3154-0000004c”, “”) in new stack
– Executing [[email protected]:17] Set(“SIP/3154-0000004c”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:18] GosubIf(“SIP/3154-0000004c”, “0?docfu,1()”) in new stack
– Executing [[email protected]:19] GosubIf(“SIP/3154-0000004c”, “0?docfb,1()”) in new stack
– Executing [[email protected]:20] Set(“SIP/3154-0000004c”, “DIALSTATUS=CHANUNAVAIL”) in new stack
– Executing [[email protected]:21] ExecIf(“SIP/3154-0000004c”, “0?MacroExit()”) in new stack
– Executing [[email protected]:22] GotoIf(“SIP/3154-0000004c”, “1?s-CHANUNAVAIL,1”) in new stack
– Goto (macro-exten-vm,s-CHANUNAVAIL,1)
– Executing [[email protected]:1] GotoIf(“SIP/3154-0000004c”, “0?exit,1”) in new stack
– Executing [[email protected]:2] PlayTones(“SIP/3154-0000004c”, “congestion”) in new stack
– Executing [[email protected]:3] Congestion(“SIP/3154-0000004c”, “10”) in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on ‘SIP/3154-0000004c’ in macro ‘exten-vm’
== Spawn extension (ext-local, 4000, 2) exited non-zero on ‘SIP/3154-0000004c’
– Executing [[email protected]:1] Macro(“SIP/3154-0000004c”, “hangupcall,”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/3154-0000004c”, “0?Set(CDR(recordingfile)=.alaw)”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/3154-0000004c”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [[email protected]:4] Hangup(“SIP/3154-0000004c”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/3154-0000004c’ in macro ‘hangupcall’
== Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/3154-0000004c’

Problem was solved.
Dicko, thank you for your help!!!