Author |
Message |
jasongreb Brekeke Newbie
![](images/spacer.gif)
Joined: 25 Aug 2022 Posts: 4
Location: North Carolina
|
Posted: Wed Aug 09, 2023 4:24 am Post subject: Set target to use source IP address of Contact URI |
|
|
1. Brekeke Product Name and Version: 3.14.5
2. Java version: AdoptOpenJDK (latest)
3. OS type and the version: Windows Server 2019
4. UA (phone), gateway or other hardware/software involved: CUCM/Rauland Enterprise
5. Your problem: I am setting up a dial plan to take incoming calls from CUCM and send them to the appropriate node in an app cluster. The RE app node registers a user as an endpoint in Brekeke. There is a different contact address however, which is where I need to send it. As an example, the Contact URI could be sip:12345@sipcontact.domain.org:5060 (1.1.1.1:5060) or sip:12345@sipcontact.domain.org:5060 (1.1.1.2:5060) depending on which node registered it. I need to get either the 1.1.1.1 or the 1.1.1.2 into the $target on a deploy pattern. Any thoughts on how to get this information so I can ensure it is going to the right node without manually changing each time it switches nodes? |
|
Back to top |
|
Harold Brekeke Master Guru
![](images/spacer.gif)
Joined: 21 Sep 2008 Posts: 287
Location: Japan
|
Posted: Sat Aug 12, 2023 2:20 pm Post subject: |
|
|
> As an example, the Contact URI could be sip:12345@sipcontact.domain.org:5060 (1.1.1.1:5060) or sip:12345@sipcontact.domain.org:5060 (1.1.1.2:5060)
Is 1.1.1.1:5060 or 1.1.1.2:5060 a source IP address/port of a SIP-REGISTER?
If so you can get it with $addrPort in DialPlan.
Here is the example in Deploy Patterns.
$target = %{$addrPort} |
|
Back to top |
|
|