Determining if Incoming SIP Message is 302 Moved Temporarily

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
JRayfield
Posts: 147
Joined: Mon Dec 03, 2012 5:50 pm
Location: Springfield, MO

Determining if Incoming SIP Message is 302 Moved Temporarily

Post by JRayfield »

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
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by 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
Posts: 147
Joined: Mon Dec 03, 2012 5:50 pm
Location: Springfield, MO

Post by 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
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by Mike »

How do you want to interfere "302" ?
Rewrite? Drop? or let the SIP server send ACK back on behalf of UAC?
JRayfield
Posts: 147
Joined: Mon Dec 03, 2012 5:50 pm
Location: Springfield, MO

Post by 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
John Rayfield, Jr. CETma
Rayfield Communications
Springfield, MO
www.rayfield.net
Post Reply