sunrise333 Posted November 17, 2011 Что не так делаю? ! voice translation-rule 101 rule 1 /0*/ // ! voice translation-profile Outbound translate calling 101 ! dial-peer voice 10001 voip translation-profile outgoing Outbound destination-pattern 0T voice-class codec 1 session protocol sipv2 session target sip-server session transport udp dtmf-relay sip-notify rtp-nte clid network-number 201130 clid substitute name no vad Оператору отдается 0 хотя не должен. Digital-Gate#test voice translation-rule 101 0231232 Matched with rule 1 Original number: 0231232 Translated number: 231232 Original number type: none Translated number type: none Original number plan: none Translated number plan: none Тест это подтверждает но попадаю в ДЧ, как то не совсем удобно. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
All is not what it seems Posted November 17, 2011 Смотрите дебаг, может у вас два нуля приходит:) Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
sunrise333 Posted November 17, 2011 Смотрите дебаг, может у вас два нуля приходит:) Какой дебаг, можно уточнить? Не совсем понял откуда приходит? Я сам на теле набираю. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
All is not what it seems Posted November 17, 2011 Какой дебаг, можно уточнить? В котором видно поступивший в cisco номер. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
sunrise333 Posted November 17, 2011 Какой дебаг, можно уточнить? В котором видно поступивший в cisco номер. кто из ccsip ? или из dialpeers ? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
All is not what it seems Posted November 17, 2011 deb ccsip mes Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
sunrise333 Posted November 18, 2011 deb ccsip mes Собственно вот, на ephone набираю 0411122 это же улетает к провайдеру. Вот требуемый дебаг: *Nov 18 00:27:23.362: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:0411122@66.66.66.66:5060 SIP/2.0 Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 Remote-Party-ID: "201130" <sip:201130@55.55.55.55>;party=calling;screen=yes;pri vacy=off From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66> Date: Sun, 17 Mar 2002 00:27:23 GMT Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 Supported: 100rel,timer,resource-priority,replaces Min-SE: 1800 Cisco-Guid: 2303576989-947130838-2230616489-3246961877 User-Agent: Cisco-SIPGateway/IOS-12.x Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIF Y, INFO, REGISTER CSeq: 101 INVITE Max-Forwards: 70 Timestamp: 1016324843 Contact: <sip:201130@55.55.55.55:5060> Call-Info: <sip:55.55.55.55:5060>;method="NOTIFY;Event=telephone-event;Duration =2000" Expires: 180 Allow-Events: telephone-event Content-Type: application/sdp Content-Disposition: session;handling=required Content-Length: 259 v=0 o=CiscoSystemsSIP-GW-UserAgent 4652 7834 IN IP4 55.55.55.55 s=SIP Call c=IN IP4 55.55.55.55 t=0 0 m=audio 16826 RTP/AVP 0 8 101 c=IN IP4 55.55.55.55 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 *Nov 18 00:27:23.362: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 100 Trying Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66> Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 101 INVITE Timestamp: 1016324843 *Nov 18 00:27:23.470: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 183 Session Progress Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66>;tag=3d7b4ef4 Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 101 INVITE Timestamp: 1016324843 Contact: <sip:0411122@66.66.66.66:5060;user=phone;transport=udp> Require: 100rel Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE ,MESSAGE,REFER RSeq: 1 Content-Length: 147 Content-Type: application/sdp v=0 o=HuaweiSoftX3000 493899 493899 IN IP4 66.66.66.66 s=Sip Call c=IN IP4 66.66.66.66 t=0 0 m=audio 47918 RTP/AVP 8 a=rtpmap:8 PCMA/8000 *Nov 18 00:27:23.474: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: PRACK sip:0411122@66.66.66.66:5060;user=phone;transport=udp SIP/2.0 Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK23B2C From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66>;tag=3d7b4ef4 Date: Sun, 17 Mar 2002 00:27:23 GMT Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 102 PRACK RAck: 1 101 INVITE Max-Forwards: 70 Content-Length: 0 *Nov 18 00:27:23.486: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 200 OK Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK23B2C From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66>;tag=3d7b4ef4 Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 102 PRACK Content-Length: 0 *Nov 18 00:27:24.202: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: CANCEL sip:0411122@66.66.66.66:5060 SIP/2.0 Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66> Date: Sun, 17 Mar 2002 00:27:23 GMT Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 101 CANCEL Max-Forwards: 70 Timestamp: 1016324844 Reason: Q.850;cause=16 Content-Length: 0 *Nov 18 00:27:24.206: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 200 OK Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66>;tag=3d7b4ef4 Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 101 CANCEL Timestamp: 1016324844 *Nov 18 00:27:24.222: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 487 Request Terminated Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66>;tag=3d7b4ef4 Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 CSeq: 101 INVITE Timestamp: 1016324843 Content-Length: 0 *Nov 18 00:27:24.222: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: ACK sip:0411122@66.66.66.66:5060 SIP/2.0 Via: SIP/2.0/UDP 55.55.55.55:5060;branch=z9hG4bK22D96 From: "201130" <sip:201130@66.66.66.66>;tag=48C08F4-1094 To: <sip:0411122@66.66.66.66>;tag=3d7b4ef4 Date: Sun, 17 Mar 2002 00:27:23 GMT Call-ID: 95BCC7AB-387411D6-84F981A9-C188B4D5@55.55.55.55 Max-Forwards: 70 CSeq: 101 ACK Allow-Events: telephone-event Content-Length: 0 Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
sunrise333 Posted November 18, 2011 (edited) Впрос закрыт. ! voice translation-profile Outbound translate called 101 ! а было вот так ! voice translation-profile Outbound translate calling 101 ! Edited November 18, 2011 by sunrise333 Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
leveler Posted November 18, 2011 voice translation-rule 101 rule 1 /^0*\(.*\)/ /\1/ ? Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...