[asterisk-users] Fwd: {s} - extension

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat Mar 8 08:40:12 CST 2008


On Saturday 08 March 2008 02:52:39 Daniel Suleyman wrote:
> Here is the log, my extensions is in the default section
<snip>
> INVITE sip:999 at 192.168.85.29 SIP/2.0
<snip>
> [ Context 'default' created by 'pbx_config' ]
>   '7007' =>         1. Goto(7007-${CNT}|1)                       
> [pbx_config] '7007-2' =>       1. Set(GLOBAL(CNT)=1)                       
>  [pbx_config] 2. Answer()                                   [pbx_config] 3.
> Playback(hello-world|skip)                 [pbx_config] 4. Hangup()        
>                           [pbx_config] '7008' =>         1.
> Set(GLOBAL(connid)=0)                      [pbx_config] 2.
> Set(GLOBAL(resultid)=0)                    [pbx_config] 3.
> Set(GLOBAL(fetchid)=0)                     [pbx_config] 4. MYSQL(Connect
> connid localhost root test test) [pbx_config]
>                     5. MYSQL(Query resultid ${connid} Select a from a)
> [pbx_config]
>                     6. MYSQL(Fetch fetchid ${resultid} a)        
> [pbx_config] 7. MYSQL(Clear ${resultid})                   [pbx_config] 8.
> MYSQL(Disconnect ${connid})                [pbx_config] 9. goto(${a}|1)    
>                           [pbx_config] 's' =>            1. Answer()       
>                            [pbx_config] '_7007-.' =>      1.
> Set(GLOBAL(CNT)=$[${CNT}+1])               [pbx_config] 2. Answer()        
>                           [pbx_config] 3. Playback(tt-weasels|skip)        
>          [pbx_config] 4. Hangup()                                  
> [pbx_config]
<snip>

I don't see extension "999" anywhere in your default context.  "s" is ONLY
used when an extension is NOT sent, not as a default when nothing matches.

-- 
Tilghman



More information about the asterisk-users mailing list