设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 文件格式 >> 例子:SIP通过网关的呼叫PSTN
精品推荐
文件格式点击TOP10
·《IEEE754 学习总结》
·SIP on Mobile Device (运行在移动设备上的SIP协议终端)
·一个8583报文的简单例子
·FTP协议的分析和扩展
·SIP SAP及SDP协议组合应用的研究
·FTP协议的分析和扩展
·SIP IP 电话系统的呼叫路由
·PSF (Portable Sound Format)[可移植声音格式] 规范 v1.5
·网友的VOIP总结
·BitTorrent 协议规范1.0版
编程开发点击TOP10
·数字小键盘指法练习
·ASP.NET 程序中常用的三十三种代码
·用C语言编通讯录程序(初学者级别的)
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·Modem 常用AT指令集
·java笔试题
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

例子:SIP通过网关的呼叫PSTN

作者: 来源:网络文章 时间:2005-12-17 23:45:44

例子:SIP通过网关的呼叫PSTN(1) SIP to PSTN Call Through Gateway

In the example shown in , the calling SIP phone places a telephone call to the PSTN through a PSTN gateway. The SIP phone collects the dialed digits and puts them into a SIP URI used in the Request-URI and the To header. The caller may have dialed either the globalized phone number 1-202-555-1313 or they may have just dialed a local number 555-1313, and the SIP phone added the assumed country code and area code to prodUCe the globalized URI. The SIP phone has been preconfigured with the IP address of the PSTN gateway, so it is able to send the INVITE directly to gw.carrier.com. The gateway initiates the call into the PSTN by selecting an SS7 ISUP trunk to the next telephone switch in the PSTN. The dialed digits from the INVITE are mapped into the ISUP IAM. The ISUP Address Complete Message (ACM) is sent back by the PSTN to indicate that the trunk has been seized. Progress tones are generated in the one-way audio path established in the PSTN. In this example, ring tone is generated by the far end telephone switch. The gateway maps the ACM to the 183 Session Progress response containing SDP indicating the RTP port that the gateway will bridge the audio from the PSTN. Upon reception of the 183, the caller's UAC begins receiving the RTP packets sent from the gateway and presents the audio to the caller so they know that the call is progressing in the PSTN.

Click To e<a href=XPand" src="http://www.cnbug.com/Article/mk:@MSITStore:D:/通信文档/NGN/SIP%20Understanding%20the%20Session%20Initiation%20Protocol,%20Second%20Edition.chm::/7915/images/fig10-3.jpg" width=350 border=0>
Figure 10.3: SIP to PSTN call through gateway.

The call completes when the called party answers the telephone, which causes the telephone switch to send an Answer Message (ANM) to the gateway. The gateway then cuts the PSTN audio connection through in both directions and sends a 200 OK response to the caller. Because the RTP media path is already established, the gateway echoes the SDP in the 183 but causes no changes to the RTP connection. The UAC sends an ACK to complete the SIP signaling exchange. Because there is no equivalent message in ISUP, the gateway absorbs the ACK.

The call terminates when the caller sends the BYE to the gateway. The gateway maps the BYE to the ISUP Release message or REL. The gateway sends the 200 OK to the BYE and receives a RLC from the PSTN. These two messages have no dependency on each other; if, for some reason, either the SIP or PSTN network does not respond properly, one does not want resources held in the other network as a result.

M1INVITE sip:+12025551313@gw.carrier.com;user=phone SIP/2.0Via: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK4545Max-Forwards: 70From: <sip:filo.farnsworth@television.tv>;tag=12To: <sip:+12025551313@gw.carrier.com;user=phone>Call-ID: 49235243082018498@television.tvCSeq: 1 INVITESupported: 100relContact: sip:filo.farnsworth@studio.television.tvContent-Type: application/sdpContent-Length: 154v=0o=FF 2890844535 2890844535 IN IP4 8.19.19.06s=-t=0 0c=IN IP4 8.19.19.06m=audio 5004 RTP/AVP 0 8?Two alternative codecs,a=rtpmap:0 PCMU/8000 PCM μ-Law ora=rtpmap:8 PCMA/8000PCM A-LawM2IAMCdPN=202-555-1313, NPI=E.164,NOA=National?Gateway maps telephoneinto called party numberM3ACMM4SIP/2.0 183 Session ProgressVia: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK4545From: <sip:filo.farnsworth@television.tv>;tag=12To: <+12025551313@gw.carrier.com;user=phone>;tag=37?Tag and bracketsCall-ID: 49235243082018498@television.tvCSeq: 1 INVITERSeq: 08071Contact: <sip:50.60.70.80>Content-Type: application/sdpContent-Length: 139v=0o=Port1723 2890844535 2890844535 IN IP4 50.60.70.80s=-t=0 0c=IN IP4 50.60.70.80m=audio 62002 RTP/AVP 0?Gateway selects μ-Law codeca=rtpmap:0 PCMU/8000M5PRACK sip:50.60.70.80 SIP/2.0Via: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK454Max-Forwards: 70From: <sip:filo.farnsworth@television.tv>;tag=37To: <sip:+12025551313@gw.carrier.com;user=phone>;tag=12Call-ID: 49235243082018498@television.tvCSeq: 2 PRACKContact: sip:filo.farnsworth@studio.television.tvRAck: 08071 1 INVITEContent-Length: 0M6SIP/2.0 200 OKVia: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK454From: <sip:filo.farnsworth@television.tv>;tag=37To: <sip:+12025551313@gw.carrier.com;user=phone>;tag=12Call-ID: 49235243082018498@television.tvCSeq: 2 PRACKM7ANMM8SIP/2.0 200 OKVia: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK4545From: <sip:filo.farnsworth@television.tv>;tag=12To: <+12025551313@gw.carrier.com;user=phone>;tag=37Call-ID: 49235243082018498@television.tvCSeq: 1 INVITEContact: <sip:50.60.70.80>Content-Type: application/sdpContent-Length: 139v=0o=Port1723 2890844535 2890844535 IN IP4 50.60.70.80s=-t=0 0c=IN IP4 50.60.70.80m=audio 62002 RTP/AVP 0a=rtpmap:0 PCMU/8000M9ACK sip:50.60.70.80 SIP/2.0Via: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bKfgrwMax-Forwards: 70From: <sip:filo.farnsworth@television.tv>;tag=12To: <+12025551313@gw.carrier.com;user=phone>;tag=37Call-ID: 49235243082018498@television.tvCSeq: 1 ACKM10BYE sip:50.60.70.80 SIP/2.0Via: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK321Max-Forwards: 70From: <sip:filo.farnsworth@television.tv>;tag=12To: <+12025551313@gw.carrier.com;user=phone>;tag=37Call-ID: 49235243082018498@television.tvCSeq: 3 BYE ?CSeq incrementedM11RELCauseCode=16 Normal ClearingM12SIP/2.0 200 OKVia: SIP/2.0/UDP 8.19.19.06:5060;branch=z9hG4bK321From: <sip:filo.farnsworth@television.tv>;tag=12To: <+12025551313@gw.carrier.com;user=phone>;tag=37Call-ID: 49235243082018498@television.tvCSeq: 3 BYEM13RLC
共2页 9 7 [1] [28 :>

例子:SIP通过网关的呼叫PSTN 相关文章:
例子:SIP通过网关的呼叫PSTN 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com