[asterisk-users] MessageSend, SIP, and call files

Danny Nicholas danny at debsinc.com
Tue Apr 10 11:50:40 CDT 2012

This is what "core show applications" in 10.1.3 shows
         SendDTMF: Sends arbitrary DTMF digits
               SendFAX: Sends a specified TIFF/F file as a FAX.
             SendImage: Sends an image file.
              SendText: Send a Text Message.
               SendURL: Send a URL.

You are using sendtext - you might want to use sendurl instead.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Roger Burton
Sent: Tuesday, April 10, 2012 9:05 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] MessageSend, SIP, and call files

As I've occasionally posted here before, I have user terminals which can
accept SIP text messages to an SMS-like interface.

After upgrading to Asterisk 10, I do indeed have external processes
generating these messages. But it's a bit ugly. What I'd _like_ to do is
simply generate a callfile, and something like this almost works:

Channel: Local/8902
Application: MessageSend
Set: MESSAGE(body)=messagebody
Data: sip:glowworm
Data: sip:glowworm

but (a) I need that reserved local number to let the call work at all (the
number just does an Answer(), Wait(10), Hangup) and (b) I can't seem to set
the sender's name. That ought to be the second Data parameter; actually the
second one seems to determine where the message goes, and whatever I set the
first one to the sender name always comes up as "asterisk". (Specifically,
in the packet capture, I have

From: "asterisk" <sip:asterisk@[ipaddr]:5060>

.) Now, I _can_ achieve the desired result, but only by having _another_
local number that does

exten => 8901,n,SET(MESSAGE(body)=${msg_out_body})
exten => 8901,n,MessageSend(${msg_out_to},${msg_out_from})

and setting up the callfile with:

Extension: 8901
Set: msg_out_to=glowworm
Set: msg_out_from=<sip:FROM at DOMAIN>

at which point the message will appear to originate from FROM (note that if
I put a display name component in the msg_out_from it gets ignored - but
that is the terminals' peculiarity). But that's ugly. Has anyone got this
working with a relatively straight callfile setup?

While I'm writing, does Asterisk 10 have any way to send a SIP message that
isn't text/plain?


-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

More information about the asterisk-users mailing list