Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Determining if Incoming SIP Message is 302 Moved Temporarily
Author Message
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Tue Jan 07, 2020 1:43 pm    Post subject: Determining if Incoming SIP Message is 302 Moved Temporarily Reply with quote

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
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Fri Jan 10, 2020 10:20 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Fri Jan 10, 2020 11:11 am    Post subject: Reply with quote

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
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Fri Jan 10, 2020 2:58 pm    Post subject: Reply with quote

How do you want to interfere "302" ?
Rewrite? Drop? or let the SIP server send ACK back on behalf of UAC?
Back to top
View user's profile Visit poster's website
JRayfield
Brekeke Guru


Joined: 03 Dec 2012
Posts: 147
Location: Springfield, MO

PostPosted: Fri Jan 10, 2020 5:17 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1