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
  • 57 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
  • 479 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
    • 57 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 to add an answer.

Continue with Facebook
Continue with Google
Continue with Twitter
or use

Forgot Password?

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
Pro Active
  • Random
  • Answers
  • Tags
  • Johny

    How to send SMS through Trunk in Asterisk

    • 1 Answer
  • Anonymous

    Should India say yes to China's offer for help in ...

    • 0 Answers
  • Anonymous

    Amazon Microsoft Thin & Light Quiz, Answer and win ₹12,500 ...

    • 1 Answer
  • PG

    How to install SRTP package in Asterisk - Centos 6

    • 1 Answer
  • Anonymous

    Marriage compatibility

    • 1 Answer
  • Anonymous added an answer You can get it here for free--> https://www77.zippyshare.com/v/HJnlsWaa/file.html Or if… September 9, 2021 at 12:32 pm
  • Learn With BWC71
    Learn With BWC71 added an answer how to add it? July 1, 2021 at 12:45 pm
  • Anonymous added an answer dizzy – Support Creators Content Script is a platform where content… April 16, 2021 at 7:49 pm
  • admin
    admin added an answer Sorry we have stopped free service but dont worry our… April 16, 2021 at 7:47 pm
  • Š Å M Y Á  K ツ
    Š Å M Y Á  K ツ added an answer Yes bro I have Sql file message me on facebook… April 9, 2021 at 4:50 pm
#covid19indiahelp actor age amazon amazon-quiz animated-movie asterisk astral sky astro astrologer astrology award banned bubbletok camera cant call softphone centos chinese-apps clone codeigniter covid covid19 covidhelp cracked dating website developer devops dizzy donateplasma doubt engagements & weddings facts and trivia forecast future girl hollywood husband india indiafightscovid iq jquery knowledge leading-role marriage mind-blowing facts mysql mysql repair need nulled opensource oscar oscar-2020 parents partner pbx personal astrological report php pjsip plenty of fish pof poll programmer question quiz-time relationship self-awareness sms sockets detached softphone sql srtp survey question tiktok trunk vicidial webrtc wife

Recent Posts

  • CK6440-400 Air Jordan 1 KO “Sashiko” Release Information May 10, 2022
  • 2022 Latest Nike Dunk Low Scrap “Mismatch” DN5381-001 March 16, 2022
  • Official Images of the Nike Air Max 95 “Topographic” Release March 13, 2022
  • Nike Air Trainer SC “Auburn” Release Information March 9, 2022
  • 323419-130 Jordan 6 Rings “Altitude Green” Coming Soon February 2, 2022
  • 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.