簡介
本文檔介紹BroadWorks Application Server(AS)如何與媒體伺服器(MS)進行互動,以便進行數字收集和公告播放。
.
背景資訊
通知通常在呼叫處理期間使用。例如,它可用於提示數字收集(輸入您的PIN碼,後跟井號),或通知呼叫者呼叫失敗(您的呼叫無法按撥號方式完成)。在BroadWorks解決方案中,Media Server負責播放公告,但是,媒體檔案儲存在Application Server中。Application Server有責任指示Media Server播放什麼檔案。同樣,MS可以從音訊流中提取使用者輸入,以便AS可以執行正確的呼叫處理操作。
公告檔案儲存在AS伺服器的此位置: /usr/local/broadworks/apps/MediaFiles_<SW_version>/sysprompts/<language code>/。例如,AS R24中的美國英語公告位於/usr/local/broadworks/apps/MediaFiles_24.0_1.944/sysprompts/en目錄。在會話初始協定(SIP)消息/usr/local/broadworks/apps/MediaFiles_24.0_1.944/sysprompts/en/location對映到https://<AS_addres>/media/en/。
您可以在Cisco BroadWorks公告指南中閱讀有關Broadworks中可用的公告的更多資訊。
必要條件
需求
思科建議您瞭解以下主題:
- SIP訊號。
- BroadWorks中的基本自動總機配置。
採用元件
本文中的資訊係根據以下軟體和硬體版本:
但是,其他軟體版本的行為是類似的。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
網路拓撲和呼叫流程
為簡單起見,本文檔中使用了基本呼叫方案:
- Softphone應用程式直接註冊到AS。
- 使用者(分機號為2011)撥打自動總機(分機號為2010)並按數字5。此使用者輸入觸發呼叫斷開,如以下螢幕截圖所示:
- 使用者和自動總機位於同一個組中。
SIP消息流說明
使用者撥打2010,軟電話將邀請消息傳送到AS:
2023.01.26 16:51:41:106 CET | Info | Sip | Call Half Input Adapter 5 | 2966060 | +15403362011 | callhalf-58591:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 1111 SIP Bytes IN from 10.61.205.219:58300
INVITE sip:2010@mleus.lab SIP/2.0
Via: SIP/2.0/UDP 10.61.205.219:58300;rport;branch=z9hG4bKPjgINPvPUvoBT57iTOBPsgCfEqE5GX1aj7
Max-Forwards: 70
From: "Marek Leus"
;tag=6fU.VlLrWc6WI3JU8jWKS.25yeoWEhpc To: sip:2010@mleus.lab Contact: "Marek Leus"
Call-ID: dTUVBWON9UjmftpGCOoJzhLfbajBm11C CSeq: 6492 INVITE Route:
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, norefersub User-Agent: Telephone 1.6 Content-Type: application/sdp Content-Length: 480 v=0 o=- 3883737105 3883737105 IN IP4 10.61.205.219 s=pjmedia b=AS:117 t=0 0 a=X-nat:0 m=audio 4012 RTP/AVP 96 9 8 0 101 102 c=IN IP4 10.61.205.219 b=TIAS:96000 a=rtcp:4013 IN IP4 10.61.205.219 a=sendrecv a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:9 G722/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/48000 a=fmtp:101 0-16 a=rtpmap:102 telephone-event/8000 a=fmtp:102 0-16 a=ssrc:2039250127 cname:43ec7f3b5b951d53
由於分機2010屬於自動總機,因此AS將呼叫擴展到MS:
2023.01.26 16:51:41:117 CET | Info | Sip | Sip EncodeQ 0 | 2966113 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 1044 SIP Bytes OUT to 10.48.93.18:5060
INVITE sip:ivr@10.48.93.18 SIP/2.0
Via:SIP/2.0/UDP 10.48.93.126;branch=z9hG4bKBroadWorks.-iom24c-10.48.93.18V5060-0-929269663-1018158145-1674748301117-
From:
;tag=1018158145-1674748301117- To:
Call-ID:BW165141117260123-861893333@10.48.93.126 CSeq:929269663 INVITE Contact:
X-BroadWorks-Correlation-Info:7492cbd3-b8a1-4c10-a543-b01f275be0b0 Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY Supported: Max-Forwards:10 Content-Type:application/sdp Content-Length:469 v=0 o=BroadWorks 14605 1 IN IP4 10.61.205.219 s=- b=AS:117 t=0 0 a=X-nat:0 m=audio 4012 RTP/AVP 96 9 8 0 101 102 c=IN IP4 10.61.205.219 b=TIAS:96000 a=rtcp:4013 IN IP4 10.61.205.219 a=sendrecv a=rtpmap:96 opus/48000/2 a=fmtp:96 useinbandfec=1 a=rtpmap:9 G722/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/48000 a=fmtp:101 0-16 a=rtpmap:102 telephone-event/8000 a=fmtp:102 0-16 a=ssrc:2039250127 cname:43ec7f3b5b951d53
MS將應答呼叫:
2023.01.26 16:51:41:128 CET | Info | SipMedia | Call Half Input Adapter 2 | 2966114 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 673 SIP Bytes IN from 10.48.93.18:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.48.93.126;branch=z9hG4bKBroadWorks.-iom24c-10.48.93.18V5060-0-929269663-1018158145-1674748301117-
From:
;tag=1018158145-1674748301117- To:
;tag=213817675 Call-ID: BW165141117260123-861893333@10.48.93.126 CSeq: 929269663 INVITE Contact:
Content-Type: application/sdp Allow: INVITE, ACK, BYE, INFO, OPTIONS, CANCEL Content-Length: 205 v=0 o=BroadWks 20 0 IN IP4 10.48.93.18 s=Media Server SDP t=0 0 m=audio 10234 RTP/AVP 8 102 c=IN IP4 10.48.93.18 a=rtpmap:8 PCMA/8000 a=rtpmap:102 telephone-event/8000 a=fmtp:102 0-15 a=ptime:20
AS將200 OK消息擴展到軟體電話:
2023.01.26 16:51:41:132 CET | Info | Sip | Sip EncodeQ 1 | 2966146 | +15403362011 | callhalf-58591:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 864 SIP Bytes OUT to 10.61.205.219:58300
SIP/2.0 200 OK
Via:SIP/2.0/UDP 10.61.205.219:58300;branch=z9hG4bKPjgINPvPUvoBT57iTOBPsgCfEqE5GX1aj7;rport
From:"Marek Leus"
;tag=6fU.VlLrWc6WI3JU8jWKS.25yeoWEhpc To:
;tag=749498253-1674748301131 Call-ID:dTUVBWON9UjmftpGCOoJzhLfbajBm11C CSeq:6492 INVITE Supported: Contact:
P-Asserted-Identity:"GroupB1 AA"
Privacy:none Call-Info:
;appearance-index=1 Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE Accept:application/media_control+xml,application/sdp,multipart/mixed Content-Type:application/sdp Content-Length:195 v=0 o=BroadWorks 14606 1 IN IP4 10.48.93.18 s=- t=0 0 m=audio 10234 RTP/AVP 8 102 c=IN IP4 10.48.93.18 a=rtpmap:8 PCMA/8000 a=rtpmap:102 telephone-event/8000 a=fmtp:102 0-15 a=ptime:20
此時,在軟電話和MS之間建立直接雙向音訊流;為此呼叫協商G711a編解碼器和入站DTMF。SIP信令仍然由AS處理。
AS指示MS播放預設自動總機問候語(AAdefaultBusinessHoursGreeting.wav)並收集數字(根據自動總機選單配置,只允許介於0到5之間的數字):
2023.01.26 16:51:41:248 CET | Info | Sip | Sip EncodeQ 0 | 2966172 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 934 SIP Bytes OUT to 10.48.93.18:5060
INFO sip:10.48.93.18:5060 SIP/2.0
Via:SIP/2.0/UDP 10.48.93.126;branch=z9hG4bKBroadWorks.-iom24c-10.48.93.18V5060-0-929269664-1018158145-1674748301117-
From:
;tag=1018158145-1674748301117- To:
;tag=213817675 Call-ID:BW165141117260123-861893333@10.48.93.126 CSeq:929269664 INFO Contact:
Max-Forwards:10 Content-Type:application/mediaservercontrol+xml Content-Length:470
在問候語期間,使用者按數字5鍵。它在音訊流中傳輸,因此MS從音訊中提取數字並將其傳送到Info消息中的AS:
2023.01.26 16:51:43:878 CET | Info | SipMedia | Call Half Input Adapter 2 | 2966183 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 703 SIP Bytes IN from 10.48.93.18:5060
INFO sip:10.48.93.126:5060 SIP/2.0
Via: SIP/2.0/UDP 10.48.93.18:5060;branch=z9hG4bK-BroadWorks-MS-325794538
From:
;tag=213817675 To:
;tag=1018158145-1674748301117- Call-ID: BW165141117260123-861893333@10.48.93.126 CSeq: 2037464779 INFO Content-Type: application/mediaservercontrol+xml Max-Forwards: 70 Content-Length: 305
自動總機配置為在收到數字5時斷開呼叫。為了使其更便於使用,它指示主播首先播放「感謝您的呼叫」消息:
2023.01.26 16:51:43:880 CET | Info | Sip | Sip EncodeQ 0 | 2966197 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 712 SIP Bytes OUT to 10.48.93.18:5060
INFO sip:10.48.93.18:5060 SIP/2.0
Via:SIP/2.0/UDP 10.48.93.126;branch=z9hG4bKBroadWorks.-iom24c-10.48.93.18V5060-0-929269665-1018158145-1674748301117-
From:
;tag=1018158145-1674748301117- To:
;tag=213817675 Call-ID:BW165141117260123-861893333@10.48.93.126 CSeq:929269665 INFO Contact:
Max-Forwards:10 Content-Type:application/mediaservercontrol+xml Content-Length:248
MS通知AS通告播放已完成:
2023.01.26 16:51:45:294 CET | Info | SipMedia | Call Half Input Adapter 2 | 2966207 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 632 SIP Bytes IN from 10.48.93.18:5060
INFO sip:10.48.93.126:5060 SIP/2.0
Via: SIP/2.0/UDP 10.48.93.18:5060;branch=z9hG4bK-BroadWorks-MS-30863660
From:
;tag=213817675 To:
;tag=1018158145-1674748301117- Call-ID: BW165141117260123-861893333@10.48.93.126 CSeq: 2037464780 INFO Content-Type: application/mediaservercontrol+xml Max-Forwards: 70 Content-Length: 235
播放完成後,AS將斷開兩個呼叫段:
2023.01.26 16:51:45:296 CET | Info | Sip | Sip EncodeQ 0 | 2966228 | +15403362010 | callhalf-58599:0 |
7492cbd3-b8a1-4c10-a543-b01f275be0b0
udp 378 SIP Bytes OUT to 10.48.93.18:5060
BYE sip:10.48.93.18:5060 SIP/2.0
Via:SIP/2.0/UDP 10.48.93.126;branch=z9hG4bKBroadWorks.-iom24c-10.48.93.18V5060-0-929269666-1018158145-1674748301117-
From:
;tag=1018158145-1674748301117- To:
;tag=213817675 Call-ID:BW165141117260123-861893333@10.48.93.126 CSeq:929269666 BYE Max-Forwards:10 Content-Length:0 2023.01.26 16:51:45:297 CET | Info | Sip | Sip EncodeQ 1 | 2966238 | +15403362011 | callhalf-58591:0 | 7492cbd3-b8a1-4c10-a543-b01f275be0b0 udp 404 SIP Bytes OUT to 10.61.205.219:58300 BYE sip:5403362011@10.61.205.219:58300;ob SIP/2.0 Via:SIP/2.0/UDP 10.48.93.126;branch=z9hG4bKBroadWorks.-iom24c-10.61.205.219V58300-0-929269658-749498253-1674748301131 From:
;tag=749498253-1674748301131 To:"Marek Leus"
;tag=6fU.VlLrWc6WI3JU8jWKS.25yeoWEhpc Call-ID:dTUVBWON9UjmftpGCOoJzhLfbajBm11C CSeq:929269658 BYE Max-Forwards:10 Content-Length:0