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_sendt...@smvoice-dialout:1]
> SendText("SIP/404-00000008", ""This is a test message."") in new stack
> -- Executing [smvoice_sendt...@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 [2...@internal:1] NoOp("SIP/222-000000a4", "SendText test")
in new stack
-- Executing [2...@internal:2] Answer("SIP/222-000000a4", "") in new stack
-- Executing [2...@internal:3] SendText("SIP/222-000000a4", "Hello,
World!") in new stack
-- Executing [2...@internal:4] Wait("SIP/222-000000a4", "1") in new stack
-- Executing [2...@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
--
_____________________________________________________________________
-- 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