08-01-2020 04:54 AM
Hello,
As I don't have any experience with VoIP, can someone explain to me what does the below configuration do?
I want to understand the call direction.
dial-peer voice 200 voip
session protocol sipv2
session target ipv4:x.x.x.x:5060
session transport udp
incoming called-number 01T
voice-class codec 10
dtmf-relay sip-notify
clid network-provided
supplementary-service pass-through
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
!
dial-peer voice 210 voip
session protocol sipv2
session target ipv4:x.x.x.x:5060
session transport udp
incoming called-number 01T
voice-class codec 10
dtmf-relay sip-notify
clid network-provided
supplementary-service pass-through
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
Regards,
Solved! Go to Solution.
08-02-2020 12:30 AM - edited 08-03-2020 01:14 AM
Its not much complicated. when your router receive a call, before accepting the call router will check if there is a dial peer configured. when you configure incoming called-number 01T, you ask the router to match a inbound call with 01 and rest anything. accept the call matching your dial-peer.
next step is to process the call or send the call to a destination. to do this router will use session target ipv4: mentioned. in your case it will be 2.2.2.2. Router send the call to 2.2.2.2.
so when u send the call to 2.2.2.2, the router will use BVi1 interface as the source, so the SiP session will be between 1.1.1.1 to
2.2.2.2. imagine if there is one more interface configured on router called 3.3.3.3. based on your configuration , router will use 1.1.1.1 when initiating the sip session between 2.2.2.2.
Regarding the direction,:- this is a inbound dial-peer, because we are using incoming called-number. if we use destination-pattern in dial-peer it we can say it as a outbound Dial-peer(destination-pattern will also be used for inbound match. to understand this you need to learn more about the dial-peers).
08-03-2020 02:45 AM - edited 08-03-2020 03:22 AM
There are many different ways to achieve this, by reading your previous comments it’s quite clear that you don’t have a clear understanding on how dial peers operate. Recommend you to simply read up on the topic to gain a better understanding of how this functions. The very first answer you got has link to a excellent document about various techniques on how to match in- or outbound on dial peers. I would recommend you to use in via method or a wild card number match like inbound called . on your inbound dial peer and also to split the in- and outbound dial peers apart as it’s in my view makes it easier to follow the call as it flows through the router. Others have a different option on this, it’s a matter of preference.
As written before the dial peers you have will with the current configuration act as both in- and outbound if the call is destined to a called number that starts with 01 (inbound) and send it to the IP you have defined in your session target command (outbound). From what you wrote before this is the SIP server your service provider has on the SIP trunk service.
08-01-2020 05:04 AM
Its an incoming Sip dial peer when matched calls will be send to destination target x.x.x.x:5060.
you can learn more from below link.
08-01-2020 06:20 AM - edited 08-03-2020 12:36 AM
I would say they are inbound and outbound dial peers that matches on called numbers that starts with 01 and then an indefinite number of more digits. The call is sent to the IP that is defined in the session target command.
08-01-2020 06:39 AM
08-01-2020 07:07 AM - edited 08-01-2020 07:10 AM
BVi1 interface is used for Sip communication both your control and media is binded with BVI1 interface.
when an call comes with calling number starting with 01 it match dial peer 200 and 210. And it use the destination target mentioned in dial peer 200/210 to forward the call. In your case the ip address x.x.x.x in dial peer.
08-01-2020 07:10 AM - edited 08-03-2020 02:57 AM
The bind statement on the global side will just mean that the gateway will use that as it’s source for communication. It won’t affect or control how the call gets in via the dial peers.
Otherwise yes your description of what will happen to the call is correct.
08-01-2020 08:25 AM
08-01-2020 08:37 AM - edited 08-01-2020 09:20 AM
The source of outbound calls are the interface that is used in the bind statement you have in global configuration as you don’t have it defined on the dial peer.
08-01-2020 08:48 AM - edited 08-01-2020 09:00 AM
BVI 1 will be the source interface used when processing the call.
Dial-peer are used to match the dialed number based on calling and called information. in your case as you are using incoming called number 01 , the match will be based on calling informations. if the router receive call with calling information starting with 01, it will match the dial peer and use the destinations IP address mentioned in the dial-peer. when forwarding the call to destinations device, your router will use BVI1 interface as the source interface for communication.
08-01-2020 06:33 AM - edited 08-01-2020 06:54 AM
08-01-2020 06:56 AM
08-01-2020 07:12 AM - edited 08-01-2020 07:15 AM
You can learn more about bind command from below link.
08-01-2020 09:28 PM
@abimadaro4462 Your query is partially answered. The dial-peer you have shared is used for inbound. Since, I dont have visibility of IP addresses used in session target ipv4 i CANNOT say there is outbound leg from Router to destination ip.
Usually in correct way, incoming called number is matched basis the incoming called number <pattern>. In your case you are matching prefix digits matching 01.
Now, bind command can be used globally like you have configured and can also be applied to individual dial-peers. Difference is when applied globally it affects to all the configuration. If u apply individually on dial-peer it applies to that dial-peer only.
now i see you are asking about the callflow. I would suggest you to be precise and help us to understand the issue you are facing so the experts in forum or someone you have gone through similar issue can suggest you right way.
Also just share your Router version. Execute show version after logging into your router. Share the output here.
after you get the version, you can google IOS guide for that version.
you can search for each command. The explanation will help you to understand.
08-02-2020 12:08 AM - edited 08-02-2020 12:11 AM
@Ritesh Desai, Thanks for the reply, I'm now a bit lost, because I've answers saying it's inbound, another saying it's outbound. Actually all what I want to know is the call flow as I don't have an issue on the configuration level or the service level, is it from BVI1 --> SIP Server (Which identified as a session target) or is it from SIP Server --> BVI1?
As for IP addresses, I have BVI1 interface 1.1.1.1, session target IPv4 2.2.2.2:5060, those are the only two IP addresses that I've on my router.
08-02-2020 12:30 AM - edited 08-03-2020 01:14 AM
Its not much complicated. when your router receive a call, before accepting the call router will check if there is a dial peer configured. when you configure incoming called-number 01T, you ask the router to match a inbound call with 01 and rest anything. accept the call matching your dial-peer.
next step is to process the call or send the call to a destination. to do this router will use session target ipv4: mentioned. in your case it will be 2.2.2.2. Router send the call to 2.2.2.2.
so when u send the call to 2.2.2.2, the router will use BVi1 interface as the source, so the SiP session will be between 1.1.1.1 to
2.2.2.2. imagine if there is one more interface configured on router called 3.3.3.3. based on your configuration , router will use 1.1.1.1 when initiating the sip session between 2.2.2.2.
Regarding the direction,:- this is a inbound dial-peer, because we are using incoming called-number. if we use destination-pattern in dial-peer it we can say it as a outbound Dial-peer(destination-pattern will also be used for inbound match. to understand this you need to learn more about the dial-peers).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide