03-23-2022 06:41 AM - edited 03-23-2022 06:43 AM
Hey!
I am learning Cisco CUBE and various functions before we install in our production environment.
I have managed to setup two PBX, two CUBE and two IP phone. And i can seup calls between the phones with matching on called-number and destionation-pattern (as configuration example below).
But i would like to match the destination on URI, for example 172.16.10.30 (My PBX2)
How do i achieve that? because when i debug and looks at the SIP message header the "TO" field is my default gateway.
INVITE sip:223344@192.168.50.21:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.50.1:5060;branch=z9hG4bK811BE5
Remote-Party-ID: "MicroSIP1" <sip:555444@192.168.50.1>;party=calling;screen=no;privacy=off
From: "MicroSIP1" <sip:555444@192.168.50.1>;tag=5279030-235E
To: <sip:223344@192.168.50.21>
Date: Wed, 16 Mar 2022 12:50:12 GMT
Call-ID: 73F6FB56-A45E11EC-88C2BE8A-296F00AF@192.168.50.1
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 1945535980-2757628396-2294070922-0695140527
User-Agent: Cisco-SIPGateway/IOS-17.3.4a
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1647435012
Contact: <sip:555444@192.168.50.1:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Session-ID: df81484d65445ab7bb619e966f2b287d;remote=00000000000000000000000000000000
Session-Expires: 1800
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 309
Router 1.
dial-peer voice 100 voip
description inbound LAN
session protocol sipv2
incoming called-number 55....
voice-class sip bind control source-interface GigabitEthernet2
voice-class sip bind media source-interface GigabitEthernet2
codec transparent
no vad
!
dial-peer voice 101 voip
description outbound LAN
destination-pattern 223344
session protocol sipv2
session target ipv4:192.168.10.20
voice-class sip bind control source-interface GigabitEthernet2
voice-class sip bind media source-interface GigabitEthernet2
codec transparent
no vad
!
dial-peer voice 200 voip
description outbound WAN
destination-pattern 55....
session protocol sipv2
session target ipv4:192.168.50.1
voice-class sip bind control source-interface GigabitEthernet1
voice-class sip bind media source-interface GigabitEthernet1
codec transparent
no vad
!
dial-peer voice 201 voip
session protocol sipv2
incoming uri from 1000
voice-class sip bind control source-interface GigabitEthernet1
voice-class sip bind media source-interface GigabitEthernet1
codec transparent
no vad
!
03-23-2022 11:29 AM
Please do not post duplicate posts.
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: