300 Multiple Choices; source number modification

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
PiotrOS
Posts: 8
Joined: Thu Apr 09, 2015 2:02 am

300 Multiple Choices; source number modification

Post by PiotrOS »

1. Brekeke Product Name and version: Brekeke SIP Server

2. Java version: 1.6.0_45

3. OS type and the version: Linux centos 6.6

4. UA (phone), gateway or other hardware/software involved: doesn't matter

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : Pattern 9

6. Your problem:

Right now BSS takes src number from INVITE, and I would like to know if BSS can take src number from 300 Multiple choices?
I would like to know possibility of parsing extra information in field "contact" by Brekeke switch.

Example how it looks like:

BSS sends:
INVITE sip:998906179545@xx.xx.xx.xx SIP/2.0
Via: SIP/2.0/UDP xx.xx.xx.xx:5060;rport;branch=z9hG4bK5808fdc16fd414-30-8202a4d5
Via: SIP/2.0/UDP xx.xx.xx.xx:5060;branch=z9hG4bK1522972f;rport=5060
From: "35542233273" <sip:35542233273@xx.xx.xx.xx>;tag=as3c624940
To: <sip:998906179545@xx.xx.xx.xx>
Contact: <sip:35542233273@xx.xx.xx.xx:5060>
Call-ID: 1111786e52b3101b46b6dd823fb284fd@xx.xx.xx.xx
CSeq: 102 INVITE
User-Agent: Enable Softswitch v.1.1
Max-Forwards: 69
Remote-Party-ID: "35542233273" <sip:35542233273@xx.xx.xx.xx>;privacy=off;screen=no
Date: Thu, 28 Aug 2013 14:32:21 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Record-Route: <sip:xx.xx.xx.xx:5060;lr>
Content-Type: application/sdp
Content-Length: 255

Get answer:
SIP/2.0 300 Multiple Choices
Via: SIP/2.0/UDP xx.xx.xx.xx;rport;branch=z9hG4bKNrva1QjcmUD8B
From: "New User" <sip:35542233273@xx.xx.xx.xx>;tag=H95FN3850egQF
To: <sip:998906179545@xx.xx.xx.xx:5062>
Contact: <sip:998906179545@xx.xx.xx.xx>;src_number=135542233273;q=1.00
Call-ID: 1111786e52b3101b46b6dd823fb284fd@xx.xx.xx.xx
CSeq: 70588150 INVITE
Max-Forwards: 69
Content-Length: 0


As you see in field "Contact: <sip:998906179545@xx.xx.xx.xx>;src_number=135542233273;q=1.00" we add extra field of src_number.
And the question is can Brekeke SIP Server parse field Contact with extra expression and modify Src number before it’s send to the provider?


Thanks in advance for any hint.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Is it based on any specification such as RFC?

If you want to get "src_number" from "300", you may need to write a session plugin for parsing packets.
Post Reply