[asterisk-dev] Help Need Asterisk SMS code and procedure

warrior back indianrocking at gmail.com
Fri Jun 10 02:23:41 CDT 2011


Hello Russell Bryant,

I am not able to find out which function and configuration I need to
add in extenstion.conf for SMS.
The exercise what I am doing is trying to send message for SIP Number
1000 to Sip Number 2000.
Based on this function i want to make a CLI command that will do
similar thing as dialplan function.
The CLI argumant is like to from "message" where to is destination SIP
number and from is sender SIP number.

Please help me for SMS.




 TIA.

Regards,
Vikash




> Hello,
> > I tried with asterisk1.6 version for SMS between two softphone but
> > understood this version does not support SMS hence I took the asterisk
> > branch from below link and used it for asterisk SMS(as this asterisk code
> > explained it is working for SMS) but even I am not able to send the
> message
> > from one sip number to another sip number.
> > The Link is http://svn.asterisk.org/svn/asterisk/team/russell/messaging/
> > https://reviewboard.asterisk.org/r/1042/
> >
> > The log shows "Unable to parse INFO message from" as shown below and In
> > packet capture shows 415 unsupported media type.
> >  I am using Windows messenger softphone.
> >
> >
> >
> > *Please help me how I will able to send SMS in asterisk.Please share it
> if
> > any configuration is needed in sip.conf or in other .conf file for SMS.
> > *
> > I want to send the sms from 1000 to 2000 where 1000 & 2000 is my SIP
> phone
> > number.
> >
> > == Starting Message/ast_msg_queue at default,sip:2000 at asterisk,1 failed
> so
> > falling back to exten 's'
> >     -- Executing [s at default:1] Wait("Message/ast_msg_queue", "1") in new
> > stack
> > [Jan  1 00:37:49] WARNING[535]: chan_sip.c:18641 handle_request_info:
> > Unable to parse INFO message from b27ee315779f40ab
> > b35c8154bea508d7 at 172.16.241.42
> > . Content
> >     -- Executing [s at default:2] Answer("Message/ast_msg_queue", "") in
> new
> > stack
> >     -- Executing [s at default:3] Set("Message/ast_msg_queue",
> > "TIMEOUT(digit)=5") in new stack
> > [Jan  1 00:37:50] ERROR[514]: pbx.c:3700 ast_func_write: Function TIMEOUT
> > not registered
> >     -- Executing [s at default:4] Set("Message/ast_msg_queue",
> > "TIMEOUT(response)=10") in new stack
> > [Jan  1 00:37:50] ERROR[514]: pbx.c:3700 ast_func_write: Function TIMEOUT
> > not registered
> >     -- Executing [s at default:5] BackGround("Message/ast_msg_queue",
> > "demo-congrats") in new stack
> > [Jan  1 00:37:50] WARNING[514]: channel.c:5078 set_format: Unable to find
> a
> > codec translation path from (nothing) to (gs
> > m)
> > [Jan  1 00:37:50] WARNING[514]: file.c:1004 ast_streamfile: Unable to
> open
> > demo-congrats (format (nothing)): Function no
> > t implemented
> > [Jan  1 00:37:50] WARNING[514]: pbx.c:9541 pbx_builtin_background:
> > ast_streamfile failed on Message/ast_msg_queue for de
> > mo-congrats
> >     -- Executing [s at default:6] BackGround("Message/ast_msg_queue",
> > "demo-instruct") in new stack
> > [Jan  1 00:37:50] WARNING[514]: channel.c:5078 set_format: Unable to find
> a
> > codec translation path from (nothing) to (gs
> > m)
> > [Jan  1 00:37:50] WARNING[514]: file.c:1004 ast_streamfile: Unable to
> open
> > demo-instruct (format (nothing)): Function no
> > t implemented
> > [Jan  1 00:37:50] WARNING[514]: pbx.c:9541 pbx_builtin_background:
> > ast_streamfile failed on Message/ast_msg_queue for de
> > mo-instruct
> >     -- Executing [s at default:7] WaitExten("Message/ast_msg_queue", "") in
> > new stack
> >     -- Timeout on Message/ast_msg_queue, going to 't'
> >     -- Executing [t at default:1] Goto("Message/ast_msg_queue", "#,1") in
> new
> > stack
> >     -- Goto (default,#,1)
> >     -- Executing [#@default:1] Playback("Message/ast_msg_queue",
> > "demo-thanks") in new stack
> > [Jan  1 00:38:00] WARNING[514]: channel.c:5078 set_format: Unable to find
> a
> > codec translation path from (nothing) to (gs
> > m)
> > [Jan  1 00:38:00] WARNING[514]: file.c:1004 ast_streamfile: Unable to
> open
> > demo-thanks (format (nothing)): Function not
> > implemented
> > [Jan  1 00:38:00] WARNING[514]: app_playback.c:476 playback_exec:
> > ast_streamfile failed on Message/ast_msg_queue for dem
> > o-thanks
> >     -- Executing [#@default:2] Hangup("Message/ast_msg_queue", "") in new
> > stack
> >   == Spawn extension (default, #, 2) exited non-zero on
> > 'Message/ast_msg_queue'
> >
> >
> > *Please help me how can i do sms by using Asterisk.
> I just check Mr Russell
> Bryant<https://reviewboard.asterisk.org/users/russell/>has implemented
> some simple apps using the pjsua Python module from pjsip
> that can send and receive messages sent through Asterisk.  Please help me
> to
> know from where i can get this code and procedure.*
>
>
>
>
> > Regards,
> > Vikash
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.digium.com/pipermail/asterisk-dev/attachments/20110609/8fda8c59/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Thu, 09 Jun 2011 12:49:17 -0000
> From: "Matthew Nicholson" <reviewboard at asterisk.org>
> Subject: Re: [asterisk-dev] [Code Review] Stop trying to uri_encode
>        the display name for the caller ID
> To: "David Vossel" <dvossel at digium.com>,        "Matthew Nicholson"
>        <mnicholson at digium.com>,        "Russell Bryant" <
> russell at digium.com>
> Cc: , Matthew Nicholson <reviewboard at asterisk.org>,     Asterisk
>        Developers <asterisk-dev at lists.digium.com>
> Message-ID: <20110609124917.23713.70467 at hotblack.digium.com>
> Content-Type: text/plain; charset="utf-8"
>
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1235/#review3696
> -----------------------------------------------------------
>
> Ship it!
>
>
> If this is just a copy of the ast_escape_quoted function from trunk then
> this should be fine.  You should also copy the unit test from trunk.
>
> - Matthew
>
>
> On 2011-06-03 10:39:36, jrose wrote:
> >
> > -----------------------------------------------------------
> > This is an automatically generated e-mail. To reply, visit:
> > https://reviewboard.asterisk.org/r/1235/
> > -----------------------------------------------------------
> >
> > (Updated 2011-06-03 10:39:36)
> >
> >
> > Review request for Asterisk Developers, Russell Bryant, Matthew
> Nicholson, and David Vossel.
> >
> >
> > Summary
> > -------
> >
> > Under SIP pedantic mode, this function was encoding strings meant for the
> display name into into a URI safe format when this was not specified in the
> SIP RFCs.  I also took the liberty of adding a little commentary.
> >
> > pedantic mode was the default in Asterisk 1.8+
> >
> >
> > This addresses bug 18298.
> >     https://issues.asterisk.org/jira/browse/18298
> >
> >
> > Diffs
> > -----
> >
> >   /branches/1.8/channels/chan_sip.c 321727
> >   /branches/1.8/include/asterisk/utils.h 321727
> >   /branches/1.8/main/utils.c 321727
> >
> > Diff: https://reviewboard.asterisk.org/r/1235/diff
> >
> >
> > Testing
> > -------
> >
> > A number of different calls with user names including more interesting
> UTF-8 characters from a variety of characters from a variety of sources
> including trema (like German umlaut characters), Kanji (Japanese
> pictographic characters), Sanskrit (phonetic characters for one of India's
> languages), and Cyrillic (Russian).  Whether or not they'll display properly
> depends on the receiving phone... My Grandstream phone doesn't like the
> higher end UTF-8 characters, but all of my soft phones read them fine.
> >
> > Testing involved a manually set DAHDI channel to have odd caller ID and
> an incoming call from another Asterisk Box sending SIP from a phone set to
> also have a display name with high UTF-8 chars.
> >
> >
> > Thanks,
> >
> > jrose
> >
> >
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.digium.com/pipermail/asterisk-dev/attachments/20110609/096a6017/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 4
> Date: Thu, 09 Jun 2011 07:52:28 -0500
> From: Russell Bryant <russell at digium.com>
> Subject: Re: [asterisk-dev] Help Need Asterisk SMS code and procedure
> To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com>
> Message-ID: <4DF0C20C.20208 at digium.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 06/09/2011 01:19 AM, warrior back wrote:
> >> == Starting Message/ast_msg_queue at default,sip:2000 at asterisk,1 failed
> so
> >> falling back to exten 's'
> >>     -- Executing [s at default:1] Wait("Message/ast_msg_queue", "1") in
> new
> >> stack
> >> [Jan  1 00:37:49] WARNING[535]: chan_sip.c:18641 handle_request_info:
> >> Unable to parse INFO message from b27ee315779f40ab
> >> b35c8154bea508d7 at 172.16.241.42
> >> . Content
> >>     -- Executing [s at default:2] Answer("Message/ast_msg_queue", "") in
> new
> >> stack
>
> This log shows the message making it to Asterisk.  However, it's going
> in to an extension written to handle normal calls.  You need to modify
> the dialplan to expect to receive messages and route them however you
> want to.
>
> Also, this code is in trunk now.  Just use trunk, not my branch.
>
> --
> Russell Bryant
> Digium, Inc.   |   Engineering Manager, Open Source Software
> 445 Jan Davis Drive NW    -     Huntsville, AL 35806  -  USA
> www.digium.com  -=-  www.asterisk.org -=- blogs.asterisk.org
>
>
>
> ------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> AstriCon 2010 - October 26-28 Washington, DC
> Put in your talk proposal: http://www.bit.ly/speak-astricon2010
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
> End of asterisk-dev Digest, Vol 83, Issue 24
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110610/4de448a9/attachment-0001.htm>


More information about the asterisk-dev mailing list