freeswitch.consoleLog("info", "chat console\n") local event = freeswitch.Event("CUSTOM", "SMS::SEND_MESSAGE"); event:addHeader("proto", "sip"); event:addHeader("dest_proto", "sip"); event:addHeader("from", "sip:bio@192.168.1.108"); event:addHeader("from_full", "sip:bio@192.168.1.108"); event:addHeader("to", "1000@192.168.1.108"); -- event:addHeader("subject", "sip:1001@192.168.1.101"); event:addHeader("type", "text/plain"); event:addHeader("hint", "the hint"); event:addHeader("replying", "true"); event:addBody("Hello from Seven Du! Have fun!"); -- freeswitch.consoleLog("info", event:serialize()); event:fire();