Seperate Devices and Users

Hi,
i’m trying to use this function:
AMPEXTENSIONS=deviceanduser

Devices and Users will be administered seperately now.

Add a new default User:
User Extension: 1001
User Password:1234
Display Name: def_user // default user

Add a new dynamic User:
User Extension: 5001
User Password:1234
Display Name: dyn_user // dynamic user

Add a new Device:
Device ID : 30
Description : SEP0017596EXXX
Device Type Adhoc
Default User: 1001
Device Options
dial: sccp/30

The default number will be set in the sccp.conf with autologin 1001.

First:
calling the 1001 will not work, cause the dial option in the device. ( Executing Dial(“xxxxxxxxx”, “sccp/30||tr”) in new stack )

So, i need to dial “SCCP/”+Exension. Just for testing ich changed in " /var/lib/asterisk/agi-bin/dialparties.agi"
the function get_dial_string( $agi, $extnum ) to :$dialstring = sprintf(“sccp/%s”, $extnum);

Now i can call the default extension “1001” ( Executing Dial(“xxxxxxxxx”, “sccp/1001||tr”) in new stack ).
A call from the device to a second internal sccp device is working and the incomming user name is def_user. Thats is O.K.

Now i press “*11” and login with 5001#1234#.

  1. the line number on the phone is not changing.
    But, a call from the device to a second internal sccp device is working and the incomming user name is dyn_user now. Thats is O.K.
    Incomming calls only possible with extension 1001, cause the channel is still SCCP/1001.
    (sccp/5001 is not found)

The channel should change after login from sccp/1001 to sccp/5001 , or ?
Did i miss something?
Kind of burning out?
Any suggestions? (except vacations)

thx

Hi @all,
The line in the sccp.conf has to be used as channel.

[devices]
type = 7970
autologin = 30 // device id

[lines]
id = 30 // device id
pin = 1234

Using Freepbx frontend:

Add a new default User:
User Extension: 1001
User Password:1234
Display Name: def_user // default user

Add a new dynamic User:
User Extension: 5001
User Password:1234
Display Name: dyn_user // dynamic user

Add a new Device:
Device ID : 30
Description : SEP0017596EXXX
Device Type Adhoc
Default User: 1001
Device Options
dial: sccp/30

Login and logout is working fine.
Using more then one cisco phone with the same default number [1001]
is working too [shared line].
I use a additional sip phone with adhoc type ( x-lite).
Bu one little problem left.
The x-lite is allways showing the device id as (line)number.
The cisco phone will allways show the line buttom label from the sccp.conf
[line]

label = 30; button line label

I’d like to push the current extension to the phone.
Any idea?

greetings