selmak se
2008-Sep-04 08:15 UTC
[asterisk-users] Dial L( x [: y ][: z ]) option truncates colon (:) using AGI /_
Hello, I would like to show you that when using Dial L( x [: y ][: z ]) option via AGI the Dial content is truncated in the first colon [:y]. In other words, note below that the error output shows a truncation in the first colon -> No such host: 1001,,L(32000 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 [Sep 4 11:04:20] WARNING[18100]: app_dial.c:1196 dial_exec_full: Unable to create channel of type 'SIP' (cause 3 - No route to destination) AGI Tx >> 200 result=0 Note: This works OK without L option : EXEC DialSIP/1001 Any idea how to use L( x [: y ][: z ]) option via AGI ? Regards, Selmak -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080904/eb5fd2a4/attachment.htm
Tilghman Lesher
2008-Sep-04 14:16 UTC
[asterisk-users] Dial L( x [: y ][: z ]) option truncates colon (:) using AGI /_
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(32000The 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