i’ve certificate and a key from provider, how can i use and where them ? and can i use tls and rstp without certificate key ?
I have a question, there is an example of extension for receiving calls:
[code][incoming]
exten => _X.,1,Answer()
same => n,GotoIf($[“${CHANNEL(secure_signaling)}” = “1”]?secure:insecure)
same => n(secure),NoOp(Signaling is encrypted.)
same => n,Hangup()
same => n(insecure),NoOp(Signaling is not encrypted.)
same => n,Hangup()[/code]
Supposing that i have the following extension :
[code][from-internal]
exten=>100,1,(secure_bridge_signaling)=1)
same => n,Set(CHANNEL(secure_bridge_media)=1)
same => n,Dial(SIP/user1,20)
exten=>200,1,(secure_bridge_signaling)=1)
same => n,Set(CHANNEL(secure_bridge_media)=1)
same => n,Dial(SIP/user1,20)[/code]
That is set in sip.conf as:
[quote][general]
context=from-internal[/quote]
and for the users:
[code]friends_internal
context=incoming
…
user1
secret=…[/code]
When i call user2 as user1 only the extension in the context incoming gets executed, but from-internal context extensions do not dial. How do i make the extensions for dialing in from-internal to be called on first place, and only then the extensions in incoming context to execute?
Hello,
The context=incoming defined in the template section [friends_internal] overwrites the context=from-internal in the [general] section. Remove context=incoming from section [friends_internal] and give it a try.
Regards.