# Can i send ussd code form asterisk with out any softphone

**URL:** <https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844>\
**Category:** Asterisk Support\
**Created:** [March 10, 2018, 10:16pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844 "2018-03-10T22:16:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarunUr](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@HarunUr](https://community.asterisk.org/u/HarunUr)\
**Post date:** [March 10, 2018, 10:16pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/1 "2018-03-10T22:16:54Z")

</div>

Hello sir  
I have 2 scenario . i have gsm gateway in attach via my asterisk .  
each day i need to top up via ussd code .  
examples  
Dial - \*123#  
press 1 - 20 min  
Press 2 - 40 minutes  
Press 3 - Exit

press 1 - conformation  
press 2 - exit

what i like to do i will insert those instruction in my gui and send pre define code at a time to my gsm gateway  
\*123# wait 2 second then send 1 wait 2 second send then send 1

If any one help me i will be very happy

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 10, 2018, 11:16pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/2 "2018-03-10T23:16:33Z")

</div>

> [@HarunUr](#):
>
> what i like to do i will insert those instruction in my gui

We can’t answer questions about any GUI. Please use the forum for that GUI.

As long as the GSM gateway can accept \* and #, it should be straightforward, when directly coded as dialplan.

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [March 11, 2018, 4:19am UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/3 "2018-03-11T04:19:52Z")

</div>

I dont know about the GUI ,but you can accomplish such task using AMI’s originate action and Local channels

---

<div class="post-metadata">

**Author:** ![HarunUr](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@HarunUr](https://community.asterisk.org/u/HarunUr)\
**Post date:** [March 11, 2018, 8:12am UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/4 "2018-03-11T08:12:42Z")

</div>

Hello sir  
Plz share me any extension samples in command line

That will be nice

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 11, 2018, 10:52am UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/5 "2018-03-11T10:52:46Z")

</div>

It is unlikely anyone has any ready made examples. These forums are not a substitute for understanding how dialplans work.

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [March 11, 2018, 3:28pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/6 "2018-03-11T15:28:54Z")

</div>

I have some good examples for you

[https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction\_Originate](https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_Originate)

[https://wiki.asterisk.org/wiki/display/AST/Local+Channel](https://wiki.asterisk.org/wiki/display/AST/Local+Channel)

Note if using AMI you will need to use an external programming language (Python or PHP are one of the best option in my personal opinion).

---

<div class="post-metadata">

**Author:** ![HarunUr](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@HarunUr](https://community.asterisk.org/u/HarunUr)\
**Post date:** [March 16, 2018, 2:02pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/7 "2018-03-16T14:02:23Z")

</div>

My question was simple is it possible send USSD code via asterisk if yes, is their any demo examples so i will make it by my self . instated of that i discover my self that its a rocket science .

Forum ! to get help , not to make your self confused . when we write a topic on the forum we are already confused .regarding that topic or subject . its not necessary to make us more confused .  
I am really good in asterisk agi . I am not a asterisk programmer but i know language how to communicate and control asterisk with my code .

When i create this topic i knock several asterisk GIG , i hope they will not confused me .  
some one send me the asterisk origination extension examples.  
Some one write me this - \>These forums are not a substitute for understanding how dial-plans work.

i request to all developer and community members try to help each others . we all know you people are working on asterisk more then a decade , you all are knowledgeable and more smarter then people like me. But we are not dump we will learn eventually by your help or not

---

<div class="post-metadata">

**Author:** ![cerien.jean](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@cerien.jean](https://community.asterisk.org/u/cerien.jean)\
**Post date:** [March 16, 2018, 2:42pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/8 "2018-03-16T14:42:52Z")

</div>

I’d be surprised if it was possible to answer to ussd messages. ussd is a separate protocol (gsm ts 03.90 I believe), and unless the gateway explicitly handles it, odds are it wont work. You may be able to trigger the initial \*digits# sequence, but the answer is not a voice nor a text (SMS) message.  
Some operator offer also a short number to dial into an ivr to top-up. You should look that way

---

<div class="post-metadata">

**Author:** ![HarunUr](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@HarunUr](https://community.asterisk.org/u/HarunUr)\
**Post date:** [March 18, 2018, 7:55am UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/9 "2018-03-18T07:55:09Z")

</div>

is it possible to any one provide me short number dial plan example  
IVR to top up

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 18, 2018, 10:11am UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/10 "2018-03-18T10:11:46Z")

</div>

Whilst I don’t personally do paid consultancy at the moment, you need to indicate how much you are prepared to pay for this work.

---

<div class="post-metadata">

**Author:** ![HarunUr](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@HarunUr](https://community.asterisk.org/u/HarunUr)\
**Post date:** [March 23, 2018, 10:07pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/11 "2018-03-23T22:07:15Z")

</div>

david551 Thanks for your reply . i will pay nothing . cause nothing is every thing . i f i need any employ i can hair by myself . dot make your self important .  
if you need any help regarding agi or asterisk plz knock me i will help you or help google he will not charge you

---

<div class="post-metadata">

**Author:** ![a.sayed](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/a.sayed/32/6632_2.png) [@a.sayed](https://community.asterisk.org/u/a.sayed)\
**Post date:** [June 12, 2023, 1:07pm UTC](https://community.asterisk.org/t/can-i-send-ussd-code-form-asterisk-with-out-any-softphone/73844/12 "2023-06-12T13:07:22Z")

</div>

hi , have you come up with a solution?
