<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>Here is my
story. i am trying to add a little change in the asterisk
app_queue.c. I just want to send some text to the agent just before he gets
connected.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>1. So in function
ring_entry after ast_request is called.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>2. I am calling
ast_sendtext function call passing some text to it as "hello
world".</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>my function never
gets called. I have also observed that cannot call any of our own function.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>So here are my
questions</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>1. Why my call
ast_sendtext doesn't work?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>2. Why i
am unable to call my own new function. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>-I have tried by
modifying channel_pvt.h by adding my new routine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>- initialized that
routine in sip_new function in chan_sip.c</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>-and called the
function from app_queue.c similar to all others (ex : ie
ast_<EM>ourroutine.)</EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005><EM></EM></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>it doesnot work so
kindly let me know where iam going wrong. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>Does a particular
application can only make som calls ? if so, where exactly this linking is
built. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>kindly help
me.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=640354215-27102005>Thanks and
regrds,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=640354215-27102005>Somesh</SPAN></FONT></DIV></BODY></HTML>