[asterisk-users] Server-side scripting when SIP phones register

Olivier oza-4h07 at myamail.com
Fri Oct 9 02:04:52 CDT 2009


Hi,

Using AMI, when a peer is set with Qualify=yes, it seems you can't make a
difference between First-time registration and Re-registration. Looking at
an AMI log, I saw:

Re-registration (to be confirmed):
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/7266
PeerStatus: Registered
Address: 10.10.20.109
Port: 5060

First-time registration (after pluging back a SIP phone):
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/7275
PeerStatus: Registered
Address: 10.10.20.104
Port: 5060

If this 2nd message was different from the 1st one, it would possible to get
this server-side feature.

Example of first-time registration:
Event: PeerStatus
Privilege: system,all
ChannelType: SIP
Peer: SIP/7275
PeerStatus: Registered
Address: 10.10.20.104
Port: 5060
SubPeerStatus: First


I'm not enough aware of SIP channel internals to tell if it does make sense
to hope to have this distinction made between registrations.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091009/41564ccb/attachment.htm 


More information about the asterisk-users mailing list