[Home]

Summary:ASTERISK-03537: [patch] channel driver UNISTIM
Reporter:mochouinard (mochouinard)Labels:
Date Opened:2005-02-18 08:19:34.000-0600Date Closed:2011-06-07 14:05:19
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_unistim_c_rev7s.txt
( 1) chan_unistim.c_rev4.txt
( 2) chan_unistim.c_rev5s.txt
Description:This is the UNISTIM channel driver Ive start doing a few day ago.  It allow Nortel i2004 IP Phone to connect to asterisk.

****** ADDITIONAL INFORMATION ******

Marc O. Code Disclamed
Example unistim.conf :
[general]
port=5000

[0030381310e2] ; MAC ADDRESSE OF THE PHONE
allow=all
context=default
line=2000
line=2001
line=2002

Simple Dial to the phone :
exten => 2000,1,Dial(UNISTIM/2000@0030381310e2)
Comments:By: mochouinard (mochouinard) 2005-02-18 08:23:55.000-0600

I submited this patch in this current NOT PERFECT AND FAR FROM HEAD STATUS, because I wont beable to work on it for a few week, and I dont want to keep to manange multiple people Disclamer outside.  So if you update a new revision here, PLEASE disclamed your changes.  This current version allow only to call the phone, the phone ring, you pickup, and you hangup.  And even that part of the code is far from perfect.  But it the most I can do for the moment.  The code currently is based on different channel drivers currently included in Asterisk, + code from Cedric Hans, which when I talked to him already commited code to * and will be happy to disclamer his part of the code. So I will point him to this bug report so he can do all the changes he want too.  I hope it ready and Digium have a i2004 for VON ;) I just wish I'll be there to see Nortel People face.

By: Brian West (bkw918) 2005-02-18 18:15:30.000-0600

shouldn't you do something like this:

[2000]
mac=0030381310e2
context=blah

Dial(UNISTIM/2000)

Without the need to put the mac in the dialplan.

bkw

By: mochouinard (mochouinard) 2005-02-18 20:11:40.000-0600

The phone can have up to 6 line (more or less depending how we configures the buttons.  And the phone register only 1 time with the server, using his MAC address.  so 2000 isnt the phone, but only an extention, that you might wish on another phone also.  Ive based myself alot on skinny. except I based the name of the device on the MAC, we could make MAC=SOMETHING and give the declaration of the phone different, that would follow what chan_skinny does I beleive, but it was easier to code it when I made it the way it is now.

By: Brian West (bkw918) 2005-02-20 11:44:25.000-0600

I'm just saying it would be nice to not have the mac address in the dialplan ;)

bkw

By: slime (slime) 2005-02-22 08:46:33.000-0600

I submited rev5s of the unistim code. It has a few new features like simple dial support, callerid display, test for dialtone, etc. Also added new unistim messages. At this moment you can only call other phones that supports ulaw. I now have to figure out how to set the correct codec in *. !!!ATTENTION: This code is very unstable. It´s only for testing some of the features.!!!

By: Brian West (bkw918) 2005-02-24 20:04:29.000-0600

static int capability = AST_FORMAT_ULAW || AST_FORMAT_ALAW || AST_FORMAT_G729A;

Thats just a bitmask.

/b

By: slime (slime) 2005-03-01 04:25:21.000-0600

I have uploaded rev7s of the chan_unistim.
There are some new features.
- dial tone, alert tone (only german cad/freq at this time)
- collect digits while onhook
- callerid num and name display
- multi line support
- label the keys
- speeddial with the fav. keys
- answer the line with the (fav) keys
- message waiting (lit the led on top of phone and display new/old messages)
Also added some new messages and did some code cleanup.

By: slime (slime) 2005-03-01 04:28:38.000-0600

The entry in unistim.conf now should look like this:
[general]
.
.

[macofphone]
context=default
allow=ulaw
key0=line:2000
key1=line:2001
key2=adl:8500
key3=adl:1234
key4=
key5=
line=2001
line=2000

By: Michael Jerris (mikej) 2005-03-01 10:32:33.000-0600

I would like to second the recomendation to get the MAC out of the dial plan by putting a mac=in the options.  

Mike

By: mochouinard (mochouinard) 2005-03-16 20:55:22.000-0600

Cedric has realeased another modified version of my chan driver at : http://www.voip-info.org/tiki-index.php?page=Asterisk%20UNISTIM%20channels

I dont have the phone anymore so I can't work on this for the moment.

By: Brian West (bkw918) 2005-03-17 21:11:24.000-0600

Moc and I agree we can close this till such time as its more stable/releaseable.  So if the guy that took over the dev of this wants to repost once its more mature?

/b