<div dir="ltr"><div class="">Hi,<br><br>I'm creating
application which should be triggered after peer registration. I'm
listening on manager interface for events. Following event I'm getting
when peer are registered:<br><br>Event: SuccessfulAuth<br>Privilege: security,all<br>SequenceNumber: 214<br>File: manager.c<br>Line: 1459<br>Func: manager_default_msg_cb<br>EventTV: 2014-09-10T10:38:47.508+0200<br>Severity: Informational<br>Service: SIP<br>EventVersion: 1<br>AccountID: +1234567890<br>SessionID: 0x7f4f6431fc88<br>LocalAddress: IPV4/UDP/<a href="http://192.168.1.174/5060">192.168.1.174/5060</a><br>RemoteAddress: IPV4/UDP/<a href="http://192.168.1.152/36623">192.168.1.152/36623</a><br>UsingPassword: 1<br><br>When
I got this event I'm triggering my script. When peer tries to
unregister or re-register, then SessionID should be same as for initial
register message(I believe so). Sometimes after new registration
SessionID is not updated and in this case my script ignores this
message, cause it is assuming that it is re-registration.<br><br>As
solution I assumed I can use sip header CALLID, but it is not possible
to include it in manager SuccessfulAuth messages, I tried to add to
manager.conf following line:<br><br>channelvars = SIPCALLID<br><br>But it do not helps, it shows SIPCALLID for other manager messages but not for SuccessfulAuth messages.<br><br>Additionally
I do not understand why PeerStatus: Reachable message(which you can
find below) is not generated for each registration. 50% of registration I
see this message, but I should be able to get it for each registration.<br><br>Event: PeerStatus<br>Privilege: system,all<br>SequenceNumber: 220<br>File: manager.c<br>Line: 1459<br>Func: manager_default_msg_cb<br>ChannelType: SIP<br>Peer: SIP/+1111111111<br>PeerStatus: Reachable<br><br>Please
let me know how I can include SIP header "CALLID" into "Event:
SuccessfulAuth" manager messages and please let me know how is possible
to force manager to generate "PeerStatus: Reachable" messages for each
registration. I'm using Asterisk 12.5.0. If you have other better ideas
how to trigger script for each new registration, please feel free to
share with me your ideas.<br><br>With kind regards,<br><br>Jurijs</div>
</div>