playtones solved it

thank you all


erez.

On 3/13/06, Imri Zvik <[EMAIL PROTECTED]> wrote:
>
> See if that helps :)
>
>
> --
> Imri Zvik
> PGP (2.6.3ia) Public Key: http://mariska.inter.net.il/~imriz/imriz.pgp
>
>
> -----Original Message-----
> From: Yossi Ben Hagai
> Sent: Monday, March 13, 2006 8:19 AM
> To: Imri Zvik; Amos Rosenboim
> Subject: RE: * question
>
> Hi,
>
> The ringme context has two directives for extension 1 with the same
> priority, try changing the context as follows:
> exten => 1,1,Dial(SIP/home&SIP/work&SIP/pri-minister,25,r)
> exten => 1,2,Goto(voicemail,1,1)
>
> I think this will solve it, if it doesn't a console output with
> verbosity might help, also what version is it?
> That's about the output you should expect (without the forking in the
> dial cmd):
>
>     -- Executing ResponseTimeout("SIP/5060-b7b02628", "3") in new stack
>     -- Set Response Timeout to 3
>     -- Executing BackGround("SIP/5060-b7b02628", "wait-moment") in new
> stack
>     -- Playing 'wait-moment' (language 'whatever')
>     -- Timeout on SIP/5060-b7b02628
>   == CDR updated on SIP/5060-b7b02628
>     -- Executing Goto("SIP/5060-b7b02628", "ringme|1|1") in new stack
>     -- Goto (ringme,1,1)
>     -- Executing Dial("SIP/5060-b7b02628", "SIP/some-extension|25|r") in
> new stack
>     -- Called some-extension
>     -- SIP/some-extension-a757 is ringing
>   == Spawn extension (ringme, 1, 1) exited non-zero on
> 'SIP/5060-b7b02628'
>
> Depending on version - Check if providing Answer before Background or
> changing progressinband=yes in sip.conf makes a difference.
> If none of the above worked try changing the ringme context as follows:
>
> [ringme]
>
> exten => 1,1,Playtones(ring)
> exten => 1,2,Dial(SIP/home&SIP/work&SIP/pri-minister,25,r)
> exten => 1,2,Goto(voicemail,1,1)
>
> Yossi.
>
>
>
>
> -----Original Message-----
> From: Imri Zvik
> Sent: Sunday, March 12, 2006 1:02 PM
> To: Yossi Ben Hagai; Amos Rosenboim
> Subject: FW: * question
>
>
>
> --
> Imri Zvik
> PGP (2.6.3ia) Public Key: http://mariska.inter.net.il/~imriz/imriz.pgp
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Erez D
> Sent: Thursday, March 09, 2006 5:46 PM
> To: Linux-IL
> Subject: * question
>
> I tried configuring asterisk to let me enter a number, and if i do not,
> to ring the phone.
>
> this way i can call my home and turn on my boiler for 15 minutes (1900)
> or my air-condition (1901), or burn the house down (1902).
> but if someone else calls me,he hears 'wait a moment' and after 3
> seconds it rings my home phone. and then voicemail
>
>
> here is part of my extensions.conf:
> --------------------------------------------------------------------
> [incoming]
> exten => 500,1,ResponseTimeout(3)
> exten => 500,2,BackGround(wait-moment)
>
> exten => t,1,Goto(ringme,1,1)
> exten => i,1,Goto(ringme,1,1)
>
> exten => _9411XXX,1,Goto(default,${EXTEN:4},1)
> exten => 1900,1,Goto(default,1900,1)
> exten => 1901,1,Goto(default,1901,1)
> exten => 1902,1,Goto(default,1902,1)
>
> [ringme]
> exten => 1,1,Dial(SIP/home&SIP/work&SIP/pri-minister,25,r)
> exten => 1,1,Goto(voicemail,1,1)
>
> [default]
>
> exten => 1900,1,System('/scripts/start_bioler.pl')
>
> exten => 1901,1,System('/scripts/start_aircon.py')
>
> exten => 1902,1,System('/scripts/burn_house_down.exe')
> ------------------------------------------------------------------------
> --
>
> the problem is when a person calls me, after the 3 seconds timeout he
> hears silence for the ringing duration (25 seconds), the caller doesn't
> hear any ringing sound, although the dial command has an r in the end
>
> however, if i replace incoming's 500 entry with:
>
> [incoming]
> exten => 500,1,Goto(ringme,1,1)
>
> then a ringing tone is heard by the caller
>
>
> Note that i speak of the caller hearging a ringing sound, not the
> callee.
> the ring on the calee(s) is ok in both cases.
>
>
> any idea ?
>
> cheers,
> erez.
>
> ======================
> To unsubscribe, send mail to [EMAIL PROTECTED] with the word
> "unsubscribe" in the message body, e.g., run the command echo
> unsubscribe | mail [EMAIL PROTECTED]
>
>

================================================================To unsubscribe, 
send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to