Digium Phones : BLF Subscribe

Hi,

I am trying to finalize the model of our future platform Asterisk SIP / DPMA.

I went on the following platform:
http://www.jusouschi.net/_media/systems:linux_os:servers:asterisk:flux_dpma.png

A. DHCP Request
1- Answer to DHCP
2- Assignment of an IP Address and Option 66 > sip:proxy@172.20.170.30:5060

B. DPMA Request
3- Connect to main DPMA (172.20.170.30) and choice an extension
4- Assignment of SIP/DPMA configuration, e.g. :

[code][general]
;-----------------------------------------------------------------------------
; GENERAL
;-----------------------------------------------------------------------------
; – Authentification Options
server_uuid=astdpma
userlist_auth=disabled
config_auth=pin
; – mDNS Discovery disable
service_discovery_enabled=no
; – File Directory pour les contacts
file_directory=/var/lib/asterisk/digium_phones

;-----------------------------------------------------------------------------
; NETWORK
;-----------------------------------------------------------------------------
[astsip1_astsip2]
type=network
alias=astsip1_astsip2
cidr=172.25.0.0/16
; Registration : Serveurs SIP Primaire et Secondaire
registration_address=172.20.170.21
registration_port=5060
alternate_registration_address=172.20.170.22
alternate_registration_port=5060
; File URL pour : applications, blfitems, logos, ringtones, firmwares et
file_url_prefix=http://172.20.170.15/digium_phones
ntp_server=astntp
udp_ka_interval=60

[astsip2_astsip3]
type=network
alias=astsip2_astsip3
cidr=172.25.0.0/16
; Registration : Serveurs SIP Primaire et Secondaire
registration_address=172.20.170.22
registration_port=5060
alternate_registration_address=172.20.170.23
alternate_registration_port=5060
; File URL pour : applications, blfitems, logos, ringtones, firmwares et
file_url_prefix=http://172.20.170.15/digium_phones
ntp_server=astntp
udp_ka_interval=60

[astsip3_astsip1]
type=network
alias=astsip3_astsip1
cidr=172.25.0.0/16
; Registration : Serveurs SIP Primaire et Secondaire
registration_address=172.20.170.23
registration_port=5060
alternate_registration_address=172.20.170.21
alternate_registration_port=5060
; File URL pour : applications, blfitems, logos, ringtones, firmwares et
file_url_prefix=http://172.20.170.15/digium_phones
ntp_server=astntp
udp_ka_interval=60

;-----------------------------------------------------------------------------
; PHONE & LINE
;-----------------------------------------------------------------------------
;- Phone : 0987654321 --------------------
[P0987654321]
type=phone
network=astsip2_astsip3
firmware=D40-1_4_2_0_63880
firmware=D70-1_4_2_0_63880
pin=voicemail
timezone=Europe/Paris
active_locale=fr_FR
ntp_resync=86400
full_name=P0987654321
line=0987654321
ringtone=old_ringtone
ringtone=dual_ringtone
active_ringtone=dual_ringtone
; Logos : into file_url_prefix
d40_logo_file=logos/D40.png
d70_logo_file=logos/D70.png
; Contacts : into file_directory
contact=contacts/0987654321_contacts.xml
; BLF conf : into file_url_prefix
blf_items=blfitems/0987654321_blfitems.xml
blf_unused_linekeys=yes
contacts_max_subscriptions=100
application=annuaire
application=voicemail
;- Line : 0987654321 ---------------------
[0987654321]
type=line
line_label=0987654321
mailbox=0987654321@default
digit_map=[0-9]xxx|1[578]|11[0259]|116000|0[1-9]xxxxxxxx
transport=udp
;-----------------------------------------

;- Phone : 0123456789 --------------------
[P0123456789]
type=phone
network=astsip3_astsip1
firmware=D40-1_4_2_0_63880
firmware=D70-1_4_2_0_63880
pin=voicemail
timezone=Europe/Paris
active_locale=fr_FR
ntp_resync=86400
full_name=P0123456789
line=0123456789
ringtone=old_ringtone
ringtone=dual_ringtone
active_ringtone=dual_ringtone
; Logos : into file_url_prefix
d40_logo_file=logos/D40.png
d70_logo_file=logos/D70.png
; Contacts : into file_directory
contact=contacts/0123456789_contacts.xml
; BLF conf : into file_url_prefix
blf_items=blfitems/0123456789_blfitems.xml
blf_unused_linekeys=yes
contacts_max_subscriptions=100
application=annuaire
application=voicemail
;- Line : 0123456789 ---------------------
[0123456789]
type=line
line_label=0123456789
mailbox=0123456789@default
digit_map=[0-9]xxx|1[578]|11[0259]|116000|0[1-9]xxxxxxxx
transport=udp
;-----------------------------------------[/code]

