Forums Read-only archive

Determining if Incoming SIP Message is 302 Moved Temporarily

5 posts · Brekeke SIP Server Forum

JRayfield Original post
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?
Mike
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-w ... -dial-plan

Otherwise the Session Plugin API will meet the requirement.
JRayfield
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
Mike
How do you want to interfere "302" ?
Rewrite? Drop? or let the SIP server send ACK back on behalf of UAC?
JRayfield
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