136
Other Yate server issues / Re: Yate Redirect SIP 300 Multiple Choices
« on: September 19, 2017, 04:48:51 AM »
Javascript is not an external module. Yate has a javascript module. See http://docs.yate.ro/wiki/Javascript
A regexroute example:
[extra]
chan.disconnected=
[chan.disconnected]
${cause_sip}^300$={
; TODO:
; - Logic to detect choices from message
; - Logic to setup called target from choices (route)
; On success set 'CALLTO' parameter in handled message
${CALLTO}.=dispatch chan.masquerade;message=call.execute;id=${id};callto=${CALLTO}
}
You can find more at docs.yate.ro
http://docs.yate.ro/wiki/Regular_expressions
http://docs.yate.ro/wiki/How_to_convert_SIP_headers_into_SIP_parameters_names_in_messages
http://docs.yate.ro/wiki/Debugging_and,_or_Investigation_of_messages
A regexroute example:
[extra]
chan.disconnected=
[chan.disconnected]
${cause_sip}^300$={
; TODO:
; - Logic to detect choices from message
; - Logic to setup called target from choices (route)
; On success set 'CALLTO' parameter in handled message
${CALLTO}.=dispatch chan.masquerade;message=call.execute;id=${id};callto=${CALLTO}
}
You can find more at docs.yate.ro
http://docs.yate.ro/wiki/Regular_expressions
http://docs.yate.ro/wiki/How_to_convert_SIP_headers_into_SIP_parameters_names_in_messages
http://docs.yate.ro/wiki/Debugging_and,_or_Investigation_of_messages