This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM phone call to phone number
#3
(08.08.2023, 08:01)admin Wrote: Try this (not tested):
Code:
function AT:call(number)
  self:send('ATD' .. number)
  os.sleep(8)
  self:send('ATH')
end

Hi, this not working,

If I use in script calling this function:

require('user.sms')

call('3711234567')

I have error

Resident script:3: attempt to call global 'call' (a nil value)
stack traceback:

If I use

require('user.sms')

AT:call('3711234567')

Other error:

User library sms:319: attempt to index field 'port' (a nil value)
stack traceback:
User library sms:319: in function 'send'
User library sms:471: in function 'call'

So something needs to be corrected. If will be time, please look what I need correct in script.

BR, Alex
Reply


Messages In This Thread
LM phone call to phone number - by AlexLV - 28.07.2023, 22:07
RE: LM phone call to phone number - by admin - 08.08.2023, 08:01
RE: LM phone call to phone number - by AlexLV - 17.08.2023, 07:24
RE: LM phone call to phone number - by admin - 17.08.2023, 07:48
RE: LM phone call to phone number - by AlexLV - 19.08.2023, 11:04
RE: LM phone call to phone number - by Daniel - 21.08.2023, 07:36
RE: LM phone call to phone number - by AlexLV - 22.08.2023, 21:11
RE: LM phone call to phone number - by Daniel - 23.08.2023, 14:11

Forum Jump: