Asterisk won't does as extension_custom.conf says

sam1234

I'm currently working on a project where I need to do some specific tasks using asterisk.

WHAT I DID

I run the asterisk through a raspberry pi and convert PSTN call to VoIP using Obi110 device. However it routes incoming calls to my FreePBX. As extension file says it comes as"from trunk" context name. So to be able to answer the incoming call and play a sound file, I followed online tutorial and as an example I used provided code to check whether it actually works. So in extension_custom.conf I wrote following code,

[from-trunk]
exten => s,1,Answer ; 
exten => s,2,Playback(tt-weasels) ; 
exten => s,3,Hangup ; 

exten => ste,1,Set(VOLUME(RX)=10) ; set the RX volume
exten => ste,2,Set(VOLUME(TX)=10) ; set the RX volume
exten => ste,hint,SIP/ste; hint  'ste' used for presence notification
exten => ste,3,Dial(SIP/ste) ; call the user ste'


exten => steand,1,Set(VOLUME(RX)=10) ; set the RX volume
exten => steand,2,Set(VOLUME(TX)=10) ; set the RX volume
exten => steand,hint,SIP/ste; hint  'steand' used for presence notification
exten => steand,3,Dial(SIP/steand) call the user 'steand' used for presence 
notification

My Problem

After saving that and restarting asterisk and make a call to the PSTN line phone, it still rings rather than following the commands. Am I doing something wrong? I'm new to this. Thanks.

arheops

Extension s mean "no extension". More then likly, that you have no any goto to that extension in your dialplan.

Use

asterisk -rvvv 

Check output of asterisk when call come in, you will see context and extension used.

Also you SHOULD not use SAME context in custom. You should use from-trunk-custom.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

can't run asterisk, no /etc/asterisk/asterisk.conf

From Dev

Asterisk, blacklisted number won't hang up

From Dev

google app engine launcher won't deploy application: says application does not exist

From Dev

A filename has an asterisk for some reason - it won't be changed and content not executed

From Dev

Vagrant won't says box doesn't exist

From Dev

Docker won't bind to address; says it's in use but it isn't

From Dev

usermod says account doesn't exist but adduser says it does

From Dev

Android Studio won't update says already on newest version

From Dev

ionic emulate ios - won't emulate and says no such file or directory

From Dev

Vuze won't let me delete anything, it says permission denied

From Dev

user says keyboard won't hide, cannot replicate results

From Dev

JavaScript won't run, says element is null, but code runs in fiddle

From Dev

Windows Media Player says "improperly installed" and won't start

From Dev

Vuze won't let me delete anything, it says permission denied

From Dev

File doesn't exist but says it does?

From Dev

Hibernate says that table doesn't exist but it does

From Dev

File doesn't exist but says it does?

From Dev

apache won't restart after adding VirtualHost conf file, why not?

From Dev

nameserver 127.0.1.1 in resolv.conf won't go away!

From Dev

Can't able to open this file "admin://etc/sysctl.conf"? It says, "Unable to handle admin location"

From Dev

Removing the extension won't work

From Dev

Custom FeatureUnion won't work?

From Dev

GHC won't run this function, but does compile it

From Dev

on() won't fire but everything else does?

From Dev

jQuery won't execute on page but does in JSFiddle

From Dev

sinatra stopped with ctrl z -- now it won't restart because it says port 4567 is already being used

From Dev

Nginx won't start, says "could not build test test_types_hash"

From Dev

Why won't "git add *" add files that "git status" says are unstaged?

From Dev

My JPanel won't show. Eclipse says I have no errors. Java

Related Related

  1. 1

    can't run asterisk, no /etc/asterisk/asterisk.conf

  2. 2

    Asterisk, blacklisted number won't hang up

  3. 3

    google app engine launcher won't deploy application: says application does not exist

  4. 4

    A filename has an asterisk for some reason - it won't be changed and content not executed

  5. 5

    Vagrant won't says box doesn't exist

  6. 6

    Docker won't bind to address; says it's in use but it isn't

  7. 7

    usermod says account doesn't exist but adduser says it does

  8. 8

    Android Studio won't update says already on newest version

  9. 9

    ionic emulate ios - won't emulate and says no such file or directory

  10. 10

    Vuze won't let me delete anything, it says permission denied

  11. 11

    user says keyboard won't hide, cannot replicate results

  12. 12

    JavaScript won't run, says element is null, but code runs in fiddle

  13. 13

    Windows Media Player says "improperly installed" and won't start

  14. 14

    Vuze won't let me delete anything, it says permission denied

  15. 15

    File doesn't exist but says it does?

  16. 16

    Hibernate says that table doesn't exist but it does

  17. 17

    File doesn't exist but says it does?

  18. 18

    apache won't restart after adding VirtualHost conf file, why not?

  19. 19

    nameserver 127.0.1.1 in resolv.conf won't go away!

  20. 20

    Can't able to open this file "admin://etc/sysctl.conf"? It says, "Unable to handle admin location"

  21. 21

    Removing the extension won't work

  22. 22

    Custom FeatureUnion won't work?

  23. 23

    GHC won't run this function, but does compile it

  24. 24

    on() won't fire but everything else does?

  25. 25

    jQuery won't execute on page but does in JSFiddle

  26. 26

    sinatra stopped with ctrl z -- now it won't restart because it says port 4567 is already being used

  27. 27

    Nginx won't start, says "could not build test test_types_hash"

  28. 28

    Why won't "git add *" add files that "git status" says are unstaged?

  29. 29

    My JPanel won't show. Eclipse says I have no errors. Java

HotTag

Archive