Hi.
I use asterisk 1.6 connected with my LDAP. LDAP users can call a person configured in sip.conf but can’t receive call. Also , LDAP user can’t call another LDAP user
A little schema :
LDAP -> SIP.conf = OK
SIP -> LDAP = fail
LDAP -> LDAP = fail
First of all , when my LDAP user trying to register , i see it :
After , when my LDAP user call another LDAP user :
[Aug 24 15:53:53] DEBUG[22437]: chan_sip.c:3934 do_setnat: Setting NAT on RTP to Off
[Aug 24 15:53:53] DEBUG[22437]: chan_sip.c:6071 sip_alloc: Allocating new SIP dialog for 22C89300-13C6-F6A9-801B-D38A8AB957E8@10.129.0.15 - INVITE (With RTP)
[Aug 24 15:53:53] DEBUG[22437]: chan_sip.c:3934 do_setnat: Setting NAT on RTP to Off
[Aug 24 15:53:53] DEBUG[22437]: chan_sip.c:17267 handle_request_invite: Checking SIP call limits for device 6299
[Aug 24 15:53:53] DEBUG[22437]: chan_sip.c:2598 __sip_xmit: Trying to put 'SIP/2.0 10' onto UDP socket destined for 10.129.0.15:5061
[Aug 24 15:53:53] DEBUG[5567]: pbx.c:3092 pbx_extension_helper: Launching 'Dial'
-- Executing [6668@DLPN_dp1:1] Dial("SIP/6299-b749d2b0", "SIP/6668,10") in new stack
[Aug 24 15:53:53] DEBUG[5567]: chan_sip.c:20049 sip_request_call: Asked to create a SIP channel with formats: 0x4 (ulaw)
== Using SIP RTP CoS mark 5
[Aug 24 15:53:53] DEBUG[5567]: chan_sip.c:6071 sip_alloc: Allocating new SIP dialog for (No Call-ID) - INVITE (With RTP)
[Aug 24 15:53:53] DEBUG[5567]: chan_sip.c:21147 build_peer: Bah, we're expired (1251122033/0/1251122033)!
[Aug 24 15:53:53] DEBUG[5567]: db.c:188 ast_db_get: Unable to find key '6668' in family 'SIP/Registry'
[Aug 24 15:53:53] WARNING[5567]: app_dial.c:1468 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
[Aug 24 15:53:53] DEBUG[5567]: rtp.c:1846 ast_rtp_early_bridge: Channel '<unspecified>' has no RTP, not doing anything
[Aug 24 15:53:53] DEBUG[5567]: app_dial.c:1950 dial_exec_full: Exiting with DIALSTATUS=CHANUNAVAIL.
[Aug 24 15:53:57] DEBUG[22437]: chan_sip.c:2598 __sip_xmit: Trying to put 'SIP/2.0 48' onto UDP socket destined for 10.129.0.15:5061
[Aug 24 15:53:57] DEBUG[22437]: chan_sip.c:2598 __sip_xmit: Trying to put 'SIP/2.0 20' onto UDP socket destined for 10.129.0.15:5061
[Aug 24 15:53:57] WARNING[5567]: pbx.c:3853 __ast_pbx_run: Don't know what to do with 'SIP/6299-b749d2b0'
[Aug 24 15:53:57] DEBUG[5567]: channel.c:1560 ast_softhangup_nolock: Soft-Hanging up channel 'SIP/6299-b749d2b0'
[Aug 24 15:53:57] DEBUG[22437]: chan_sip.c:3079 __sip_ack: Stopping retransmission on '22C89300-13C6-F6A9-801B-D38A8AB957E8@10.129.0.15' of Response 38654: Match Found
[Aug 24 15:53:57] DEBUG[5567]: channel.c:1653 ast_hangup: Hanging up channel 'SIP/6299-b749d2b0'
[Aug 24 15:53:57] DEBUG[5567]: chan_sip.c:4913 sip_hangup: Hangup call SIP/6299-b749d2b0, SIP callid 22C89300-13C6-F6A9-801B-D38A8AB957E8@10.129.0.15
Here is my res_ldap.conf :
////// [sip]
name = AstAccountName
callerid = AstAccountCallerID
context = AstAccountContext
dtmfmode = AstAccountDTMFMode ,RFC2833
host = AstAccountHost , Dynamic
secret = AstAccountRealmedPassword
nat = AstAccountNAT , YES
secret =
type = AstAccountType , FRIEND
additionalFilter = (objectClass=AsteriskSIPUser)
When i type sip show peers , i see only peers configured in sip.conf , i dont see my LDAP users.
Any ideas ? I really need help
PS : sorry for my language , i’m french