Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Can Brekeke Sip Gateway add new SIP headers in the SIP Frame
Author Message
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Mon Aug 19, 2013 10:55 am    Post subject: Can Brekeke Sip Gateway add new SIP headers in the SIP Frame Reply with quote

1. Brekeke Product Name and Version: Brekeke SIP Server , Version 3.2.2.9 Evaluation

2. Java version:

3. OS type and the version: Windows

4. UA (phone), gateway or other hardware/software involved: TEST

5. Your problem:

Can Brekeke Sip Gateway add new SIP headers in the SIP Frame?

In the Dial Plan / Deploy Patterns I configured:

$response=302
NEW_DATA=THIS IS A TEST
Contact=sip:808080@IP_ADDRESS

I need to add the header NEW_DATA in the frame (NEW_DATA not exist in frame) but when I Test, the header is not present in the SIP Message Header.

Can you healpme please?
Back to top
View user's profile
cocoa
Brekeke Junior Member


Joined: 12 Feb 2009
Posts: 7
Location: Japan

PostPosted: Mon Aug 19, 2013 11:47 am    Post subject: Reply with quote

Is it for the response 302?

Try this.
Deploy Patterns
$response = 302
_NEW_DATA = THIS IS A TEST
_Contact = sip:808080@IP_ADDRESS
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Mon Aug 19, 2013 1:12 pm    Post subject: Reply with quote

Cocoa, Thanks for your reply

I tried your suggestion but the header NEW_DATA does not appear in frame redirected to the destination IP.

I'm trying to add the new header for a Call originated in a Softphone registered in brekeke Sip proxy who routed to another gateway previously adding the new Header to pass additional information to the call

My configuration is:

Matching Patterns
$request = ^INVITE
To = sip:808080@

Deploy Patterns
$response = 302
_user-to-user = THIS IS A TEST
_Contact = sip:808080@DEST_IP_ADDRESS

thanks for your help.

Sorry but my english is no good Smile
Back to top
View user's profile
cocoa
Brekeke Junior Member


Joined: 12 Feb 2009
Posts: 7
Location: Japan

PostPosted: Mon Aug 19, 2013 1:23 pm    Post subject: Reply with quote

Hi lperezu,

Are you sure that your DialPlan rule is matched??
Let you check it in the [Dial Plan History] page.
Back to top
View user's profile
lperezu
Brekeke Addict


Joined: 19 Aug 2013
Posts: 26
Location: Lima

PostPosted: Mon Aug 19, 2013 2:19 pm    Post subject: Reply with quote

Yes...

NVITE sip:808080@XX.XXX.XXX.205 SIP/2.0
Via: SIP/2.0/UDP XX.XXX.XXX.205:5050;branch=z9hG4bKABF5BB36421A470BF2AC455F08902F47;rport=5050
From: "10000" <sip:10000@XX.XXX.XXX.205>;tag=2D1DD309173D550D6C9529C0C4F5C3C7
To: <sip:808080@xx.XXX.XXX.205>
Contact: <sip:10000@XX.XXX.XXX.205:5050;transport=udp>
Call-ID: 7A29D69D8B691FA6AA6EC82CC2C2B508E860@10.252.195.205
Proxy-Authorization: Digest username="10000", realm="E-TEST3-3759", nonce="6277ea8b1210ed507403d13764513a3ddf61e429", uri="sip:808080@XX.XXX.XXX.205", response="b98a52a92c69d3d1c53055a71aa85458", algorithm=MD5
User-Agent: Kapanga Softphone Desktop Windows 1.00/2182d+1375735563_10604B6ADCDE_08002700C0EF (not registered)
Supported: timer, replaces
CSeq: 2 INVITE
Max-Forwards: 70
Session-Expires: 1800;refresher=uac
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Content-Type: application/sdp
Content-Length: 387

can you helpme with this problem?
Back to top
View user's profile
cocoa
Brekeke Junior Member


Joined: 12 Feb 2009
Posts: 7
Location: Japan

PostPosted: Mon Aug 19, 2013 5:29 pm    Post subject: Reply with quote

Does the SIP Server return 302 with the new Contact header?
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