5- SIP/DPMA connection on astsipX servers

How many phones maximum I can connect to a astsip server ?
With platform, how I can supervise lines between phones (subscribe_to) among astsipX Servers ?

Thanks in advance.
Regards.

I wouldn’t use one DPMA server as a means for pointing phones at other DPMA servers. Rather, you should use your DHCP server, and what it points to, as a means of divvying up the phones to different servers. If you do what you’re proposing, then phone’s going to maintain a session to the server to which it’s pointed, but it’s going to maintain a SIP registration to a different server. Some things (the phone’s applications) won’t work properly in that scenario.

Ok. How can I do so that all services are running properly?

Don’t try to use one Asterisk server running DPMA as a proxy for other Asterisk servers running DPMA.

Begin with one server, and, when it’s loaded, start assigning new phones to a different server.

As far as the provisioning is concerned, you’re using Option 66 to point phones at a server. Don’t use the hard-coded sip:proxy@172.20.170.30:5060 in your Option 66 statement as that’ll only get you one server. Instead, point to an intermediary server that’ll generate XML files featuring the config_server_url directive. The intermediary server should house all of the files you need or should generate them on the fly depending on the MAC address of the phone that’s making the request.

You’d generate files pointing to one server and some other files pointing to a different server.

Ok !
I’ll try the solution:
wiki.asterisk.org/wiki/display/ … Lparameter

But, how can I make the line supervision if my phones are on different DPMA Servers?

You’re going to be living on the bleeding edge if you’re trying to do such a thing.

You won’t get presence updates about phones on a remote server; presence is, for now, only local to the server on which you’re domiciled. It is possible to get device states from a different server, but there aren’t a whole lot of people doing it, and it’s rather new.

See:
wiki.asterisk.org/wiki/display/ … sing+PJSIP

Great.

I’m not sure to understand how to deploy my config XML.

My DHCP conf :

### Digium Phones ### class "Digium" { match if( (substring( option vendor-class-identifier, 0, 6)="digium")); #option option-66 "sip:proxy@172.20.170.30:5060"; option option-160 "http://172.20.170.15/digium_phones/boot/"; }

My 000000000000.cfg file :

<?xml version="1.0" ?> <config> <setting id="config_server_url" value="sip:proxy@172.20.170.22:5060" network_id="2" /> <setting id="config_server_url" value="sip:proxy@172.20.170.23:5060" network_id="3" /> <networks> <network id="2" display_name="SIEGE ADSL TEST" cidr="172.25.90.0/27" /> <network id="3" display_name="POLE INFRASTRUCTURE TECHNIQUE" cidr="172.25.252.0/22" /> </networks> </config>

But my phones stay on :

[code]Choose Digium Configuration Server

Searching…[/code]

The phones don’t respect Option 160, you’ll still have to use 66 to point them to the server from which to pull down the 000000000000.cfg file.

Wonderfull !!!

Thanks !

I have a Digium Phone connect to astsip2 and a Digium Phone connect to astsip3.

For Digium Phone on astsip3, I would like create a rapid dial key with “subscribe_to” to Digium Phone on astsip2.

How do I do this ? With : subscribe_to=auto_hint_0123456789 or subscribe_to=sip:0123456789@172.20.170.22:5060 ?

Howdy,

What do you see on astsip3? Do you see SIP debugging output that indicates that Asterisk has created the subscription? Do you see NOTIFYs going to the phone when a device on astsip3 is InUse?

Hi,

I see InUse the phone connected to astsip3.
But I don’t see NOTIFYs when the phone connected to astsip2 is InUse on astsip3.

Can I have the same subscrition between phones on DPMA servers different, that subscrition on a single server ?

If Yes, how can I do ?

[quote=“jusouschi”]I see InUse the phone connected to astsip3.
But I don’t see NOTIFYs when the phone connected to astsip2 is InUse on astsip3.
[/quote]

I don’t understand.

If Phone A has a line registered to Server A, Phone A can have a contact with a subscribe_to that points to a URI on Server B. You should watch Server B to see if Phone A sends the SUBSCRIBE properly and if Server B properly creates the subscription. You should see that, if the SIP debugging is turned on. Then, when the device on Server B that is associated with that subscription goes InUse, you should see a NOTIFY going out to Phone A.

[quote]
Can I have the same subscrition between phones on DPMA servers different, that subscrition on a single server ?
If Yes, how can I do ?[/quote]

I don’t understand.

Yes, right and works with only : subscribe_to=sip:0123456789@172.20.170.22

But, there is no communication between DPMA servers ?
Which would allow that without knowing which server is connected to my phone, I set “subscribe_to = auto_hint_0123456789”.

E.G :
Phone A has a line registered to Server A, Phone A have a contact with a subscribe_to. But I don’t know if this contact’s line is registered on Server B or Server C.