[Home]

Summary:ASTERISK-23969: SendMessage AMI action Cant Send Text Message Over PJSIP
Reporter:Andrew Nagy (tm1000)Labels:
Date Opened:2014-06-30 16:04:06Date Closed:2014-08-05 15:12:26
Priority:MinorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip_messaging
Versions:12.2.0 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Trying to send a message over the AMI to a SPI URI doesn't appear to be working.

The message I will keep getting back is: "[2014-06-30 17:01:27] ERROR[781]: res_pjsip_messaging.c:576 msg_send: PJSIP MESSAGE - Could not find endpoint and no default outbound endpoint configured"

No matter how I have the TO: address configured inside of SendMessage.

pjsip show endpoints
{code}
Endpoint:  fpbx-1-mh7JkBYOKFFO                                  Not in use    0 of inf
   OutAuth:  fpbx-1-mh7JkBYOKFFO/mh7JkBYOKFFO
       Aor:  fpbx-1-mh7JkBYOKFFO                                0
     Contact:  fpbx-1-mh7JkBYOKFFO/sip:mh7JkBYOKFFO@trunk1.fre  Unknown               nan
 Transport:  0.0.0.0-udp               udp      0      0  0.0.0.0:5060
  Identify:  192.159.66.3/255.255.255.255

Endpoint:  fpbx-2-mh7JkBYOKFFO                                  Not in use    0 of inf
   OutAuth:  fpbx-2-mh7JkBYOKFFO/mh7JkBYOKFFO
       Aor:  fpbx-2-mh7JkBYOKFFO                                0
     Contact:  fpbx-2-mh7JkBYOKFFO/sip:mh7JkBYOKFFO@trunk2.fre  Unknown               nan
 Transport:  0.0.0.0-udp               udp      0      0  0.0.0.0:5060
  Identify:  66.243.108.101/255.255.255.255
{code}

Here is what I am trying to send:
{code}
To: pjsip:195125947XX@trunk1.freepbx.com
From: pjsip:1000
Body: Test
{code}

I've tried several different combinations of the above including:

To: pjsip:fpbx-1-mh7jkby0kff0/sip:195125947XX@trunk1.freepbx.com

And they all throw the same error. Matt Jordan said I should open a bug report on it so here it is.
Comments: