[Home]

Summary:ASTERISK-02930: [patch] Realtime extensions not resolving variables
Reporter:delvar (delvar)Labels:
Date Opened:2004-12-06 08:36:31.000-0600Date Closed:2008-01-15 15:15:47.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) pbx_realtime.diff.txt
Description:Iv just setup * with realtime using ODBC + MySQL all works great so far exept for extensions,

By the looks of it isn’t resolving ${EXTEN} to the extension dialed.

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

In the table I have,
context |exten |priority |app |appdata |
----------------+-------+---------------+-------+-------------------------------+
realtest | _X. |1 |Macro |stdexten|${EXTEN}|SIP/${EXTEN} |


In extensions.conf I have

[realtest]
;exten => _X.,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})
;exten => _X.,2,Hangup

switch => Realtime

exten => 8500,1,VoicemailMain()
exten => 8500,2,Hangup

And from asterisk I get,

  -- Executing Dial("SIP/3005-4529", "SIP/${EXTEN}|20") in new stack
Dec  6 07:37:18 WARNING[1649]: chan_sip.c:1344 create_addr: No such host: ${EXTEN}
Dec  6 07:37:18 NOTICE[1649]: app_dial.c:800 dial_exec: Unable to create channel of type 'SIP' (cause 3)
Comments:By: Brian West (bkw918) 2004-12-06 11:09:11.000-0600

Its not even designed to do this yet.

bkw

By: Brian West (bkw918) 2004-12-06 11:19:56.000-0600

Let me try that again :P

By: delvar (delvar) 2004-12-06 11:43:13.000-0600

hehe that would explain it :)

iv got to say this real time stuff is prety sweet, hopefully cure the deadlocks on realoads we have been having.

as soon as you get this 'fixed' ill give it a good workout :)

By: Brian West (bkw918) 2004-12-06 12:14:05.000-0600

try that.

bkw

By: Mark Spencer (markster) 2004-12-06 12:24:00.000-0600

Fixed in CVS.  Thanks, bkw!

By: Digium Subversion (svnbot) 2008-01-15 15:15:47.000-0600

Repository: asterisk
Revision: 4392

U   trunk/pbx/pbx_realtime.c

------------------------------------------------------------------------
r4392 | markster | 2008-01-15 15:15:47 -0600 (Tue, 15 Jan 2008) | 2 lines

Merge bkw's formatting and variable substitition (bug ASTERISK-2930)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4392