How to change MSRP from sip address?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change MSRP from sip address?

Pranathi Venkatayogi

I need to replace the “From” address of MSRP message with something different.

I noticed that module does not allow one to set values from config file.

 

What does it take to enable this functionality? Does anyone have a prototype I can leverage?

 

Need to replace from domain with some other domain –

 

Given: MSRP body is - From: cust3 <sip:cust3@devtranslation.sms-test.cyracom.com>#015#012To: <sip:[hidden email]>#015#012DateTime: …..

 

Wanted: MSRP body is - From: cust3 <sip:cust3@new domain >#015#012To: <sip:[hidden email]>#015#012DateTime: …..

 

Thanks,

Pranathi Venkatayogi

System Developer II

(520) 745-9447 x4466

www.cyracom.com

 

Join us:   cid:image001.gif@01D1C9C9.C4E8B6D0 cid:image002.gif@01D1C9C9.C4E8B6D0 cid:image003.gif@01D1C9C9.C4E8B6D0 cid:image004.gif@01D1C9C9.C4E8B6D0

 

cid:image005.png@01D1C9C9.C4E8B6D0

 

DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom, LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.

 


_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: How to change MSRP from sip address?

Alex Balashov
Come on, man. You're going to e-mail the entire list + three random
individuals, just in case deterministic computers don't work
deterministically?

We're all on the list, you know. :-)

> From: Pranathi Venkatayogi <[hidden email]>
> To: "Kamailio (SER) - Users Mailing List" <[hidden email]>
> CC: "[hidden email]" <[hidden email]>, "[hidden email]" <[hidden email]>, Mick McGrellis <[hidden email]>

--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: How to change MSRP from sip address?

Daniel-Constantin Mierla-6
In reply to this post by Pranathi Venkatayogi

Hello,

what do you mean by 'from sip address'? The From header in the INVITE initiating a MSRP chat?

Cheers,
Daniel


On 15.06.17 23:56, Pranathi Venkatayogi wrote:

I need to replace the “From” address of MSRP message with something different.

I noticed that module does not allow one to set values from config file.

 

What does it take to enable this functionality? Does anyone have a prototype I can leverage?

 

Need to replace from domain with some other domain –

 

Given: MSRP body is - From: cust3 <<a class="moz-txt-link-freetext" href="sip:cust3@">sip:cust3@devtranslation.sms-test.cyracom.com>#015#012To: <a class="moz-txt-link-rfc2396E" href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>#015#012DateTime: …..

 

Wanted: MSRP body is - From: cust3 <<a class="moz-txt-link-freetext" href="sip:cust3@">sip:cust3@new domain >#015#012To: <a class="moz-txt-link-rfc2396E" href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>#015#012DateTime: …..

 

Thanks,

Pranathi Venkatayogi

System Developer II

(520) 745-9447 x4466

www.cyracom.com

 

Join us:   cid:image001.gif@01D1C9C9.C4E8B6D0 cid:image002.gif@01D1C9C9.C4E8B6D0 cid:image003.gif@01D1C9C9.C4E8B6D0 cid:image004.gif@01D1C9C9.C4E8B6D0

 

cid:image005.png@01D1C9C9.C4E8B6D0

 

DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom, LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.

 


-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: How to change MSRP from sip address?

Pranathi Venkatayogi

Yes. In the example below, I would like keep the same connection, but change “From” when routing to the other end. And change it back when messages are destined to cust3 again.

 

2017-06-15 18:12:22.622140 [blink.exe 18176]: 10.11.200.13:56459 --> 10.99.52.17:2855

MSRP 724e5edef489340c SEND

To-Path: msrps://10.99.52.17:2855/s.28641.1.1903524142;tcp msrps://10.99.54.18:2855/e47976b4f6716ca7ce3a;tcp

From-Path: msrps://10.0.0.5:56459/bf85600695b5ab468931;tcp

Message-ID: 557e5ab42c43da38

Byte-Range: 1-667/667

Success-Report: yes

Failure-Report: yes

Content-Type: message/cpim

From: cust3 <sip:[hidden email]>

To: <sip:[hidden email]>

DateTime: 2017-06-15T18:12:22.620140-05:00

MIME-Version: 1.0

Content-Type: text/html; charset="utf8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta name="qrichtext" content="1" /><style type="text/css">

p, li { white-space: pre-wrap; }

</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;">

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">new one</p></body></html>

-------724e5edef489340c$

 

From: Daniel-Constantin Mierla [mailto:[hidden email]]
Sent: Friday, June 16, 2017 1:50 AM
To: Pranathi Venkatayogi <[hidden email]>; Kamailio (SER) - Users Mailing List <[hidden email]>
Cc: Mick McGrellis <[hidden email]>
Subject: Re: How to change MSRP from sip address?

 

Hello,

what do you mean by 'from sip address'? The From header in the INVITE initiating a MSRP chat?

