asteriskami - Asterisk How to play announcement without calling party -


i have following task asterisk, , don't know how solve it.

i have context own default extension

[my-context] exten => s,1,answer()         same => n,dial(sip/817,10,ttwwa(demo-congrats))         same => n,hangup() 

i run originate command in cli, or in ami via telnet.

originate sip/814 extension s@my-context 

it's simple , works in sequence:

  1. sip/814 ringing
  2. i answer sip/814
  3. sip/817 ringing
  4. another guy answers sip/817
  5. playing announcement @ sip/817
  6. hangup

but not match requirement yet, don't want calling party (sip/814 in case) join sequence @ all, want give called party (sip/817) announcement , that's it, don't know how stuff.

btw, when called party dahdi source (eg dahdi/1/${my-cellphone-number}), announcement played before accept call, can hear end part of announcement. how fix that?

any appreciated
best regard
loi dang

you should trigger enother call, using call files or other technics

in call should 1 leg connect sip/817, other leg dialplan extension expected playback message.

http://www.voip-info.org/wiki/view/asterisk+auto-dial+out

you can trigger external script place call system command or create deamon listen event/place calls on condition(ami/events used)


Comments