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

2012-04-10 Thread Roger Burton West
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@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?

Roger

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2012-04-10 Thread Danny Nicholas
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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
West
Sent: Tuesday, April 10, 2012 9:05 AM
To: asterisk-users@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@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?

Roger

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2012-04-10 Thread Roger Burton West
On Tue, Apr 10, 2012 at 11:50:40AM -0500, Danny Nicholas wrote:
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.

Those are all about sending data in an existing channel, though -
the trick is that I don't _have_ a channel, which is presumably why
MessageSend exists. Is there a way to set up a channel without ringing
the phone?


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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2012-04-10 Thread Danny Nicholas
Not that I'm aware of;  however you can call and have the phone auto-answer
just to take the message - it's a SIP header tweak that has been discussed
here.

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
West
Sent: Tuesday, April 10, 2012 3:36 PM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] MessageSend, SIP, and call files

On Tue, Apr 10, 2012 at 11:50:40AM -0500, Danny Nicholas wrote:
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.

Those are all about sending data in an existing channel, though - the trick
is that I don't _have_ a channel, which is presumably why MessageSend
exists. Is there a way to set up a channel without ringing the phone?


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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users