SIP Switch Dial Plan Guide: Info Missing

Any suggestion welcome
Post Reply
kvs01
Posts: 7
Joined: Fri Feb 29, 2008 10:48 pm

SIP Switch Dial Plan Guide: Info Missing

Post by kvs01 » Sat Mar 22, 2008 12:54 am

The SIP Switch Dial Plan Guide page (http://www.mysipswitch.com/helpinfo/dia ... thelp.html) is missing a few key pieces of information (which are spread across the forum), especially:

Aaron wrote:Three new dialplan variables have been added now:

${fromname} - Is the SIP header From name received in the original request,

${fromuriuser} - Is the SIP header From URI user received in the original header,

${username} - Is the username used in the SwitchCall command. Itdoes not provide any extra information and is provided for convenience.

When an incoming call arrives the above variable map to the SIP From header as:

From: ${fromname} <sip:${fromuriuser}@siphost.com>

Applying to:

From: "Joe Bloggs" <sip:012345@siphost.com>

${fromname} = "Joe Bloggs"
${fromuriuser} = 012345

An example of using these parameters to get incoming callerid passed through on an incoming call. Note that some providers use the From URI user for authentication so the below will need to be adjusted depending on the provider.

exten = user,1,Switch(anon,,1234@sip.blueface.ie,${fromname} <sip:${fromuriuser}@sip.mysipswitch.com>)
Aaron wrote:multiple contacts can now be recognised as belonging to a sipswitch user account for incoming calls. The approach for this is to register the contact name as:

<custom string>.<username>@sip.mysipswitch.com

The sipswitch will match on the <username> portion to determine the owner and then lookup an entry in their dialplan for <custom string>.<username>. If no entry is found the default behaviour is again to use the registered devices.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Post by Aaron » Mon Mar 24, 2008 7:29 am

Hi kvs01,

Thanks for pointing out the deficiency, we do struggle with the documentation at times. I have added the information you highlighted to the help page now.

Regards,

Aaron

User avatar
TheFug
Posts: 914
Joined: Sat Oct 06, 2007 8:23 am
Location: The Netherlands, North-Holland

Post by TheFug » Sat May 24, 2008 9:23 pm

but when is the from name variable used ? only the username is used, i thought ?
Thanks, The Fug.

gear: my ISP's Zyxel Modem/Router in bridge, Sitecom WL309 Router, Siemens Gigaset 301D

Post Reply