[asterisk-dev] Version Dial() comma separation was introduced in?

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon May 18 13:38:29 CDT 2009


On Monday 18 May 2009 12:09:14 pm Alistair Cunningham wrote:
> Alistair Cunningham wrote:
> > Tilghman Lesher wrote:
> >> On Monday 18 May 2009 11:33:48 am Alistair Cunningham wrote:
> >>> Does anyone know which stable version(s) of Asterisk introduced using
> >>> commas rather than "|" to separate the arguments for Dial()? I'd like
> >>> to run a diff between it and the previous version.
> >>
> >> 1.6.0
> >
> > Thanks, that's what I feared. Looks like I'm going to need to get my
> > hands dirty rather than using diff.
>
> The reason I ask is that the parser seems to behave differently between
> 1.4.21.1 and 1.6.1.0. Here's from 1.6.1.0:
>
> <SIP/enswitch-local-0826d558>AGI Rx << EXEC Dial
> SIP/0123456789 at 5-sip.example.com,600,oL(86398000:60000)
>      -- AGI Script Executing Application: (Dial) Options:
> (SIP/0123456789 at 5-sip.example.com,600,oL(86398000:60000))
>    == Using SIP RTP CoS mark 5
>    == Using UDPTL CoS mark 5
> [May 18 18:03:05] WARNING[24557]: chan_sip.c:4526 create_addr: No such
> host: 5-sip.example.com,600,ooL(86398000
> [May 18 18:03:05] WARNING[24557]: app_dial.c:1518 dial_exec_full: Unable
> to create channel of type 'SIP' (cause 20 - Unknown)
>    == Everyone is busy/congested at this time (1:0/0/1)
>
> With 1.4.21.1, "EXEC Dial
> SIP/0123456789 at 5-sip.example.com|600|oL(86398000:60000)" worked. The
> peer does exist:

My guess is that you don't have a [compat] section in your asterisk.conf.
Starting in 1.6.0, Asterisk looks for a value called res_agi=1.6 in this
section.  It defaults to the value "1.4" in 1.6.0, though if you clean
install, it sets the value as "1.6".  This value governs which delimiter
AGI uses.

This section and value were created at the direct request of users who thought
it was confusing that their 1.4 scripts no longer worked correctly in 1.6.0
and wanted a compatibility setting.

-- 
Tilghman



More information about the asterisk-dev mailing list