PPJSIP and SIP auto Answer
Set(PJSIP_HEADER(add,Call-Info)=answer-after=0)
Or
Set(PJSIP_HEADER(add,Alert-Info)=info=AutoAnswer)
PPJSIP and SIP auto Answer
Set(PJSIP_HEADER(add,Call-Info)=answer-after=0)
Set(PJSIP_HEADER(add,Alert-Info)=info=AutoAnswer)
exten => s,1,Set(FEATURE(parkingtime)=100) same => n,Dial(SIP/100) same => n,Hangup()
exten => s,1,Set(FEATUREMAP(atxfer)=*9) same => n,Dial(SIP/100,,T) same => n,Hangup()
[applicationmap] <FeatureName> = <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,<AppArguments>[,MOH_Class]] <FeatureName> = <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>[,"<AppArguments>"[,MOH_Class]] <FeatureName> = <DTMF_sequence>,<ActivateOn>[/<ActivatedBy>],<Application>([<AppArguments>])[,MOH_Class]
Field Name
|
Description
|
---|---|
FeatureName | This is the name of the feature used when setting the DYNAMIC_FEATURES variable to enable usage of this feature. |
DTMF_sequence | This is the key sequence used to activate this feature. |
ActivateOn | This is the channel of the call that the application will be executed on. Valid values are "self" and "peer". "self" means run the application on the same channel that activated the feature. "peer" means run the application on the opposite channel from the one that has activated the feature. |
ActivatedBy | ActivatedBy is no longer honored. The feature is activated by which channel DYNAMIC_FEATURES includes the feature is on. Use a pre-dial handler to set different values for DYNAMIC_FEATURES on the channels. Historic values are: "caller", "callee", and "both". |
Application | This is the application to execute. |
AppArguments | These are the arguments to be passed into the application. If you need commas in your arguments, you should use either the second or third syntax, above. |
MOH_Class | This is the music on hold class to play while the idle channel waits for the feature to complete. If left blank, no music will be played. |
[applicationmap] playmonkeys => # 9 ,peer,Playback,tt-monkeys retrieveinfo => # 8 ,peer,Set(ARRAY(CDR(mark),CDR(name))=${ODBC_FOO(${CALLERID(num)})}) pauseMonitor => # 1 ,self/callee,Pausemonitor unpauseMonitor => # 3 ,self/callee,UnPauseMonitor |
Set(__DYNAMIC_FEATURES=playmonkeys#pauseMonitor#unpauseMonitor) |