[asterisk-users] SRTP between 2 asterisks
Oscar Patricio
oscar at iportalmais.pt
Fri May 2 11:46:57 CDT 2008
Hi!
I am having trouble getting the following configuration to work:
PHONE1 <-- rtp --> Asterisk <--IAX--> Asterisk_SRTP_1 <--- srtp --->
Asterisk_SRTP_2 <-- rtp--> PHONE2
This means, I am using regular voip clients without srtp support on both
sides, but the communication between the 2 Asterisk_SRTP boxes must be
secure. The Asterisk_SRTP_2 box is registered in the Asterisk_SRTP_1 box
as it was a client.
The problem is that, when i call from phone1 to phone2, when phone2
picks up, the call is automatically hungup by Asterisk_SRTP_1 with the
following error message:
[May 2 17:10:33] DEBUG[11553]: res_srtp.c:456 res_srtp_unprotect: SRTP unprotect: authentication failure
[May 2 17:10:33] WARNING[11553]: rtp.c:1648 ast_rtp_read: RTP Read error: Success. Hanging up.
Is this a known error? What could be the problem here?
Here are the important configuration files:
- Asterisk_SRTP_1:
sip.conf:
[Asterisk_SRTP_2]
type=peer
secret=123
host=dynamic
defaulthost=192.168.69.176
port=5070
dtmfmode=rfc2833
insecure=invite,port
qualify=no
canreinvite=no
extensions.conf:
exten => 355,1,NoOP(Encrypted Call)
exten => 355,n,Set(_SIPSRTP=require)
exten => 355,n,Set(_SIPSRTP_CRYPTO=enable)
exten => 355,n,Dial(SIP/Asterisk_SRTP_2,30)
exten => 355,n,Hangup()
If you need anymore info please let me know!
Thanks in advance for your answers. Any help will be appreciated.
Best regards,
Óscar Patrício
More information about the asterisk-users
mailing list