11-08-2017 06:10 AM - edited 03-18-2019 01:36 PM
Hi All
We are using Cisco Spark with Hybrid for Call Control. We used to use Jabber before. Now, when a user calls their voicemail (1571) through Spark, it takes them to a Cisco Unity default message saying "Welcome to Cisco Unity. You can dial an extension or press # for the operator". But instead, it should take the user in to their own voicemail inbox.
Looking at Expressway, the call comes from my.user@company.call.ciscospark.com whereas a normal jabber call comes from my.user@cucmpub.company.com - so I think that unity doesn't recognise the spark domain, therefore can't auto log you in.
So, i am trying to use a call polity to rewrite the source alias as the call is made. As a basic test, I set the following CPL:
<cpl xmlns="urn:ietf:params:xml:ns:cpl" xmlns:taa="http://www.tandberg.net/cpl-extensions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:cpl cpl.xsd"> <taa:routed> <taa:rule-switch> <taa:rule unauthenticated-origin=".*" destination=".*@company.call.cisospark.com"><taa:location clear="yes" regex="(.*)@company.call.cisospark.com" replace="\1@cucmpub.company.com" source-url-for-message-regex="(.*)" source-url-for-message-replace="\1"><taa:proxy/></taa:location></taa:rule> <taa:rule origin=".*@company.call.cisospark.com" destination=".*"><taa:location clear="yes" regex="(.*)" replace="\1" source-url-for-message-regex="(.*)@company.call.ciscospark.com" source-url-for-message-replace="\1@cucmpub.company.com"><taa:proxy/></taa:location></taa:rule> </taa:rule-switch> </taa:routed> </cpl>
Can anyone see what I'm missing. Here is the search history for the call so you can see the source and destination:
2017-11-08T13:40:57.982+00:00 tvcs: Event="Call Disconnected" Service="SIP" Src-ip="1.2.3.4" Src-port="50247" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="dc5cf2a5-192e-4a1f-8047-3e800c767f07" Tag="e46aaede-3daf-4589-a43e-f008be0919a5" Detail="All sessions disconnected" Protocol="TLS" Level="1" UTCTime="2017-11-08 13:40:57,982" 2017-11-08T13:40:51.913+00:00 tvcs: Event="Call Connected" Service="SIP" Src-ip="1.2.3.4" Src-port="50247" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="dc5cf2a5-192e-4a1f-8047-3e800c767f07" Tag="e46aaede-3daf-4589-a43e-f008be0919a5" Protocol="TLS" Call-routed="YES" Level="1" UTCTime="2017-11-08 13:40:51,910" 2017-11-08T13:40:51.896+00:00 tvcs: Event="Search Completed" Service="SIP" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="12d86ea1-8cf2-4564-a4ed-516d048888fc" Tag="e46aaede-3daf-4589-a43e-f008be0919a5" Detail="found:true, searchtype:INVITE" Call-routed="YES" Level="1" UTCTime="2017-11-08 13:40:51,895" 2017-11-08T13:40:51.894+00:00 tvcs: Event="Call Connected" Service="SIP" Src-ip="192.168.0.11" Src-port="5073" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="12d86ea1-8cf2-4564-a4ed-516d048888fc" Tag="e46aaede-3daf-4589-a43e-f008be0919a5" Protocol="TLS" Call-routed="YES" Level="1" UTCTime="2017-11-08 13:40:51,894" 2017-11-08T13:40:51.717+00:00 tvcs: Event="Call Attempted" Service="SIP" Src-ip="1.2.3.4" Src-port="50247" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="dc5cf2a5-192e-4a1f-8047-3e800c767f07" Tag="e46aaede-3daf-4589-a43e-f008be0919a5" Protocol="TLS" Auth="YES" Level="1" UTCTime="2017-11-08 13:40:51,717" 2017-11-08T13:40:51.717+00:00 tvcs: Event="Search Attempted" Service="SIP" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="dc5cf2a5-192e-4a1f-8047-3e800c767f07" Tag="e46aaede-3daf-4589-a43e-f008be0919a5" Detail="searchtype:INVITE" Level="1" UTCTime="2017-11-08 13:40:51,717"
Basically we just want to rewrite my.user@company.call.ciscospark.com to my.user@cucmpub.company.com in the source alias to that when the call progresses to unity, it can identify the correct user and hit their own inbox.
Any ideas?
Thanks
James
11-08-2017 07:03 AM - edited 11-08-2017 07:05 AM
Try the following in your CPL, not able to test it at the moment, but it should work.
<!-- Replace SIP domain for inbound Spark calls --> <taa:rule unauthenticated-origin=".*@company\.call\.cisospark\.com" destination=".*"> <taa:location clear="yes" regex="(.*)" replace="\1" source-url-for-message-regex="(.*)@company\.call\.cisospark\.com" source-url-for-message-replace="\1@cucmpub.company.com"> <taa:proxy/> </taa:location> </taa:rule>
For the most part you were correct with your CPL, but all inbound calls from the internet will be seen as unauthenticated (unauthenticated-origin), not authenticated (origin).
11-08-2017 07:11 AM
Hi Patrick
Thanks for your reply. I uploaded the new CPL and it took the file okay. But, the same problem, it doesn't appear to be rewriting the source alias at all.
Here is the search history:
2017-11-08T15:08:12.088+00:00 tvcs: Event="Call Disconnected" Service="SIP" Src-ip="192.168.0.11" Src-port="5073" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="18a8e851-f5fa-4362-a93d-d7abaa7ff6e2" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Detail="All sessions disconnected" Protocol="TLS" Level="1" UTCTime="2017-11-08 15:08:12,087" 2017-11-08T15:08:12.074+00:00 tvcs: Event="Call Disconnected" Service="SIP" Src-ip="1.2.3.4" Src-port="55926" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="ac59824b-3ee9-47cd-a329-f815e7715b2b" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Detail="All sessions disconnected" Protocol="TLS" Level="1" UTCTime="2017-11-08 15:08:12,072" 2017-11-08T15:08:05.325+00:00 tvcs: Event="Search Completed" Service="SIP" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="ac59824b-3ee9-47cd-a329-f815e7715b2b" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Detail="found:true, searchtype:INVITE" Call-routed="YES" Level="1" UTCTime="2017-11-08 15:08:05,331" 2017-11-08T15:08:05.325+00:00 tvcs: Event="Call Connected" Service="SIP" Src-ip="1.2.3.4" Src-port="55926" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="ac59824b-3ee9-47cd-a329-f815e7715b2b" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Protocol="TLS" Call-routed="YES" Level="1" UTCTime="2017-11-08 15:08:05,331" 2017-11-08T15:08:05.319+00:00 tvcs: Event="Search Completed" Service="SIP" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="18a8e851-f5fa-4362-a93d-d7abaa7ff6e2" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Detail="found:true, searchtype:INVITE" Call-routed="YES" Level="1" UTCTime="2017-11-08 15:08:05,318" 2017-11-08T15:08:05.316+00:00 tvcs: Event="Call Connected" Service="SIP" Src-ip="192.168.0.11" Src-port="5073" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="18a8e851-f5fa-4362-a93d-d7abaa7ff6e2" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Protocol="TLS" Call-routed="YES" Level="1" UTCTime="2017-11-08 15:08:05,316" 2017-11-08T15:08:05.161+00:00 tvcs: Event="Call Attempted" Service="SIP" Src-ip="192.168.0.11" Src-port="5073" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="18a8e851-f5fa-4362-a93d-d7abaa7ff6e2" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Protocol="TLS" Auth="YES" Level="1" UTCTime="2017-11-08 15:08:05,164" 2017-11-08T15:08:05.161+00:00 tvcs: Event="Search Attempted" Service="SIP" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="18a8e851-f5fa-4362-a93d-d7abaa7ff6e2" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Detail="searchtype:INVITE" Level="1" UTCTime="2017-11-08 15:08:05,164" 2017-11-08T15:08:05.126+00:00 tvcs: Event="Call Attempted" Service="SIP" Src-ip="1.2.3.4" Src-port="55926" Src-alias-type="SIP" Src-alias="sip:my.user@company.call.ciscospark.com" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="ac59824b-3ee9-47cd-a329-f815e7715b2b" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Protocol="TLS" Auth="YES" Level="1" UTCTime="2017-11-08 15:08:05,126" 2017-11-08T15:08:05.126+00:00 tvcs: Event="Search Attempted" Service="SIP" Dst-alias-type="SIP" Dst-alias="sip:1571@cucmpub.company.com;user\=phone" Call-serial-number="ac59824b-3ee9-47cd-a329-f815e7715b2b" Tag="7cd6a7e6-be36-442e-90ad-8bba5904f084" Detail="searchtype:INVITE" Level="1" UTCTime="2017-11-08 15:08:05,126"
Thanks
11-08-2017 07:54 AM
11-08-2017 07:57 AM
Hi Patrick
I posted the latest search history after your suggestion in my last reply. Did you not see/receive it on this thread?
Thanks
11-08-2017 08:17 AM
11-08-2017 08:22 AM - edited 11-08-2017 08:24 AM
Sure, attached.
Search (505) State: Completed Found: True Type: SIP (INVITE) SIPVariant: Standards-based CallRouted: True CallSerial Number: f1d7333f-2cfc-4e36-8507-4657175461cf Tag: 7d951593-a5fa-42d8-8d4a-6d7514dbefa0 Source (1) Authenticated: True Zone (1) Name: DefaultZone Type: Default Path (1) Hop (1) Address: 192.168.0.11:5073 Hop (2) Address: 1.2.3.4:5061 Hop (3) Address: l2sip-cfa-01.wbx2.com:5062 Hop (4) Address: 172.18.215.151:24864 Destination (1) Alias (1) Type: Url Origin: Unknown Value: sip:1571@cucmpub.company.com;user=phone StartTime: 2017-11-08 16:19:03 Duration: 0.15 SubSearch (1) Type: Directed Path (1) Hop (1) Address: SparktoVCSC Hop (2) Address: 192.168.0.10 Hop (3) Address: cucmpub.company.com SubSearch (1) Type: Admin Policy Action: Proxy ResultAlias (1) Type: H323Id Origin: Unknown Value: sip:1571@cucmpub.company.com;user=phone Zone (1) Name: Spark_to_VCS-C Type: TraversalServer Protocol: SIP Found: True StartTime: 2017-11-08 16:19:03 Duration: 0.14 Gatekeeper (1) Address: 192.168.0.10:25007 Alias (1) Type: H323Id Origin: Unknown Value: sip:1571@cucmpub.company.com;user=phone
11-08-2017 01:22 PM
Appears the Spark call is coming in as authenticated, I assumed it would have been unauthenticated since it was coming from the internet. With that said, you'll need to use origin instead of unauthenticated-origin, just like you originally had, rather than what I used in my CPL example.
I do notice in the search history that it doesn't include the source address, it should appear immediately below Authenticated in the Source section. What version of VCS/Expressway are you running? There was a bug in X8.9.1 where the source wasn't appearing the search history (CSCvd79039), as a result things such as CPL would fail if they were dependent on a source address, X8.10 includes a fix for this bug.
11-08-2017 02:36 PM
Ah... I am using 8.9.2 which appears to also be affected. I am upgrading to 8.10.2 now and will re-test. Thanks!
11-09-2017 03:41 AM
Thanks, the upgrade cured the CPL not matching!
Now, even though that's working, I've realised the problem is further afield. Looks like when using Cisco spark with hybrid, when you call your VM (1571 etc), it is using the External Phone Mask you've set in the user's Spark CTI extension, instead of ignoring it (as its an internal call). So, its setting the caller id to the external number, which Unity doesn't know about. Guess its a bug or some setting.
Any ideas or best to raise a new thread?
Thanks
11-09-2017 08:04 AM
I have no idea to be honest. Best to start a new thread since the issue is now related to something else than CPL. You could also open a case with TAC and they can help determine if what you're seeing is a bug, or if what you're trying to do is even supported.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: