[asterisk-dev] Doing something on SIP registration

Jeff LaCoursiere jeff at jeff.net
Fri May 1 11:20:27 CDT 2009


On Fri, 1 May 2009, Martin wrote:

> On Fri, May 1, 2009 at 1:49 AM,  <sip at xbit.ru> wrote:
>> I thinked about some way to run a dialplan section,
>> or other way to do anyting just after SIP-register.
>> As I could expect it's rather common and needed feature,
>> but I can't find any way to do it - not in documentation,
>> nor in Google, nor in IRC.
>>
>> Do you mean C-programming of one of basic modules of asterisk?
>
> yes, since the code is not there (checked Asterisk 1.4.x/1.6.x) you
> should add a code that calls
> a dialplan entries when the device registers correctly ...
>
> i'd do that in  handle_request_register() in chan_sip.c
>
> Martin

Should take about 2-3 hours... (sorry couldn't resist :)

j



More information about the asterisk-dev mailing list