Posted: Thu Apr 30, 2009 11:47 pm Post subject: [asterisk-dev] Doing something on SIP registration
On Thu, Apr 30, 2009 at 3:53 PM, <sip@xbit.ru> wrote:
Quote:
Is there any way to trigger some events on registration
of SIP-device (user, pass, realm)?
For example to join on a conference?
I don't think so but I haven't looked at chan_sip lately... however it would be
rather easy to add ...
you'd like to initiate a call to the sip device that just registered
and join it to the conference bridge ?
yes, that can be easily done in the chan_sip.c
Martin
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 01, 2009 6:02 am Post subject: [asterisk-dev] Doing something on SIP registration
Quote:
> For example to join on a conference?
I don't think so but I haven't looked at chan_sip lately... however it
would be
rather easy to add ...
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.
Quote:
you'd like to initiate a call to the sip device that just registered
and join it to the conference bridge ?
No - quite opposite - as SIP-device registered it automaticaly
calls some extenstion. But may be I'm mistaken?
Quote:
yes, that can be easily done in the chan_sip.c
Do you mean C-programming of one of basic modules of asterisk?
Quote:
Martin
Maxim
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 01, 2009 3:28 pm Post subject: [asterisk-dev] Doing something on SIP registration
On Fri, May 1, 2009 at 1:49 AM, <sip@xbit.ru> wrote:
Quote:
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
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 01, 2009 3:31 pm Post subject: [asterisk-dev] Doing something on SIP registration
On Fri, 1 May 2009, Martin wrote:
Quote:
On Fri, May 1, 2009 at 1:49 AM, <sip@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
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 01, 2009 4:27 pm Post subject: [asterisk-dev] Doing something on SIP registration
Hi team,
I noted there has a little background noise while I dial into system. I do believe it is generated in system as I would heard those noise even I was in CDR. would anbody guide me where is the noise system generated?
It is second time I meet this issue, last time was fixed by change from alaw to ulaw. But no luck is time...
Posted: Fri May 01, 2009 4:28 pm Post subject: [asterisk-dev] Doing something on SIP registration
sorry, reply in wrong topic. Please ingore this message..
On Sat, May 2, 2009 at 1:17 AM, Sunny Du <sunny.du@gmail.com (sunny.du@gmail.com)> wrote:
Quote:
Hi team,
I noted there has a little background noise while I dial into system. I do believe it is generated in system as I would heard those noise even I was in CDR. would anbody guide me where is the noise system generated?
It is second time I meet this issue, last time was fixed by change from alaw to ulaw. But no luck is time...
Posted: Fri May 01, 2009 4:34 pm Post subject: [asterisk-dev] Doing something on SIP registration
On Fri, May 1, 2009 at 11:20 AM, Jeff LaCoursiere <jeff@jeff.net> wrote:
Quote:
Should take about 2-3 hours... (sorry couldn't resist :)
This is thread crapping! Just shows your level ... I pointed the OP to
the function in the code
that is the most logical to implement the feature ... What's wrong with that ?
AND Yes, it'll take you even 1000 hrs to do it
if you're a beginner... This is 1hr tops job for normal asterisk
developers... No need to start
a stupid flamewar if you don't agree!
Martin
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 01, 2009 4:40 pm Post subject: [asterisk-dev] Doing something on SIP registration
On Fri, 1 May 2009, Martin wrote:
Quote:
On Fri, May 1, 2009 at 11:20 AM, Jeff LaCoursiere <jeff@jeff.net> wrote:
> Should take about 2-3 hours... (sorry couldn't resist :)
This is thread crapping! Just shows your level ... I pointed the OP to
the function in the code
that is the most logical to implement the feature ... What's wrong with that ?
AND Yes, it'll take you even 1000 hrs to do it
if you're a beginner... This is 1hr tops job for normal asterisk
developers... No need to start
a stupid flamewar if you don't agree!
Just trying to add a little lighthearted humour to the list - note the
smiley. I'm sure the Op appreciated the pointer. You seem to be wound up
a bit tight...
j
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
Posted: Fri May 01, 2009 4:52 pm Post subject: [asterisk-dev] Doing something on SIP registration
On Fri, May 1, 2009 at 12:32 PM, Jeff LaCoursiere <jeff@jeff.net> wrote:
Quote:
Just trying to add a little lighthearted humour to the list - note the
smiley. I'm sure the Op appreciated the pointer. You seem to be wound up
a bit tight...
j
Well I'm sure we can ask for asterisk-humor list ... let me be the
first one to contribute ...
I had once a guy that complained about the X100P doing crazy stuff ...
he left a voice message.
As he was explaining his problem suddenly his voice changed and
started to resemble some pig's noises / voices ...
It was so funny that everyone that listened to it for more than 1
second would start laughing historically...
I wish I saved that voicemail message for the enjoyment of us all...
Martin
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum