Check Voicemail from different phone system

We have a FreePBX install set up behind a CUCM. From CUCM we can call the extensions just fine We can also call out to CUCM from FreePBX fine.

We want people to access their Voicemail from a CUCM device though. I created a Route Pattern in CUCM to send *98XXX to FreePBX…and it does. The problem is FreePBX won’t process the incoming call, it just says “Received an unknown call with DID set to”

Any advice or previous attempts at this set up?

This is what we want:

  • User dials a number, 8000
  • They then get prompted to enter their extension
  • They then get prompted to enter their password
  • They then can listen to and manage their voicemails

Make sure the incoming calls are hitting the “from-internal” context (instead of “from-sip” or “from-pstn”).

Of that isn’t it, you can check the logs in /var/log/asterisk/full and see what the system is trying to do with the calls.

Thank you. On the trunk I changed it from “from-trunk” to “from-internal” for incoming SIP settings, but still the same.

This is how it handles the call:

[2018-10-24 13:29:54] VERBOSE[2222][C-0000003e] netsock2.c: Using SIP RTP TOS bits 184
[2018-10-24 13:29:54] VERBOSE[2222][C-0000003e] netsock2.c: Using SIP RTP CoS mark 5
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [*9880222@from-trunk-sip-cucm-out:1] Set(“SIP/cucm-out-00000048”, “GROUP()=OUT_1”) in new stack
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [*9880222@from-trunk-sip-cucm-out:2] Goto(“SIP/cucm-out-00000048”, “from-trunk,*9880222,1”) in new stack
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx_builtins.c: Goto (from-trunk,*9880222,1)
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [*9880222@from-trunk:1] Set(“SIP/cucm-out-00000048”, “__FROM_DID=*9880222”) in new stack
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [*9880222@from-trunk:2] NoOp(“SIP/cucm-out-00000048”, “Received an unknown call with DID set to *9880222”) in new stack
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [*9880222@from-trunk:3] Goto(“SIP/cucm-out-00000048”, “s,a2”) in new stack
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx_builtins.c: Goto (from-trunk,s,2)
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@from-trunk:2] Answer(“SIP/cucm-out-00000048”, “”) in new stack
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@from-trunk:3] Log(“SIP/cucm-out-00000048”, “WARNING,Friendly Scanner from 10.125.8.31”) in new stack
[2018-10-24 13:29:54] WARNING[55126][C-0000003e] Ext. s: Friendly Scanner from 10.125.8.31
[2018-10-24 13:29:54] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@from-trunk:4] Wait(“SIP/cucm-out-00000048”, “2”) in new stack
[2018-10-24 13:29:56] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@from-trunk:5] Playback(“SIP/cucm-out-00000048”, “ss-noservice”) in new stack
[2018-10-24 13:29:56] VERBOSE[55126][C-0000003e] file.c: <SIP/cucm-out-00000048> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Executing [h@from-trunk:1] Macro(“SIP/cucm-out-00000048”, “hangupcall,”) in new stack
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/cucm-out-00000048”, “1?theend”) in new stack
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/cucm-out-00000048”, “0?Set(CDR(recordingfile)=)”) in new stack
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@macro-hangupcall:4] NoOp(“SIP/cucm-out-00000048”, " monior file= ") in new stack
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@macro-hangupcall:5] AGI(“SIP/cucm-out-00000048”, “attendedtransfer-rec-restart.php,”) in new stack
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] res_agi.c: <SIP/cucm-out-00000048>AGI Script attendedtransfer-rec-restart.php completed, returning 0
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Executing [s@macro-hangupcall:6] Hangup(“SIP/cucm-out-00000048”, “”) in new stack
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] app_macro.c: Spawn extension (macro-hangupcall, s, 6) exited non-zero on ‘SIP/cucm-out-00000048’ in macro ‘hangupcall’
[2018-10-24 13:30:00] VERBOSE[55126][C-0000003e] pbx.c: Spawn extension (from-trunk, h, 1) exited non-zero on ‘SIP/cucm-out-00000048’

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