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/301@from-queue-000034fa;2|
|—|---|—|---|—|---|—|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|s|macro-dial-one|AppDial|Local/*988030@from-internal-00003500;1|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|s|macro-dial-one|Dial|Local/324@from-queue-000034fe;2|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|6507|from-queue|AppQueue|Local/324@from-queue-000034fe;1|
|Tue, 7 Jan 2020 13:47|BRIDGE_ENTER|DEFAULT|6507|ext-queues|Queue|SIP/sbc.questblue.com-00006b88|
|Tue, 7 Jan 2020 13:47|APP_START|DEFAULT|dvm8030|from-internal|VoiceMailMain|Local/*988030@from-internal-00003500;2|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|6507|ext-queues|Queue|SIP/sbc.questblue.com-00006b88|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|6507|from-queue|AppQueue|Local/324@from-queue-000034fe;1|
|Tue, 7 Jan 2020 13:47|HANGUP|DEFAULT|6507|from-queue|AppQueue|Local/324@from-queue-000034fe;1|
|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|6507|from-queue|AppQueue|Local/324@from-queue-000034fe;1|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|s|macro-dial-one|Dial|Local/324@from-queue-000034fe;2|
|Tue, 7 Jan 2020 13:47|BRIDGE_EXIT|DEFAULT|s|macro-dial-one|AppDial|Local/*988030@from-internal-00003500;1|
|Tue, 7 Jan 2020 13:47|HANGUP|DEFAULT|s|macro-dial-one|AppDial|Local/*988030@from-internal-00003500;1|
|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|s|macro-dial-one|AppDial|Local/*988030@from-internal-00003500;1|
|Tue, 7 Jan 2020 13:47|APP_END|DEFAULT|dvm8030|from-internal|VoiceMailMain|Local/*988030@from-internal-00003500;2|
|Tue, 7 Jan 2020 13:47|HANGUP|DEFAULT|h|from-internal||Local/*988030@from-internal-00003500;2|
|Tue, 7 Jan 2020 13:47|CHAN_END|DEFAULT|h|from-internal||Local/*988030@from-internal-00003500;2|
[2020-01-07 13:47:49] VERBOSE[25217][C-00001b9d] chan_sip.c: Got SIP response 302 "Moved Temporarily" back from 72.177.19.23:2395
[2020-01-07 13:47:49] VERBOSE[27884][C-00001b9d] app_dial.c: Now forwarding Local/324@from-queue-000034fe;2 to 'Local/*988030@from-internal' (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 72.177.19.23:2395
@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/10.0.1.2/XX.XX.XX.XX/g' | pastebin
# You can also put them together.
grep C-00000001 /var/log/asterisk/full | sed 's/3145551212/NPANXXXXXX/g' | sed 's/10.0.1.2/XX.XX.XX.XX/g' | pastebin