[asterisk-users] sip message to ip 330 or 550 phones

Gordon Henderson gordon+asterisk at drogon.net
Thu Jul 15 09:00:29 CDT 2010


On Thu, 15 Jul 2010, Jerry Geis wrote:

>>
>> n Wed, 14 Jul 2010, Jerry Geis wrote:
>>
>>> / Is it possible to send a test message to the IP 330 or 550 polycom
>> />/ phones with asterisk?
>> /
>> Why don't you just try it? It's one line in a dial-plan...
>>
>> Or have you lost the power of experimentation...
>>
>> Gordon
>>
>>
> Gordon,
>
> I just did try it - and I did not see any text message (on polycom 550).

OK!

> I saw the caller id, heard the phone ring,
> after answering the phone it just hung up. I am using the SendText() .
> here is the CLI
>
>       > Channel SIP/404-00000008 was answered.
>    -- Executing [smvoice_sendtext at smvoice-dialout:1]
> SendText("SIP/404-00000008", ""This is a test message."") in new stack
>    -- Executing [smvoice_sendtext at smvoice-dialout:2]
> Hangup("SIP/404-00000008", "") in new stack
>
> Am I doing something wrong?

What I have observed on Grandstreams with auto-hangup set, is that they'll 
clear the screen on a hangup, so this bit of code:

   exten => 2323,1,Noop(SendText test)
   exten => 2323,n,Answer()
   exten => 2323,n,SendText(Hello\, World!)
   exten => 2323,n,Wait(1)
   exten => 2323,n,Hangup()

without the Wait(1) appears to do nothing. With the Wait(1), I see the 
message on the display, it waits a second then it ends which clears the 
screen.

CLI output: (SIP/222 is a GXP2000 I'm making the call from)

     -- Executing [2323 at internal:1] NoOp("SIP/222-000000a4", "SendText test") in new stack
     -- Executing [2323 at internal:2] Answer("SIP/222-000000a4", "") in new stack
     -- Executing [2323 at internal:3] SendText("SIP/222-000000a4", "Hello, World!") in new stack
     -- Executing [2323 at internal:4] Wait("SIP/222-000000a4", "1") in new stack
     -- Executing [2323 at internal:5] Hangup("SIP/222-000000a4", "") in new stack
   == Spawn extension (internal, 2323, 5) exited non-zero on 'SIP/222-000000a4'

If I don't execute Answer(), then the messages are still sent to the 
calling phone, but the Grandstream captures them and flashes a 'mailbox' 
icon - you then need to go into the menu to get them.

Gordon






More information about the asterisk-users mailing list