~singpolyma/cheogram-sip

c12de66ae348af37a292f8ddb99442e6cce6025b — Stephen Paul Weber 3 months ago 9dd732b
Comment marker for outbound calls
1 files changed, 1 insertions(+), 0 deletions(-)

M asterisk-conf/extensions.lua
M asterisk-conf/extensions.lua => asterisk-conf/extensions.lua +1 -0
@@ 105,6 105,7 @@ extensions = {
			local jid = channel.CALLERID("name"):get()
			local from = jid_unescape(jid:sub(0, jid:find("@") - 1))
			local to = jid_unescape(jid:sub(jid:find("/") + 1))
			-- outbound calls
			channel.CALLERID("all"):set(from .. "<" .. from .. ">")
			app.dial("SIP/" .. to:gsub("\\", "\\\\"):gsub("&", "") .. "!!" .. from:gsub("\\", "\\\\") .. "@sip.cheogram.com")
		end;