Hello,
Let's look at the following scenario :
- HQ is an MGCP gateway (with RDNIS Delivery Inboud checked);
- BR1 is an H323 gateway (with RDNIS Delivery Outbound checked).
- BR2 is another gateway registered to CUCM (no matter what protocol it is) ;
- Unity is integrated with SCCP Voice Ports.
Now let's activate AAR with no bandwith between all sites (that is all calls are going trough PSTN between all sites).
1/ When I call from BR2 (3001) to BR1 (2001) I am rerouted through PSTN as AAR occurs. BR1 user at 2001 doesn't answer, and the call is rerouted again through PSTN to HQ (AAR again between BR1 and HQ) and we can reach the correct CUC Voice Mail box for BR1 user at 2001. And all RDNIS are correct in the Q.931 debug.
This part is OK.
2/ But when my BR1 user press the Voice Mail button to listen to his messages (MWI are OK), he is routed to Unity through PSTN as AAR occurs but it isn't recognized when reaching Unity... because the RDNIS is not his number (2001) but the Unity number (1850) as we are in AAR. See ouput below...
I found one way to tweak it but it's absolutely not acceptable : use the Unity Pilot as an Alternate Extension (ugly, and works only for one user !).
And the use of a dedicated VM Profile with a specific mask (2001 as mask hardcoded) or a specific CTI RP doesn't help as the RDNIS is still present with 2001 (or other) value, and Unity doesn't provide the correct greeting ("Hello you have new voice messages") but prompts for leaving a message to 2001.
Even when I try to delete the RDNIS at BR1 GW with IOS voice translation rule, it is still present in the ISDN messages as empty RDNIS...
Any idea ?
--
Output when pressing the Voice Mail button at BR1 in AAR :
Branch1#
May 28 14:02:09.869: ISDN Se0/0/0:23 Q931: Applying typeplan for sw-type 0xD is 0x2 0x1, Calling num 2001
May 28 14:02:09.869: ISDN Se0/0/0:23 Q931: Sending SETUP callref = 0x00BF callID = 0x8040 switch = primary-ni interface = User
May 28 14:02:09.869: ISDN Se0/0/0:23 Q931: TX -> SETUP pd = 8 callref = 0x00BF
Bearer Capability i = 0x8090A2
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98381
Exclusive, Channel 1
Display i = 'Site B Phone 1'
Calling Party Number i = 0x2181, '2001'
Plan:ISDN, Type:National
Called Party Number i = 0xA1, '2065011850'
Plan:ISDN, Type:National
Redirecting Number i = 0x000081, '1850' <- CUC Voice Mail Pilot is in RDNIS outbound at BR1 !!!
Plan:Unknown, Type:Unknown
May 28 14:02:09.905: ISDN Se0/0/0:23 Q931: RX <- CALL_PROC pd = 8 callref = 0x80BF
Channel ID i = 0xA98381
Exclusive, Channel 1
May 28 14:02:09.969: ISDN Se0/0/0:23 Q931: RX <- ALERTING pd = 8 callref = 0x80BF
Progress Ind i = 0x8088 - In-band info or appropriate now available
May 28 14:02:10.069: ISDN Se0/0/0:23 Q931: RX <- CONNECT pd = 8 callref = 0x80BF
Display i = 'Voice Mail'
May 28 14:02:10.069: %ISDN-6-CONNECT: Interface Serial0/0/0:0 is now connected to 2065011850 N/A
May 28 14:02:10.069: %ISDN-6-CONNECT: Interface Serial0/0/0:0 is now connected to 2065011850 N/A
May 28 14:02:10.073: %ISDN-6-CONNECT: Interface Serial0/0/0:0 is now connected to 2065011850 N/A
May 28 14:02:10.073: ISDN Se0/0/0:23 Q931: TX -> CONNECT_ACK pd = 8 callref = 0x00BF
May 28 14:02:13.425: %ISDN-6-CONNECT: Interface Serial0/0/0:0 is now connected to 2065011850 N/A
May 28 14:02:13.425: %ISDN-6-DISCONNECT: Interface Serial0/0/0:0 disconnected from 2065011850 , call lasted 3 seconds
May 28 14:02:13.425: ISDN Se0/0/0:23 Q931: TX -> DISCONNECT pd = 8 callref = 0x00BF
Cause i = 0x8090 - Normal call clearing
May 28 14:02:13.437: ISDN Se0/0/0:23 Q931: RX <- RELEASE pd = 8 callref = 0x80BF
May 28 14:02:13.441: ISDN Se0/0/0:23 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x00BF
Branch1#
CorpHQ#
May 28 14:05:28.549: ISDN Se0/0/0:23 Q931: RX <- SETUP pd = 8 callref = 0x00D7
Bearer Capability i = 0x8090A2
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98381
Exclusive, Channel 1
Display i = 'Site B Phone 1'
Calling Party Number i = 0x2181, '2001'
Plan:ISDN, Type:National
Called Party Number i = 0xA1, '2065011850'
Plan:ISDN, Type:National
Redirecting Number i = 0x000081, '1850' <- CUC Voice Mail Pilot is in RDNIS inbound at HQ !!!
Plan:Unknown, Type:Unknown
May 28 14:05:28.577: ISDN Se0/0/0:23 Q931: TX -> CALL_PROC pd = 8 callref = 0x80D7
Channel ID i = 0xA98381
Exclusive, Channel 1
May 28 14:05:28.577: ISDN Se0/0/0:23 Q931: TX -> ALERTING pd = 8 callref = 0x80D7
Progress Ind i = 0x8088 - In-band info or appropriate now available
May 28 14:05:28.841: ISDN Se0/0/0:23 Q931: TX -> CONNECT pd = 8 callref = 0x80D7
Display i = 'Voice Mail'
May 28 14:05:28.853: ISDN Se0/0/0:23 Q931: RX <- CONNECT_ACK pd = 8 callref = 0x00D7
May 28 14:05:32.861: ISDN Se0/0/0:23 Q931: RX <- DISCONNECT pd = 8 callref = 0x00D7
Cause i = 0x8290 - Normal call clearing
May 28 14:05:32.941: ISDN Se0/0/0:23 Q931: TX -> RELEASE pd = 8 callref = 0x80D7
May 28 14:05:32.949: ISDN Se0/0/0:23 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x00D7
CorpHQ#