[Home]

Summary:ASTERISK-09549: regcontext only works in realtime with rtcachefriends=yes on all channels (SIP and IAX2)
Reporter:Allan Gomes (allangood)Labels:
Date Opened:2007-05-30 13:29:41Date Closed:2007-06-07 12:18:18
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) debug
Description:Before Asterisk 1.4.x it's possible to use the "regcontext" feature without enabling rtcachefriend with realtime users and now this is no longer possible. This feature is really important if you use DUNDi.

****** ADDITIONAL INFORMATION ******

This is an output:

Added extension '1001' priority 1 to sipregistration
   -- Added extension '1001' priority 1 to sipregistration
   -- Unregistered SIP '1001'
   -- Registered SIP '1001' at 10.1.6.16 port 5060 expires 60
   -- Added extension '1001' priority 1 to sipregistration
   -- Added extension '1001' priority 1 to sipregistration
asterisk1*CLI> dialplan show sipregistration
[ Context 'sipregistration' created by 'SIP' ]

-= 0 extensions (0 priorities) in 1 context. =-

The same occurs on IAX2 channels.

Looks like Asterisk try to register the extension, but it fails.
And if I enable the rtcachefriend, everything works perfectly.

In debug mode I see this error only with rtcachefriends=no:

[May 18 09:30:57] DEBUG[19553]: db.c:197 ast_db_get: Unable to find key '1001' in family 'SIP/Registry'

The error seen's not to be in channel driver.

Maybe in the "ast_add_extension2" function?

Thank you.
Comments:By: Joshua C. Colp (jcolp) 2007-05-31 11:00:05

Ditto from issue ASTERISK-9465.

By: Joshua C. Colp (jcolp) 2007-06-07 12:18:18

Closing since the discussion is happening in the other one and this is a duplicate.