[asterisk-users] Notify me when the call is answered

Eric Smith es at fruitcom.com
Thu Mar 17 10:47:42 CDT 2011


Hi Jeremy

Instead of using Jabber, which I do not normally, I tried to Page()
my android SIP phone and got this;

[Mar 17 16:46:06]     -- Executing [0031611224030 at default:4] Macro("IAX2/4506-6141", "notifymobile") in new stack
[Mar 17 16:46:06]     -- Executing [s at macro-notifymobile:1] Page("IAX2/4506-6141", "SIP/nohacker|iqA(/home/eric/van_wyk.wav)") in new stack
[Mar 17 16:46:06]     -- Called nohacker
[Mar 17 16:46:06] WARNING[14288]: app_meetme.c:800 build_conf: Unable to open pseudo device
[Mar 17 16:46:06]     -- <IAX2/4506-6141> Playing 'conf-invalid' (language 'en')
[Mar 17 16:46:06] WARNING[14288]: file.c:1273 waitstream_core: Unexpected control subclass '-1'
[Mar 17 16:46:06]   == Begin MixMonitor Recording IAX2/4506-6141
[Mar 17 16:46:06]     -- SIP/nohacker-09747d30 is ringing

Any ideas?

-- 
- Eric Smith
Jeremy Kister said:
> 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./
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list