Stasis STASISSTATUS Variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All,

I was just reviewing
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Stasis.
I noticed there is a handy variable named ${STASISSTATUS} returned when
Stasis is finished (OR fails). However if I never register my stasis
application and dial into the context where stasis is at once Asterisk
hits stasis and realizes it can¹t talk to said app Asterisk just hangs up
on the channel.

Quick Dialplan (Ignore the freepbxy partsŠ I work for Sangoma! :) ):

[ari-trunk]
exten => 45,1,Noop(Attempting to join test ari)
exten => 45,n,Macro(user-callerid,)
exten => 45,n,Stasis(test,45)
exten => 45,n,GotoIf($[${STASISSTATUS} = "FAILED"]?from-did-direct,1000,1)
exten => 45,n,GotoIf($[${STASISSTATUS} = "SUCCESS"]?app-blackhole,busy,1)
exten => 45,n,Answer
exten => 45,hint,Stasis:45


CLI (Ignore the freepbxy partsŠ I work for Sangoma! :) ):

    -- Executing [45@from-internal:3] Stasis("PJSIP/1003-00000001",
³test,45") in new stack
  == Spawn extension (from-internal, 45, 3) exited non-zero on
'PJSIP/1003-00000001¹ <=== Cant communicate
    -- Executing [h@from-internal:1] Macro("PJSIP/1003-00000001",
"hangupcall") in new stack  <===Hangs up?





_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev




[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux