Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
300 Multiple Choices; source number modification
Author Message
PiotrOS
Brekeke Junior Member


Joined: 09 Apr 2015
Posts: 8

PostPosted: Thu Apr 09, 2015 4:09 am    Post subject: 300 Multiple Choices; source number modification Reply with quote

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/networkpatterns.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.
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 287
Location: Japan

PostPosted: Thu Apr 09, 2015 9:32 pm    Post subject: Reply with quote

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.
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