With softphone I mean linphone csipsimple or whatever. How should a dialplan lokks like? On 31.01.19 11:26, Antony Stone wrote:> On Thursday 31 January 2019 at 10:59:01, basti wrote: > >> Hello I use this dial paln: >> >> [o2-in] >> exten => o2,1,Answer >> exten => o2,n,Playback(hello-world) >> exten => o2,n,Ringing >> exten => o2,n,Dial(SIP/10&SIP/20&Local/s at no-op,25,rt) >> exten => o2,n,Playtones(425/1000,0/4000) >> exten => o2,n,Wait(30) >> exten => o2,n,Hangup() >> >> All is fine. Hello world is Playback and I hear a ring tone. > > That seems a most odd thing to want the caller to hear. > >> If I remove the Playback hello-world. No ring tone is hearing anymore. > > I can't say I'm surprised, given that you've already Answer()ed the call. > >> Also not when my softphone is ring. > > Please be more specific what you mean by that? > >> What I want is: >> >> - Play caller a ring tone when softphone is dial or even if Subscriber >> absent >> - han up after a while > > Well, simply don't Answer() the incoming call until the subsequent Dial() has > succeeded. > >> I try this https://www.voip-info.org/asterisk-cmd-playtones > > Is there a good reason why you are Answer()ing the call (and possibly thereby > causing the caller to incur charges) before knowing the outcome of the Dial()? > > > Antony. >
On Thursday 31 January 2019 at 11:36:05, basti wrote:> With softphone I mean linphone csipsimple or whatever.I know what you mean by "a softphone"; I just wasn't sure how you were calling your softphone and what you were saying (didn't) happen.> How should a dialplan lokks like?Have you tried: [o2-in] exten => o2,1,Dial(SIP/10&SIP/20&Local/s at no-op,25,rt) same => n, Hangup() Also, are you certain that "o2" is a sensible extension to be expecting? Maybe it is, but I would have more expected to see "s" or even "_X." as the extension. It depends on what is feeding into you "o2-in" context, of course. Antony.> On 31.01.19 11:26, Antony Stone wrote: > > On Thursday 31 January 2019 at 10:59:01, basti wrote: > >> Hello I use this dial paln: > >> > >> [o2-in] > >> exten => o2,1,Answer > >> exten => o2,n,Playback(hello-world) > >> exten => o2,n,Ringing > >> exten => o2,n,Dial(SIP/10&SIP/20&Local/s at no-op,25,rt) > >> exten => o2,n,Playtones(425/1000,0/4000) > >> exten => o2,n,Wait(30) > >> exten => o2,n,Hangup() > >> > >> All is fine. Hello world is Playback and I hear a ring tone. > > > > That seems a most odd thing to want the caller to hear. > > > >> If I remove the Playback hello-world. No ring tone is hearing anymore. > > > > I can't say I'm surprised, given that you've already Answer()ed the call. > > > >> Also not when my softphone is ring. > > > > Please be more specific what you mean by that? > > > >> What I want is: > >> > >> - Play caller a ring tone when softphone is dial or even if Subscriber > >> absent > >> - han up after a while > > > > Well, simply don't Answer() the incoming call until the subsequent Dial() > > has succeeded. > > > >> I try this https://www.voip-info.org/asterisk-cmd-playtones > > > > Is there a good reason why you are Answer()ing the call (and possibly > > thereby causing the caller to incur charges) before knowing the outcome > > of the Dial()? > > > > > > Antony.-- Normal people think "If it ain't broke, don't fix it". Engineers think "If it ain't broke, it doesn't have enough features yet". Please reply to the list; please *don't* CC me.
Thanks antony. Now it works. Just for the docu: [o2-in] exten => o2,1,Ringing exten => o2,n,Playtones(425/1000,0/4000) exten => o2,n,Dial(SIP/10&SIP/20&Local/s at no-op,130,rt) exten => o2,n,StopPlaytones() exten => o2,n,Hangup() [no-op]; just hang up exten => s,1,Hangup(130) On 31.01.19 11:40, Antony Stone wrote:> On Thursday 31 January 2019 at 11:36:05, basti wrote: > >> With softphone I mean linphone csipsimple or whatever. > > I know what you mean by "a softphone"; I just wasn't sure how you were calling > your softphone and what you were saying (didn't) happen. > >> How should a dialplan lokks like? > > Have you tried: > > [o2-in] > exten => o2,1,Dial(SIP/10&SIP/20&Local/s at no-op,25,rt) > same => n, Hangup() > > Also, are you certain that "o2" is a sensible extension to be expecting? > > Maybe it is, but I would have more expected to see "s" or even "_X." as the > extension. It depends on what is feeding into you "o2-in" context, of course. > > > Antony. > >> On 31.01.19 11:26, Antony Stone wrote: >>> On Thursday 31 January 2019 at 10:59:01, basti wrote: >>>> Hello I use this dial paln: >>>> >>>> [o2-in] >>>> exten => o2,1,Answer >>>> exten => o2,n,Playback(hello-world) >>>> exten => o2,n,Ringing >>>> exten => o2,n,Dial(SIP/10&SIP/20&Local/s at no-op,25,rt) >>>> exten => o2,n,Playtones(425/1000,0/4000) >>>> exten => o2,n,Wait(30) >>>> exten => o2,n,Hangup() >>>> >>>> All is fine. Hello world is Playback and I hear a ring tone. >>> >>> That seems a most odd thing to want the caller to hear. >>> >>>> If I remove the Playback hello-world. No ring tone is hearing anymore. >>> >>> I can't say I'm surprised, given that you've already Answer()ed the call. >>> >>>> Also not when my softphone is ring. >>> >>> Please be more specific what you mean by that? >>> >>>> What I want is: >>>> >>>> - Play caller a ring tone when softphone is dial or even if Subscriber >>>> absent >>>> - han up after a while >>> >>> Well, simply don't Answer() the incoming call until the subsequent Dial() >>> has succeeded. >>> >>>> I try this https://www.voip-info.org/asterisk-cmd-playtones >>> >>> Is there a good reason why you are Answer()ing the call (and possibly >>> thereby causing the caller to incur charges) before knowing the outcome >>> of the Dial()? >>> >>> >>> Antony. >