[Asterisk-bugs] [Asterisk 0010259]: discrepacy in sendtext

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jul 20 11:22:21 CDT 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10259 
====================================================================== 
Reported By:                agx
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   10259
Category:                   Applications/app_sendtext
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.8  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             07-20-2007 11:00 CDT
Last Modified:              07-20-2007 11:22 CDT
====================================================================== 
Summary:                    discrepacy in sendtext
Description: 
SendText behave in a different way if channell is answered or not and in
dependency of the phone used

SendText should be consistent

Example: if channell is answered a GXP2000 display message onto the screen
while snom3X0 will not, so add_text in chan_sip.c shoul be changed to
address this:

static int add_text(struct sip_request *req, const char *text)
{
        /* XXX Convert \n's to \r\n's XXX */
        add_header(req, "Content-Type", "text/plain");
        add_header(req, "Content-Disposition", "desktop" );
        add_header_contentLength(req, strlen(text));
        add_line(req, text);
        return 0;
}

If channell is not answered there should be an option to have SendText
answer the channel itself otherwise on GXP2000 it will add the message into
the phone's SMS menù.

I'm not telling SendText that should work how i need, i'm just telling it
does not work in the same way on many phones.

IMHO it shoul be splitted in 2 apps: 1 to send the message onto the
display (usefull for AOC and other infoes during the call); 1 to send the
message into the phone's SMS area (usefull to send reminders and
notifications of stuffs happened);

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0010258 discrepacy in sendtext
====================================================================== 

---------------------------------------------------------------------- 
 file - 07-20-07 11:22  
---------------------------------------------------------------------- 
If the channel needs to be answered to work in your environment then you
should call Answer before it. As for different behavior and putting into
the SMS/on display chan_sip simply sends a MESSAGE packet to the device. It
is up to the device how to present it and where to put it. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-20-07 11:22  file           Status                   new => resolved     
07-20-07 11:22  file           Resolution               open => no change
required
07-20-07 11:22  file           Assigned To               => file            
07-20-07 11:22  file           Note Added: 0067632                          
======================================================================




More information about the asterisk-bugs mailing list