Hi, Running 1.6.2.11 and getting the odd occation that all phones will start ringing with nobody on the other end. From the information we have received from the client we can see that a call comes in, it is either answered or not answered, but at the same time a second call comes in and it handled by the Background auto-attendant. At that point all their office phones ring. Any thoughts on go about diagnosing this issue as unless we can catch it when it exactly happens we miss the window of opportunity. -- Thanks, Phil
Hi I want to have some signal when a call is answered. I can watch the asterisk debug or logs and see when a call is answered of course but I want a sound notification. I tried this: [macro-notifymobile] exten => s,1,Dial(SIP/foobar,10) exten => _0031.,n,Dial(SIP/foobar2/${EXTEN},60,wM(notifymobile)) But this results in: [Mar 17 13:41:46] -- IAX2/4506-102 answered IAX2/4506-35 [Mar 17 13:41:46] -- Executing [s at macro-notifymobile:1] Dial("IAX2/4506-102", "SIP/foobar|10") in new stack [Mar 17 13:41:46] -- Called foobar [Mar 17 13:41:46] -- IAX2/4506-102 requested special control 20, passing it to SIP/foobar-b760dd78 [Mar 17 13:41:46] -- SIP/foobar-b760dd78 is ringing [Mar 17 13:41:46] -- IAX2/4506-102 requested special control 20, passing it to SIP/foobar-b760dd78 I think it is passing the call to the extension SIP/foobar (my wifi mobile device) which rings. I want the call to stay connected to the original extension. How would I achieve a notification this way or another way? And is it possible to Dial() and only connect to your extension when someone answers the call? -- - Eric Smith
On 3/17/2011 8:52 AM, Eric Smith wrote:> How would I achieve a notification this way or another way?I would use the same premise- below is not tested, exten => _0031.,n,Dial(SIP/foobar2/${EXTEN},60,wM(notifymobile)) [macro-notifymobile] exten => s,1,Set(STRIPPED=${CHANNEL:4}) exten => s,n,Set(XTN=${CUT(STRIPPED,-,1)}) exten => s,n,Set(TEXT=Extension $XTN answer call from ${CALLERID(num)}) exten => s,n,System(/opt/swift/bin/swift -o /tmp/$XTN.wav "$TEXT") exten => s,n,Page(SIP/foobar,iqA(/tmp/$XTN.wav)) alternatively, what I actually do: [macro-AnswerLog] exten => s,1,Set(STRIPPED=${CHANNEL:4}) exten => s,n,Set(XTN=${CUT(STRIPPED,-,1)}) exten => s,n,Macro(Jabber,x${XTN} answered ${CALLERID(num)}) [macro-Jabber] ; ${ARG1} - message exten => s,1,Jabbersend(me at example.com,me1 at example.org,${ARG1}) exten => s,n,Jabbersend(me at example.com,me2 at example.net,${ARG1}) -- Jeremy Kister http://jeremy.kister.net./
2011/3/17 Eric Smith <es at fruitcom.com>> Hi > > I want to have some signal when a call is answered. > I can watch the asterisk debug or logs and see when a call is answered > of course but I want a sound notification. > >I would try using Dial M or U options with which a macro or routine is run when the call is answered. Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110318/9ea2a309/attachment.htm>