[Home]

Summary:ASTERISK-29631: pjsip - MessageSend error
Reporter:Mathieu Therrien (ve2tmq)Labels:
Date Opened:2021-09-06 18:28:13Date Closed:2021-09-07 08:03:07
Priority:MinorRegression?
Status:Closed/CompleteComponents:pjproject/pjsip
Versions:18.5.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Unix/FreeBSDAttachments:
Description:Asterisk stopped to send SMS.  I've got this error message.

ERROR[100374]: res_pjsip.c:4420 int create_out_of_dialog_request(const pjsip_method *, struct ast_sip_endpoint *, const char *, struct ast_sip_contact *, pjsip_tx_data **): Unable to create outbound MESSAGE request to endpoint voipms as URI 'sip:[dst phone number]@server.voip.ms>' is not valid

I search for same issue, but was not documented or reported
Comments:By: Asterisk Team (asteriskteam) 2021-09-06 18:28:16.790-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Mathieu Therrien (ve2tmq) 2021-09-06 19:35:38.977-0500

For info, this is my dialplan, it worked until upgrade version
{code}
[sms-out]
exten => _X.,1,NoOp(Outbound Message dialplan invoked)
same =>     n,NoOp(To ${MESSAGE(to)})
same =>     n,NoOp(From ${MESSAGE(from)})
same =>     n,NoOp(Body ${MESSAGE(body)})
same =>     n,Set(NUMBER_FROM=${CUT(CUT(MESSAGE(from),@,1),:,2)})
same =>     n,Set(NUMBER_TO=${CUT(CUT(MESSAGE(to),@,1),:,2)})
same =>     n,Set(ACTUAL_FROM="${NUMBER_FROM}" <sip:user@realm>)
same =>     n,Set(ACTUAL_TO=pjsip:voipms/sip:${NUMBER_TO}@realm>)
same =>     n,MessageSend(${ACTUAL_TO}, ${ACTUAL_FROM})
same =>     n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
same =>     n,Hangup()
{code}

By: George Joseph (gjoseph) 2021-09-07 07:51:23.534-0500

{code}
same =>     n,Set(ACTUAL_TO=pjsip:voipms/sip:${NUMBER_TO}@realm>)
{code}

Your issue is that you have a closing '>' but no matching opening '<'.
Try removing that closing '>'.


By: Mathieu Therrien (ve2tmq) 2021-09-07 08:01:38.542-0500

Hi George.  Thanks for answer.  You are right.  I will edit Wiki from provider, this issue come from there.

Thanks again.

By: Mathieu Therrien (ve2tmq) 2021-09-07 08:03:07.798-0500

Thanks, I will fix Wiki from provider.