Cheers,
Daniel

 

On 15.06.17 23:56, Pranathi Venkatayogi wrote:

I need to replace the “From” address of MSRP message with something different.

I noticed that module does not allow one to set values from config file.

 

What does it take to enable this functionality? Does anyone have a prototype I can leverage?

 

Need to replace from domain with some other domain –

 

Given: MSRP body is - From: cust3 <<a href="sip:cust3@">sip:cust3@devtranslation.sms-test.cyracom.com>#015#012To: <a href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>#015#012DateTime: …..

 

Wanted: MSRP body is - From: cust3 <<a href="sip:cust3@">sip:cust3@new domain >#015#012To: <a href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>#015#012DateTime: …..

 

Thanks,

Pranathi Venkatayogi

System Developer II

(520) 745-9447 x4466

www.cyracom.com

 

Join us:   cid:image001.gif@01D1C9C9.C4E8B6D0 cid:image002.gif@01D1C9C9.C4E8B6D0 cid:image003.gif@01D1C9C9.C4E8B6D0 cid:image004.gif@01D1C9C9.C4E8B6D0

 

cid:image005.png@01D1C9C9.C4E8B6D0

 

DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom, LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.

 



-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Reply | Threaded
Open this post in threaded view
|

Re: How to change MSRP from sip address?

Daniel-Constantin Mierla-6

This From header is in the MSRP message itself, it is not in the INVITE opening the MSRP session.

I guess this is an extension of your MSRP client or maybe an addition done later to the core MSRP RFC, because there only From-Path is defined, iirc.

There is no function offered by the msrp module in kamailio.cfg to change that header, so it will require to write some c code to implement such functionality.

Cheers,
Daniel


On 16.06.17 20:35, Pranathi Venkatayogi wrote:

Yes. In the example below, I would like keep the same connection, but change “From” when routing to the other end. And change it back when messages are destined to cust3 again.

 

2017-06-15 18:12:22.622140 [blink.exe 18176]: 10.11.200.13:56459 --> 10.99.52.17:2855

MSRP 724e5edef489340c SEND

To-Path: msrps://10.99.52.17:2855/s.28641.1.1903524142;tcp msrps://10.99.54.18:2855/e47976b4f6716ca7ce3a;tcp

From-Path: msrps://10.0.0.5:56459/bf85600695b5ab468931;tcp

Message-ID: 557e5ab42c43da38

Byte-Range: 1-667/667

Success-Report: yes

Failure-Report: yes

Content-Type: message/cpim

From: cust3 <a class="moz-txt-link-rfc2396E" href="sip:cust3@devtranslation.sms-test.cyracom.com"><sip:cust3@...>

To: <a class="moz-txt-link-rfc2396E" href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>

DateTime: 2017-06-15T18:12:22.620140-05:00

MIME-Version: 1.0

Content-Type: text/html; charset="utf8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta name="qrichtext" content="1" /><style type="text/css">

p, li { white-space: pre-wrap; }

</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;">

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">new one</p></body></html>

-------724e5edef489340c$

 

From: Daniel-Constantin Mierla [[hidden email]]
Sent: Friday, June 16, 2017 1:50 AM
To: Pranathi Venkatayogi [hidden email]; Kamailio (SER) - Users Mailing List [hidden email]
Cc: Mick McGrellis [hidden email]
Subject: Re: How to change MSRP from sip address?

 

Hello,

what do you mean by 'from sip address'? The From header in the INVITE initiating a MSRP chat?

Cheers,
Daniel

 

On 15.06.17 23:56, Pranathi Venkatayogi wrote:

I need to replace the “From” address of MSRP message with something different.

I noticed that module does not allow one to set values from config file.

 

What does it take to enable this functionality? Does anyone have a prototype I can leverage?

 

Need to replace from domain with some other domain –

 

Given: MSRP body is - From: cust3 <<a moz-do-not-send="true" href="sip:cust3@">sip:cust3@devtranslation.sms-test.cyracom.com>#015#012To: <a moz-do-not-send="true" href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>#015#012DateTime: …..

 

Wanted: MSRP body is - From: cust3 <<a moz-do-not-send="true" href="sip:cust3@">sip:cust3@new domain >#015#012To: <a moz-do-not-send="true" href="sip:agent1@xmpp.xgw.cyracomdev.com"><sip:agent1@...>#015#012DateTime: …..

 

Thanks,

Pranathi Venkatayogi

System Developer II

(520) 745-9447 x4466

www.cyracom.com

 

Join us:   cid:image001.gif@01D1C9C9.C4E8B6D0 cid:image002.gif@01D1C9C9.C4E8B6D0 cid:image003.gif@01D1C9C9.C4E8B6D0 cid:image004.gif@01D1C9C9.C4E8B6D0

 

cid:image005.png@01D1C9C9.C4E8B6D0

 

DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom, LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.

 



-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users