How to dissable macro-extcall

Good Day All,

This is my first post here, I need some guidance on how to disable a macro that runs when ever an agent wants to make an external call,

what happens is that when ever an external call is placed by an extension they are required to enter a password. i would like to have this feature dissabled

below is a copy of the log file.

[2020-04-13 09:41:00] VERBOSE[9537][C-00000037] netsock2.c:   == Using SIP RTP TOS bits 184
[2020-04-13 09:41:00] VERBOSE[9537][C-00000037] netsock2.c:   == Using SIP RTP CoS mark 5
[2020-04-13 09:41:00] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:1] Set("SIP/2051-00000060", "ORIG_EXTEN=0213714972") in new stack
[2020-04-13 09:41:00] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:2] Macro("SIP/2051-00000060", "extcall") in new stack
[2020-04-13 09:41:00] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:1] Answer("SIP/2051-00000060", "") in new stack
[2020-04-13 09:41:00] NOTICE[8376][C-00000037] res_rtp_asterisk.c: Unknown RTP codec 95 received from '192.168.0.21:45980'
[2020-04-13 09:41:00] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:2] GotoIf("SIP/2051-00000060", "0?s-BADAUTH,1") in new stack
[2020-04-13 09:41:00] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:3] Wait("SIP/2051-00000060", "1") in new stack
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:4] Set("SIP/2051-00000060", "TIMEOUT(digit)=1") in new stack
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] func_timeout.c:     -- Digit timeout set to 1.000
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:5] Set("SIP/2051-00000060", "TIMEOUT(response)=3") in new stack
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] func_timeout.c:     -- Response timeout set to 3.000
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:6] Set("SIP/2051-00000060", "Attempts=0") in new stack
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:7] Set("SIP/2051-00000060", "Attempts=1") in new stack
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:8] Read("SIP/2051-00000060", "Passread,vm-password,6,,3") in new stack
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] app_read.c:     -- Accepting a maximum of 6 digits.
[2020-04-13 09:41:01] VERBOSE[8376][C-00000037] file.c:     -- <SIP/2051-00000060> Playing 'vm-password.ulaw' (language 'en')
[2020-04-13 09:41:05] VERBOSE[8376][C-00000037] app_read.c:     -- User entered nothing, 2 chances left
[2020-04-13 09:41:05] VERBOSE[8376][C-00000037] file.c:     -- <SIP/2051-00000060> Playing 'vm-password.ulaw' (language 'en')
[2020-04-13 09:41:09] VERBOSE[8376][C-00000037] app_read.c:     -- User entered nothing, 1 chance left
[2020-04-13 09:41:09] VERBOSE[8376][C-00000037] file.c:     -- <SIP/2051-00000060> Playing 'vm-password.ulaw' (language 'en')
[2020-04-13 09:41:13] VERBOSE[8376][C-00000037] app_read.c:     -- User entered nothing.
[2020-04-13 09:41:13] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:9] GotoIf("SIP/2051-00000060", "1?s-BADAUTH,1") in new stack
[2020-04-13 09:41:13] VERBOSE[8376][C-00000037] pbx.c:     -- Goto (macro-extcall,s-BADAUTH,1)
[2020-04-13 09:41:13] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:1] Playback("SIP/2051-00000060", "vm-goodbye") in new stack
[2020-04-13 09:41:13] VERBOSE[8376][C-00000037] file.c:     -- <SIP/2051-00000060> Playing 'vm-goodbye.ulaw' (language 'en')
[2020-04-13 09:41:14] VERBOSE[8376][C-00000037] pbx.c:     -- Executing [[email protected]:2] Hangup("SIP/2051-00000060", "") in new stack
[2020-04-13 09:41:14] VERBOSE[8376][C-00000037] app_macro.c:   == Spawn extension (macro-extcall, s-BADAUTH, 2) exited non-zero on 'SIP/2051-00000060' in macro 'extcall'
[2020-04-13 09:41:14] VERBOSE[8376][C-00000037] pbx.c:   == Spawn extension (from-sip, 0213714972, 2) exited non-zero on 'SIP/2051-00000060'
[2020-04-13 09:42:55] NOTICE[9537] chan_sip.c: Peer '2051' is now UNREACHABLE!  Last qualify: 53

It looks like chan_sip extension 2051 has had the context manually changed from from-internal to from-sip, but that is something that you are a previous admin would have done. If that’s the case, you should be able to change it back by editing the extension in Applications → Extensions.

HI lqaetz,

thanks for the advise, i found some config in the file extensions_custom.conf

and changed it to

[from-sip]
exten => _[12]XXX,1,Goto(from-internal,${EXTEN},1)
exten => *97,1,Goto(from-internal,${EXTEN},1)
exten => *8,1,Goto(from-internal,${EXTEN},1)
exten => _X.,1,Set(ORIG_EXTEN=${EXTEN})
; same => n,Macro(extcall)
same => n,Goto(from-internal,${ORIG_EXTEN},1)

now when making a call it doesn’t ask for a password, was this the correct way of going about it ?

This is a work around, but you should edit the extension, and revert the context back to the from-internal default.

i don’t know where to find the config file for the extension. also i have to mention that it use to ask for a passport from any extension

also with reference to reverting the context which file would this be located in

forgive the many questions this is not my expertise i am trying to resolve this with out the help of previous admin

Have you tried doing it the easy way, and connecting to the server GUI and changing the extension config in there? It sounds like you are trying to do it the hard way and finding it, well, hard.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.