keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

AutoDial with Audio file

7 years 7 months ago - 7 years 7 months ago #11201 by lindali
Such as you have a dialplan like below:
[test-1]
exten => _X.,1,Dial(SIP/${EXTEN})
exten => _X.,n,Hangup()
And you have sip ext 1001 which is registered with gsm gateway. If you want to connect 1001 with mobile number 10086 through gsm-1.1, please try action below:
Action:Originate
Channel: extra/1/10086
Exten:1001
Priority:1
Timeout:60000
Context:test-1
The following user(s) said Thank You: xenturio
7 years 7 months ago - 7 years 7 months ago #11205 by xenturio
Thank, now i'm able to call a mobile number.
But i've another problem : I've created a .wav file into "sounds" dir of Asterisk (i've configured that as "/ets/asterisk" into asterisk.conf) and in the dialplan i've put
exten => _X.,n,Playback(myfile)
exten => _X.,n,Playback(vm-goodbye)

But only vm-goodbye is reproduced. I've also tried to move myfile into /tmp and write
exten => _X.,n,Playback(/tmp/myfile)
but nothing.

The wav file is an PCM_UNSIGNED 8000 and 1 channel
7 years 7 months ago #11206 by lindali
Hi,

No need to change "sounds" dir of asterisk. Just put absolute path of the sound files in the dialplan. Such as below:

[test-1]
exten => _X.,1,Answer()
exten => _X.,n,Playback(vm-goodbye)
exten => _X.,n,Playback(/etc/asterisk/sounds/sounds/demo-instruct)   
exten => _X.,n,Hangup()

After mobile user answers the call, he/she will hear "vm-goodbye" sound first, then "demo-instruct.wav"
Attachments:
The following user(s) said Thank You: xenturio
7 years 7 months ago #11207 by xenturio
Thank, now it works.
Time to create page: 0.143 seconds
Powered by Kunena Forum