Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In
Continue with Facebook
Continue with Google
Continue with Twitter
or use

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.

Sign Up Here
Continue with Facebook
Continue with Google
Continue with Twitter
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Continue with Facebook
Continue with Google
Continue with Twitter
or use

Forgot Password?

Need An Account, Sign Up Here

You must login to add post.

Continue with Facebook
Continue with Google
Continue with Twitter
or use

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

Ask Online

Ask Online Logo Ask Online Logo

Ask Online Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add Post
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 321
Next
Answered
Johny
Johny

Johny

  • Indore, India
  • 3 Questions
  • 8 Answers
  • 3 Best Answers
  • 54 Points
View Profile
  • 2
JohnyEnlightened
Asked: June 8, 20202020-06-08T13:53:30+00:00 2020-06-08T13:53:30+00:00In: Asterisk

How to send SMS through Trunk in Asterisk

  • 2

I want to send SMS via asterisk

asterisksmstrunk
  • 1 1 Answer
  • 310 Views
  • 0 Followers
  • 0
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
    • Share on WhatsApp

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Johny

    Johny

    • Indore, India
    • 3 Questions
    • 8 Answers
    • 3 Best Answers
    • 54 Points
    View Profile
    Best Answer
    Johny Enlightened
    2020-06-08T13:54:14+00:00Added an answer on June 8, 2020 at 1:54 pm

    Since Asterisk allow sending SMS from one endpoint to another endpoint in your PBX. You may come across a case where you need to sent an SMS from one PBX to another PBX . This is generally achieved through what is called trunking. Assuming you have a basic idea of Asterisk and know how to send an SMS from one endpoint to another endpoint.

    Assuming PBXA and PBXB are two PBX which needs to send SMS to each other.Let’s see how this is achieved in Asterisk.

    pjsip.conf  (PBXA)

    [PBXA]
    type=endpoint
    transport=tls
    context=contextA
    disallow=all
    allow=ulaw
    dtmf_mode=rfc4733
    media_encryption=sdes
    rtp_symmetric=yes
    rewrite_contact=yes
    force_rport=yes
    direct_media=yes
    aors=PBXA

    [PBXA]
    type=identify
    endpoint=PBXA
    match= IP Address/Hostname of PBXB

    extensions.conf(PBXA)

    exten => _X.,1,NoOp(SMS receiving dialplan invoked)
    exten => _X.,n,NoOp(To ${MESSAGE(to)})
    exten => _X.,n,NoOp(From ${MESSAGE(from)})
    exten => _X.,n,NoOp(Body ${MESSAGE(body)})
    exten => _X.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
    exten => _X.,n,Set(uri=”pjsip:PBXA/sip:${EXTEN:1}@{{ IP Address/hostname of PBXB }}”)
    exten => _X.,n,MessageSend(${uri},${MESSAGE(from)})
    exten => _X.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
    exten => _X.,n,GotoIf($[“${MESSAGE_SEND_STATUS}” != “SUCCESS”]?sendfailedmsg)
    exten => _X.,n,Hangup()

    Same set of Configurations needs to be applied on PBXB just replace PBXA with PBXB wherever and hostname of PBXB to hostname of PBXA from the above configurations.

    I hope you will find it useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp

Leave an answer
Cancel reply

You must login or register to add a new answer.

Continue with Facebook
Continue with Google
Continue with Twitter

Sidebar

Ask A Question

Top Members

Johny

Johny

  • 3 Questions
  • 8 Answers
Enlightened
Sunny Khetarpal

Sunny Khetarpal

  • 2 Questions
  • 0 Answers
Dynamic
  • Rand
  • Answers
  • Tags
  • Anonymous

    How to RECOVER/RESET POF password

    • 1 Answer
  • Anonymous

    How can it feel to be in a "live-in relationship"

    • 2 Answers
  • Sunny Khetarpal

    Failed to set an indexed property on 'CSSStyleDeclaration'

    • 1 Answer
  • Sonali

    Name the film, which has won the Oscar Award 2020

    • 0 Answers
  • Anonymous

    I want SQL Database file for BubbleTok v1.0

    • 1 Answer
  • Johny
    Johny added an answer I really don't have any idea on newer version but… November 6, 2020 at 6:52 am
  • admin
    admin added an answer You must be getting this also in your complete logs… September 30, 2020 at 9:00 am
  • Anonymous added an answer -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ --… August 6, 2020 at 4:44 am
  • Johny
    Johny added an answer You can follow this link below and there is no… July 14, 2020 at 5:40 am
  • admin
    admin added an answer Question 1 of 5 Which of the following features describe… July 11, 2020 at 6:51 pm
actor age amazon amazon-quiz animated-movie asterisk astral sky astro astrologer astrology award banned bubbletok camera cant call softphone centos chinese-apps codeigniter dating website developer devops engagements & weddings facts and trivia forecast future girl hollywood husband india iq jquery knowledge leading-role marriage mind-blowing facts mysql mysql repair opensource oscar oscar-2020 parents partner pbx personal astrological report php pjsip plenty of fish pof poll programmer quiz-time relationship self-awareness sms sockets detached softphone sql srtp survey question tiktok trunk vicidial webrtc wife

Recent Posts

  • 2021 Brand New Air Jordan 6 “Midnight Navy” Sport Shoe CT8529-141 February 28, 2021
  • Nike Dunk Low WMNS “Photon Dust” DD1503-103 will be officially released this spring February 26, 2021
  • Do You Want To Buy Nike LeBron 7“ Baseball Blue” Sneakers DJ5158-100 ? February 24, 2021
  • DD9784-001 Nike Air Force 1 Low is Coming Soon February 22, 2021
  • Where To Buy Air Jordan 1 Low SE “Arctic Punch” Sport Shoes CK3022-600 ? January 28, 2021
  • Meet The Team
  • Blog
  • About Us
  • Contact Us
  • Privacy Policy

© 2020 AskOnline. All Rights Reserved
With Love by AskOnline.

Explore

  • Home
  • Add Post
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.