How to I access the URI from an Invite: INVITE sip:5556678@60.234.111.222 I want to set a variable to equal 5556678. The variable ${SIPURI} returns the From URI. Regards Cameron
kjcsb wrote:> How to I access the URI from an Invite: > > INVITE sip:5556678@60.234.111.222 > > I want to set a variable to equal 5556678. The variable ${SIPURI} > returns the From URI.See: http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sip_header http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sipchaninfo You'll probably need to use 'cut' to extract the relevant parts. Cheers.
17 aug 2006 kl. 22.03 skrev kjcsb:> How to I access the URI from an Invite: > > INVITE sip:5556678@60.234.111.222 > > I want to set a variable to equal 5556678. The variable ${SIPURI} > returns the From URI. >The extension processed in the dialplan is the userinfo part of the URI - the part before the @ sign. The domain part is to be found in the SIPDOMAIN channel variable. /Olle --- * Asterisk@von - Asterisk seminars at Voice On The net Fall, Boston, Sept 11-14 * See http://www.pulver.com/asterisk/