Call goes to voicemail but ask for a passcode

For some reason we get people calling into our system and when the call hits the voicemail it will ask them for a passcode. The system seems to be answer the call with a *98 code before the voicemail. I can’t figure out why this happens to only some calls. Here is snipit from the call cdr.

|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|h|ext-local||Local/[email protected];2|

|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|s|macro-dial-one|AppDial|Local/*[email protected];1|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|s|macro-dial-one|Dial|Local/[email protected];2|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|6507|from-queue|AppQueue|Local/[email protected];1|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|6507|ext-queues|Queue|SIP/|
|Tue, 7 Jan 2020 13:47|APP_START|DEFAULT|dvm8030|from-internal|VoiceMailMain|Local/*[email protected];2|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|6507|ext-queues|Queue|SIP/|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|6507|from-queue|AppQueue|Local/[email protected];1|
|Tue, 7 Jan 2020 13:47|HANGUP|DEFAULT|6507|from-queue|AppQueue|Local/[email protected];1|
|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|6507|from-queue|AppQueue|Local/[email protected];1|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|s|macro-dial-one|Dial|Local/[email protected];2|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|s|macro-dial-one|AppDial|Local/*[email protected];1|
|Tue, 7 Jan 2020 13:47|HANGUP|DEFAULT|s|macro-dial-one|AppDial|Local/*[email protected];1|
|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|s|macro-dial-one|AppDial|Local/*[email protected];1|
|Tue, 7 Jan 2020 13:47|APP_END|DEFAULT|dvm8030|from-internal|VoiceMailMain|Local/*[email protected];2|
|Tue, 7 Jan 2020 13:47|HANGUP|DEFAULT|h|from-internal||Local/*[email protected];2|
|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|h|from-internal||Local/*[email protected];2|


Please provide a full call trace.

Please post the pastebin link.

Is there way to cut out the phone number? I don’t want to post a clients phone number.


You can save call trace to a local file

grep C-00000001 /var/log/asterisk/full-20180214 >> /tmp/log1.txt

Copy the file to your PC, use your favorite editor to replace what you want to replace, and upload it to pastbin


Extension 324 appears to have a call forward set on the phone:

Now forwarding Local/[email protected];2 to 'Local/*[email protected]' (thanks to SIP/324-00006ba9)

This would call forward to *988030.

1 Like
[2020-01-07 13:47:49] VERBOSE[25217][C-00001b9d] chan_sip.c: Got SIP response 302 "Moved Temporarily" back from
[2020-01-07 13:47:49] VERBOSE[27884][C-00001b9d] app_dial.c: Now forwarding Local/[email protected];2 to 'Local/*[email protected]' (thanks to SIP/324-00006ba9)

Josh beat me by a full minute. One of your queue agents (324?) has call forwarding enabled on their device, likely without even realizing it. You can isolate by making calls to each agent until you figure out which, or attempt to figure out what device is at

I saw that also but it is weird because the call ring that extension in a earlier queue. I will look at the extension.

@lgaetz Actually, this would be a great addition to the documentation. Show people how to use sed to mask a number.

It would be an even better tthing to add something to the pastebin command. but that requires more thought.

For now, this could be added to the documentation to help people.

# To mask a phone number prior to sending to pastebin:
grep C-00000001 /var/log/asterisk/full | sed 's/3145551212/NPANXXXXXX/g' | pastebin

# To mask an IP address prior to sending to pastebin:
grep C-00000001 /var/log/asterisk/full | sed 's/' | pastebin

# You can also put them together.
grep C-00000001 /var/log/asterisk/full | sed 's/3145551212/NPANXXXXXX/g' | sed 's/' | pastebin



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