Sending SMS And SIM Card

Home » Asterisk Users » Sending SMS And SIM Card
Asterisk Users 8 Comments

Hello;
Is it possible to send SMS from asterisk? Using DAHDI or using what is possible?
And, is there a card that can be fixed in the machine and insert the SIM card in this card to be used for GSM calls and sending SMS through asterisk? Through which channel? Is it DAHDI or something else?
RegardsBilal

8 thoughts on - Sending SMS And SIM Card

  • You can use an SMS provider like Twillio.

    I’ve never used an internal card, but what you’re looking for is a GSM
    gateway.

    I used a Goip32 (32 SIMs, 32 channels) a couple of years ago. It is an external box you hang on your network via Ethernet.


    Thanks in advance,
    ————————————————————————-
    Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
    https://www.linkedin.com/in/steve-edwards-4244281

  • Thank you Steve.Regarding to Goip32 that you used it before: how you were handling the received messages?In other words: if you sent a message for someone and he replied for you, how you were able to see the reply? And was it possible to have any action based on his reply (for example, forward the message to email)?
    Also regarding to the Goip32: how you were sending the SMS messages? From CRM connected to it or it was having a web interface for sending the SMS messages?
    Was you able to use Goip32 for GSM voice calls (sending and receiving)?
    RegardsBilal

    You can use an SMS provider like Twillio.

    I’ve never used an internal card, but what you’re looking for is a GSM
    gateway.

    I used a Goip32 (32 SIMs, 32 channels) a couple of years ago. It is an external box you hang on your network via Ethernet.

  • I use VoIP Innovations and ThinQ (formally SIPRoutes) and they both support SMS. That way it’s very easy to write it into the dial plan.

    Regards;

    John

    From: asterisk-users On Behalf Of bilal ghayyad Sent: Thursday, April 25, 2019 7:56 AM
    To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Sending SMS and SIM card

    Thank you Steve.

    Regarding to Goip32 that you used it before: how you were handling the received messages?

    In other words: if you sent a message for someone and he replied for you, how you were able to see the reply? And was it possible to have any action based on his reply (for example, forward the message to email)?

    Also regarding to the Goip32: how you were sending the SMS messages? From CRM connected to it or it was having a web interface for sending the SMS messages?

    Was you able to use Goip32 for GSM voice calls (sending and receiving)?

    Regards

    Bilal

    You can use an SMS provider like Twillio.

    I’ve never used an internal card, but what you’re looking for is a GSM

    gateway.

    I used a Goip32 (32 SIMs, 32 channels) a couple of years ago. It is an

    external box you hang on your network via Ethernet.

  • Hello;chan_dongle can be used for sms and for gsm calls at the same time, how?
    Any small example how to send gsm calls through chan_dognle and how to send sms through chan_dongle?

  • Hello John;
    And for GSM calls, u were using sip trunk from asterisk to these gateways?
    And how you were sending sms?

    RegardsBilal

  • In dongle.conf:

    [gsmgateway]
    context=gsm imei=123456789012345
    imsi=098765432112345

    In extensions.conf:

    [gsm]
    ; Incoming calls from GSM/3G 
    exten => +41776665544,1,Dial(Local/mydeskphone@voipphone)
       same => n,Hangup()

    ; Phone call though GSM/3G 
    exten => _0.,n,Dial(Dongle/gsmgateway/${EXTEN},120)
       same => n,Hangup()

    ; Incoming SMS to mail address and to sms.txt file exten => sms,1,Noop(Incoming SMS from ${CALLERID(num)}
    ${BASE64_DECODE(${SMS_BASE64})})
    exten => sms,n,System(echo ‘${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} –
    ${DONGLENAME} – ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}’ >>
    /var/log/asterisk/sms.txt)
    exten => sms,n,System(echo “${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} –
    ${DONGLENAME} – ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}” |
    mail -s “SMS from ${CALLERID(num)}” myemailaddress@mymailbox.com)
    exten => sms,n,Hangup()