SendText() don't work

Discussion in 'General' started by danardf, Jan 23, 2009.

  1. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    Hi.

    I try to send some message text to some extension. So I make a extension_custom, like that:


    • [Send-text]
      exten => s,1,Answer()
      exten => s,n,Sendtext(Hello)
      exten => s,n,Hangup()

    Into the dial plan, I make a feature code 2999 that calling [Send-text].
    Here, no problem, the Send-text work (only the script) : Look.

    I have (Spawn extension) into the last line and i haven't the message.
    An idea?

    Code:
        -- Executing [2999@from-internal:1] NoOp("SIP/102-b7606638", "Running miscapp 9: Message") in new stack
        -- Executing [2999@from-internal:2] Goto("SIP/102-b7606638", "Send-text|s|1") in new stack
        -- Goto (Send-text,s,1)
        -- Executing [s@Send-text:1] Answer("SIP/102-b7606638", "") in new stack
        -- Executing [s@Send-text:2] SendText("SIP/102-b7606638", "Hello") in new stack
        -- Executing [s@Send-text:3] Hangup("SIP/102-b7606638", "") in new stack
      == Spawn extension (Send-text, s, 3) exited non-zero on 'SIP/102-b7606638'
     

Share This Page