[Asterisk-code-review] res_pjsip_messaging: Allow setting domain of recipient (asterisk[18])

George Joseph asteriskteam at digium.com
Thu Mar 25 09:48:06 CDT 2021


George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/15597 )

Change subject: res_pjsip_messaging: Allow setting domain of recipient
......................................................................


Patch Set 3: Code-Review-1

After reviewing the existing code and running some tests, I've determined the following...
If you construct your MessageSend like
MessageSend(pjsip:sip:myproviderendpoint/sip:7205551212 at somedomain.com,7205559999 at mypbx1.net)
The message WILL be sent with both a RequestURI and a To header of sip:7205551212 at somedomain.com.
Having said that, the way the code is written, 'somedomain.com' is also used as the destination contact instead of the contact associated with the endpoint/aor so the actual MESSAGE message is actually sent to 'somedomain.com'.  Personally, I think that's weird but if that works for you, you don't need this review.  If that doesn't work for you, then I'd consider making get_outbound_endpoint() and msg_send() do the "right" thing.  I.E. use the URI to set the To header but DON'T use that URI as the destination contact.


-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/15597
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: I26fb8605d7cb200332a0442879fd9a5679a65022
Gerrit-Change-Number: 15597
Gerrit-PatchSet: 3
Gerrit-Owner: Brian J. Murrell <brian at interlinx.bc.ca>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Thu, 25 Mar 2021 14:48:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210325/c9d1e48b/attachment.html>


More information about the asterisk-code-review mailing list