Author |
Message |
JRayfield Brekeke Guru
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Tue Jan 07, 2020 1:43 pm Post subject: Determining if Incoming SIP Message is 302 Moved Temporarily |
|
|
1. Brekeke Product Name and Version:
Brekeke SIP Server 3.9.4.3/517-1
2. Java version:
1.8.0_231
3. OS type and the version:
Windows Server 2016
4. UA (phone), gateway or other hardware/software involved:
3CX IP PBX
5. Your problem:
I need to be able to determine if an inbound SIP message is a "302 Moved Temporarily". Instead of a Request Line, this message has a Status Line. Any suggestions on how to determine that an inbound message is a "Status-Line" message, since there is no $status function in BSS? _________________ John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net |
|
Back to top |
|
Mike Support Team
Joined: 07 Mar 2005 Posts: 733
Location: Sunny San Mateo
|
Posted: Fri Jan 10, 2020 10:20 am Post subject: |
|
|
What's your purpose?
Do you want to redirect a call according to 302's Contact URI?
If so, Failover plugin will meet the requirement.
https://docs.brekeke.com/sip/failover-with-the-dial-plan
Otherwise the Session Plugin API will meet the requirement. |
|
Back to top |
|
JRayfield Brekeke Guru
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Fri Jan 10, 2020 11:11 am Post subject: |
|
|
It's not for failover.
I'm trying to interface an IP PBX (3CX) with a Microsoft Exchange UM system, so that the voice-enabled IVR can be used. But, we don't want to use the voice mail or any other functionality in the Exchange UM system. The Exchange UM system sends a 302 when the IP PBX sends its first INVITE, to redirect the IP PBX to send a new INVITE to another server/service running in the Exchange UM system.
I'll take a look at the session plugin API.
Thanks!
John _________________ John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net |
|
Back to top |
|
Mike Support Team
Joined: 07 Mar 2005 Posts: 733
Location: Sunny San Mateo
|
Posted: Fri Jan 10, 2020 2:58 pm Post subject: |
|
|
How do you want to interfere "302" ?
Rewrite? Drop? or let the SIP server send ACK back on behalf of UAC? |
|
Back to top |
|
JRayfield Brekeke Guru
Joined: 03 Dec 2012 Posts: 147
Location: Springfield, MO
|
Posted: Fri Jan 10, 2020 5:17 pm Post subject: |
|
|
I've got to look at some information again to see exactly what response needs to be sent to the Exchange server when it sends the 302.
I just noticed that the Failover Plugin may do exactly what I need done, where if BSS receives a 302, then BSS sends a new INVITE to the Contact address that's in the 302 message.
John _________________ John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net |
|
Back to top |
|
|