4/10/2023 0 Comments Asterisk database put autoanswer![]() ![]() #define AST_CAUSE_NOANSWER AST_CAUSE_NO_ANSWER #define AST_CAUSE_NORMAL AST_CAUSE_NORMAL_CLEARING #define AST_CAUSE_FAILURE AST_CAUSE_NETWORK_OUT_OF_ORDER #define AST_CAUSE_BUSY AST_CAUSE_USER_BUSY #define AST_CAUSE_MANDATORY_IE_LENGTH_ERROR 103 #define AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE 102 ![]() #define AST_CAUSE_INVALID_IE_CONTENTS 100 #define AST_CAUSE_MESSAGE_TYPE_NONEXIST 97 #define AST_CAUSE_MANDATORY_IE_MISSING 96 #define AST_CAUSE_INVALID_MSG_UNSPECIFIED 95 #define AST_CAUSE_INCOMPATIBLE_DESTINATION 88 #define AST_CAUSE_INVALID_CALL_REFERENCE 81 #define AST_CAUSE_FACILITY_NOT_IMPLEMENTED 69 #define AST_CAUSE_CHAN_NOT_IMPLEMENTED 66 #define AST_CAUSE_BEARERCAPABILITY_NOTIMPL 65 #define AST_CAUSE_BEARERCAPABILITY_NOTAVAIL 58 #define AST_CAUSE_BEARERCAPABILITY_NOTAUTH 57 ![]() #define AST_CAUSE_INCOMING_CALL_BARRED 54 #define AST_CAUSE_OUTGOING_CALL_BARRED 52 #define AST_CAUSE_FACILITY_NOT_SUBSCRIBED 50 #define AST_CAUSE_REQUESTED_CHAN_UNAVAIL 44 #define AST_CAUSE_ACCESS_INFO_DISCARDED 43 #define AST_CAUSE_NORMAL_TEMPORARY_FAILURE 41 #define AST_CAUSE_NETWORK_OUT_OF_ORDER 38 #define AST_CAUSE_NORMAL_CIRCUIT_CONGESTION 34 #define AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY 30 #define AST_CAUSE_INVALID_NUMBER_FORMAT 28 #define AST_CAUSE_DESTINATION_OUT_OF_ORDER 27 #define AST_CAUSE_REDIRECTED_TO_NEW_DESTINATION 23 #define AST_CAUSE_NUMBER_PORTED_NOT_HERE 14 #define AST_CAUSE_CALL_AWARDED_DELIVERED 7 #define AST_CAUSE_MISDIALLED_TRUNK_PREFIX 5 So if you are in the tenant "DEMO" and you want to monitor extension 100 with username "100-DEMO", you need to monitor 100-DEMO and not just 100. One of the common pitfall about BLF is to monitor just the extension number and not the "username" as required. Remember to add this command to any init script, like /etc/rc.local This example redirects UPD port 5090 to port 5060, so you can connect to Asterisk on both of them. Iptables -t nat -A PREROUTING -i eth0 -p udp -dport 5090 -j REDIRECT -to-ports 5060 However, you can use an iptables REDIRECT to get the same result. You can't, it is not possible to configure Asterisk to listen to multiple ports. How can I configure Asterisk to listen to multiple ports? You need to add the following rows to /etc/asterisk/sip.conf and then reload the SIP module (when you have no traffic) How can I enable TCP for SIP (port 5060)? In this case an asterisk restart is needed. When asterisk locks up, it stops processing SIP packets, so the UDP buffer fills up. To be 100% sure, just run the following command and check the result: how can I check it? If you think your asterisk is locked, probably it is. Optionally you can provide a separate certificate and key ![]() Optionally you can add a port number to tlsbindaddr parameterÄon't forget to set asterisk to listen on tcp: Provide the certificate and key in pem format. In the section of sip.conf, add the following info, replacing the IP address with the IP address of the server. TLS will encrypt only the signalling part, without offering any extra security to the RTP (voice) part. Asterisk How can I setup Asterisk to use TLS Asterisk can use TLS as transport for the signalling, increasing the authentication security and providing extra privacy about the number dialed and other info usually transmitted in clear over the SIP channel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |