[Asterisk-Users] Sipura SPA-841 auto-answer support [patch]

Brian Christie brc007 at gmail.com
Sun Jan 30 01:01:00 MST 2005


Hi Geoff,

The best place for patches to Asterisk is the Asterisk bug tracker,
which can be found at http://bugs.digium.com .

*Please* don't forget to read the guidelines:
http://www.digium.com/bugguidelines.html and file a disclaimer.

Thanks for the patch! I'll look for it on the bug tracker :)

-Brian

On Sat, 29 Jan 2005 14:12:50 -0500, Geoff Speicher <geoff at speicher.org> wrote:
> Sipura has implemented auto-answer in version 0.9.5 of the SPA-841
> firmware.  However, it is implemented via the Call-Info header, which
> Asterisk stable doesn't currently support.
> 
> The attached patch implments a quick hack to support the Call-Info
> header from the Dial() application by way of setting the CALL_INFO
> variable.  For example, the following macro can be used to dial up a
> single extension as an auto-answer intercom, or multiple extensions as a
> system-wide page.  Note that the SPA-841 requires the leading semicolon
> for auto-answer to work.
> 
> [macro-intercom]
> ;
> ; ${ARG1} - Extension
> ;
> exten => s,1,SetVar(CALL_INFO=\;answer-after=0)
> exten => s,2,Dial(${ARG1})
> exten => s,3,Congestion
> exten => s,103,Congestion
> 
> ;
> ; Assuming ALLPHONES variable is set to all extensions,
> ; the following will do a system-wide page when from the
> ; default context when the user presses zero
> ;
> [default]
> exten => 0,1,Macro(intercom,${ALLPHONES})
> 
> The patch is relative to the base Asterisk source directory.
> 
> Geoff
> 
> begin 644 callinfo.tgz
> M'XL(`````````^U8>V_:2!#/O^13;*D40;`3V[RI4H4+KH)*(`*2JW0ZK1Q[
> M@;T:V[=>\FB;[WZS:YMG2&A[T5TECU*OO3NOG9WYS5+;<EWJC?RCP.+V9.]5
> M2`.JE$IRK%8J<M2,Z%O3='@M[NF:7JU4R\6R5MW3])*N%_>0]CKNK-(LY!9#
> M:&],_-'H&3Y@>W8]VHPV'W\14E4564$0'L,#.]1RC^PCG]%QQM"TLJKIJE%'
> MNM$HEAI&\:A6JNA&O5 at J(54K:]I^H5!8%UZ3*QF-<NU(J]7J9:-<-F*YTU.D
> M5FMUI8(*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&@6#4,<6HPUN)3VT_2"MZ.#\5%82T6#?3;
> MC+H.ZIL?S/YQ%)3CWN6PW>L.4(Q(".I5R`DQ!'^@!AS_H09E3^,N_OVPCW;L
> M3FB.\S_6G5[/Q>VM:<EGF3E/7(9 at G",NX,UL]$>[:PYQL]7J#X;]CMG],TD"
> M0-"*2(**H>A:5+LR&R&?<.1X[D#>K+)-ES"N"H^R&^DNT_H1JD=D]@*.#@[0
> M&YFBG+G$PU\(\Q>K>0%D$L`V;9T!D]J6IA;\HCH!PYYTS?7OH#H!)WN_FRU\
> M80[/>ZV!]$I"K!/$12:\83S`\*,.T-G!(^9/L>N#$5&0L!+5J(A-!:ZXHD`J
> MAC[OE:)&NSZZLQX0]T5A30`5J6WQI#H9X3/F`>1%`5&3B4U0$?>:9;R5]YP$
> M:/(0X:A<Q=4X22").8M'?#]!$)97M+)J"CWNS\&!D<!]P)&*1O2U%A7J>VCD
> M,^3/^(T_`UQ at 9`R9P^1*&$.#_-57!S"JP\^^>E&,,M9P'B`W]J,>K"\N"M<]
> M:(BXU1PV\7GS[&-4`9X=/(@CG(6$B98%N\1XB7-PWKOJM'#?;+;P\-S$@S:T
> MP$OS#&/(FQ``UQ\MB^>1*A-!?;X=:*OM8#UJ44?Y"0T+->BMO&@\[4\,P3_C
> MT*XJ5CSR'#J"\(\)%]W&'SG60^X@((2I[X,P$I4U&$\!>I'[@#*RK7.US`_-
> MJ\X07S0_70R@>1E*!+D at B#T?G+X3"2JT@=K_^K](4DHII9122BFEE%)**:64
> 64DHII9122BFEE'Y)^@?A'7!"`"@`````
> `
> end
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list