[asterisk-bugs] [JIRA] (ASTERISK-22924) PJSIP MESSAGE support does not present the contact information on outbound messages

Anthony Messina (JIRA) noreply at issues.asterisk.org
Wed Jan 1 09:05:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-22924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213458#comment-213458 ] 

Anthony Messina commented on ASTERISK-22924:
--------------------------------------------

Sorry, hit send too fast.  The reason I'm not sure why sip -> sips rewrite needs to occur is that the MessageSend is using

{code} 
[ Context 'test-messaging' created by 'pbx_config' ]
  's' =>            1. Verbose(1, Incoming MESSAGE from ${MESSAGE(from)} to ${MESSAGE(to)}) [pbx_config]
                    2. Set(TO=${CUT(MESSAGE(to),:,3)})            [pbx_config]
                    3. MessageSend(pjsip:${CUT(TO,@,1)}, ${MESSAGE(from)}) [pbx_config]
                    4. Hangup()                                   [pbx_config]
{code}

in my dialplan.  It seems to me it should use what it's given:

{code}
Executing [s at test-messaging:3] MessageSend("Message/ast_msg_queue", "pjsip:buser, "A User" <sip:auser at example.com>") in new stack
{code}

Perhaps I don't really understand the need (regardless of Asterisk) why there needs to be SIP vs SIPS, especially since (in the case of Asterisk), it's going to lookup its own contact via the AOR and use the proper transport anyway:

{code}
Contact:  auser/sip:auser at 10.77.79.204:45006;transport=TLS
{code}
                
> PJSIP MESSAGE support does not present the contact information on outbound messages
> -----------------------------------------------------------------------------------
>
>                 Key: ASTERISK-22924
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22924
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_messaging
>    Affects Versions: 12.0.0-beta1
>         Environment: Fedora 19 x86_64
>            Reporter: Anthony Messina
>            Assignee: Kevin Harwell
>            Severity: Minor
>         Attachments: asterisk_transaction_MESSAGE_2013-12-31_no_from_domain.txt, asterisk_transaction_MESSAGE_2014-01-01.txt, pjsip_message_fromdomain.txt
>
>
> When processing SIP MESSAGE requests, PJSIP does not add/retain the contact information of the sender on the outbound message, which makes it difficult for clients to display messages in a usable fashion.  Primarily, the "User Name" portion of the callerid is removed from the "From" header, and the fromdomain/from_domain is replaced with the IP addr of the AOR.  Also, it modifies "sip" to "sips".
> {code}
> From: <sips:testuser at 10.1.2.204>;tag=d3df0476-9b58-4565-b300-8cb7bad5f514
> {code}
> I'll attach pjsip logs for one inbound/outbound circuit where I'm simply sending a MESSAGE to myself.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list