[asterisk-users] Dial L( x [: y ][: z ]) option truncates colon (:) using AGI /_

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Sep 4 09:16:08 CDT 2008


On Thursday 04 September 2008 03:15:51 selmak se wrote:
> AGI Rx << EXEC Dial SIP/1001,,L(32000:20000:10000)
>
> [Sep  4 11:04:20] WARNING[18100]: chan_sip.c:2907 create_addr: No such
> host: 1001,,L(32000

The issue is that internally, the application argument delimiter in 1.4 is
actually the pipe symbol, not the comma, so you'd need to do:
EXEC Dial SIP/1001||L(32000:20000:10000)

I agree that this is nonobvious, difficult to foresee, stupid, etc., which is
why starting in 1.6, the comma will become the application argument delimiter,
so your first form will work.  There is a backwards-compatibility option with
respect to using pipes that will enable a smooth transition for people used to
using the pipe as the delimiter.

-- 
Tilghman



More information about the asterisk-users mailing list