Koozali.org: home of the SME Server

Alert-Info problems

Offline jono

  • *
  • 10
  • +0/-0
Alert-Info problems
« on: November 07, 2009, 01:54:23 PM »
Hello,

I'm having some problems getting a trunk's Alert-Info working.

I have set the Alert-Info as <http://www.mywebspace.co.uk/folder/tone.wav>

Below is the sip trace from the Snom handset. You may see that a space is inserted after http://

Running Version: sail-2.2.1-718


INVITE sip:5215@192.168.3.106:2049;line=vj9aurdr SIP/2.0
Via: SIP/2.0/UDP 95.177.75.148:5060;branch=z9hG4bK2dbff1c4;rport
From: "01xxxxxxxxx" <sip:01xxxxxxxxx@xx.xxx.xx.xx>;tag=as3c615e24
To: <sip:5215@192.168.3.106:2049;line=vj9aurdr>
Contact: <sip:01xxxxxxxxx@xx.xxx.xx.xx>
Call-ID: 3be9fc8369828f7a31ed7c2c38bdfd69@95.177.75.148
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Sat, 07 Nov 2009 12:49:00 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
<http: //www.mywebspace.co.uk/folder/tone.wav>
Content-Type: application/sdp
Content-Length: 266

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Alert-Info problems
« Reply #1 on: November 07, 2009, 04:04:13 PM »
Hi

I must admit, we've never tried to get a Snom to use an external tone.  However, the strings we successfully use for Snoms look like this...

Code: [Select]
Alert-Info:<http://127.0.0.1>\;info=alert-external
Notice that we include the Alert-info: string and we encapsulate the uri in a <> wrapper.  This is pretty much what we got from Snom and it works fine for selecting the on-board ring tones.  It will select the tone which is associated (in the above example) with the Snom's alert-external variable.  You can set this in the phone's "Preferences" section or via provisioning. 

I don't know why the space is creeping in to your URL.  There is no overt code in the handler to manipulate the string itself.  We simply take what you give us and insert it into the SIP header.

Kind Regards

S   

Offline jono

  • *
  • 10
  • +0/-0
Re: Alert-Info problems
« Reply #2 on: November 07, 2009, 04:21:42 PM »
Thanks for that. Pointed me in the right direction.

Alert-Info:<http://www.mywebspace.co.uk/folder/tone.wav> works

I had thought that in the Trunklines set up I didn't need to include Alert-Info: as it is implied by the name of the field.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Alert-Info problems
« Reply #3 on: November 07, 2009, 04:36:45 PM »
so...

can you get it to play any old .wav file?


Best

S

Offline jono

  • *
  • 10
  • +0/-0
Re: Alert-Info problems
« Reply #4 on: November 07, 2009, 05:41:53 PM »
Yep, so long as it's a standard 8 kHz mono 16-bit sample WAV file.

I use it primarily to make DDIs sound different from, say, the main incoming ring group - something you tend not to be able to do on legacy systems.
« Last Edit: November 07, 2009, 05:44:33 PM by jono »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Alert-Info problems
« Reply #5 on: November 07, 2009, 05:45:41 PM »
cool

:)

S