Re: [SR-Users] How to change MSRP from sip address?

2017-06-19 Thread Daniel-Constantin Mierla
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 
>
> To: 
>
> DateTime: 2017-06-15T18:12:22.620140-05:00
>
> MIME-Version: 1.0
>
> Content-Type: text/html; charset="utf8"
>
>  "http://www.w3.org/TR/REC-html40/strict.dtd";>
>
> 
>
> p, li { white-space: pre-wrap; }
>
> 
>
> new
> one
>
> ---724e5edef489340c$
>
>  
>
> *From:*Daniel-Constantin Mierla [mailto:mico...@gmail.com]
> *Sent:* Friday, June 16, 2017 1:50 AM
> *To:* Pranathi Venkatayogi ; Kamailio (SER)
> - Users Mailing List 
> *Cc:* Mick McGrellis 
> *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
> #015#012To:
> 
> #015#012DateTime: …..
>
>  
>
> Wanted: MSRP body is - From: cust3  >#015#012To: 
> #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
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to change MSRP from sip address?

2017-06-16 Thread 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 
To: 
DateTime: 2017-06-15T18:12:22.620140-05:00
MIME-Version: 1.0
Content-Type: text/html; charset="utf8"
http://www.w3.org/TR/REC-html40/strict.dtd";>

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

new 
one
---724e5edef489340c$

From: Daniel-Constantin Mierla [mailto:mico...@gmail.com]
Sent: Friday, June 16, 2017 1:50 AM
To: Pranathi Venkatayogi ; Kamailio (SER) - Users 
Mailing List 
Cc: Mick McGrellis 
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 
#015#012To: 
#015#012DateTime:
 .

Wanted: MSRP body is - From: cust3 #015#012To: 
#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
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to change MSRP from sip address?

2017-06-15 Thread Daniel-Constantin Mierla
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
> #015#012To:
> #015#012DateTime: …..
>
>  
>
> Wanted: MSRP body is - From: cust3 #015#012To:
> #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
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How to change MSRP from sip address?

2017-06-15 Thread 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 
> To: "Kamailio (SER) - Users Mailing List" 
> CC: "abalas...@evaristesys.com" , 
> "mico...@gmail.com" , Mick McGrellis 
> 

-- 
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
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users