Binding SIP on a per dial-peer basis:

Hi Guys!

Very Cool and I had no idea you could do this, I am sure your all familiar with binding to SIP:

voice service voip
 sip
  bind all lo0
!

What I just found out and wish I had known sooner, is you can actually change this binding on a per dial-peer basis:

dial-peer voice 100 voip
 session target ipv4:voip.ccierants.com
session protocol sipv2
 voice-class sip bind control source-interface Loopback0
 voice-class sip bind media source-interface Loopback0

!

Pretty cool hey?

3 comments:

  1. A gotcha with this approach is that you cannot fully bind a dial-peer when an active SIP call is in progress. I think control will bind, but not media (I could have that backwards). If you don't notice, you end up with 1 way audio. For my CUBE environment, I bind in voice service voip to the internal interface and then modify the externally facing dial-peers to bind to the external interface.

    ReplyDelete

Popular old posts.