[asterisk-app-dev] CALLID header in SuccessfulAuth manager message

Jurijs Ivolga jurij.ivo at gmail.com
Thu Sep 11 07:14:12 CDT 2014


Hi,

In case when client do not unregister properly, for example in case when
I'm killing sip-client process at my PC there will no be any unregister
messages and in this case I will not be able to track this client properly
and next register message from this client will be ignored if I implement
solution as you proposed.

With kind regards,

Jurijs

2014-09-11 13:46 GMT+02:00 Matthew Jordan <mjordan at digium.com>:

>
> On Thu, Sep 11, 2014 at 3:24 AM, Jurijs Ivolga <jurij.ivo at gmail.com>
> wrote:
>
>> Hi,
>>
>> Problem is that if I will wait for "PeerStatus: Registered" message then
>> next time when phone will re-register message will be completely same and
>> there is no possible to understand if it is re-registration or completely
>> new registration.
>>
>> This message I got when my sip-client re-register
>>
>> Event: PeerStatus
>> Privilege: system,all
>> SequenceNumber: 8
>> File: manager.c
>> Line: 1459
>> Func: manager_default_msg_cb
>> ChannelType: SIP
>> Peer: SIP/+1111111111
>> PeerStatus: Registered
>> Address: 192.168.1.152:5060
>>
>> This message I got when my sip-client register
>>
>> Event: PeerStatus
>> Privilege: system,all
>> SequenceNumber: 4
>> File: manager.c
>> Line: 1459
>> Func: manager_default_msg_cb
>> ChannelType: SIP
>> Peer: SIP/+1111111111
>> PeerStatus: Registered
>> Address: 192.168.1.152:5060
>>
>> As you can see they are same. Maybe you have better idea how I can
>> trigger a script after registration and do not trigger it after each
>> re-registration.
>>
>>
>>
> You have to keep track of the status of the devices in your script. If a
> device unregisters, you'll get an update with a PeerStatus of Unregistered.
> If your goal is only to respond on initial registration, your script should
> ignore subsequent "Registered" updates until it sees an Unregistered.
>
> --
> Matthew Jordan
> Digium, Inc. | Engineering Manager
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: http://digium.com & http://asterisk.org
>
> _______________________________________________
> asterisk-app-dev mailing list
> asterisk-app-dev at lists.digium.com
> http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20140911/cb39bb1b/attachment.html>


More information about the asterisk-app-dev mailing list