<div id="RTEContent"> Hi Asterisk-users,<br> <br> I am working with Aterisk Manager API's.<br> I can login successfuly with the following.<br> <br> char buff[256];<br> strcpy(buff, "Action: Login\r\nUsername: admin\r\nSecret: unix\r\n\r\n");<br> send(msock, buff, 255);<br> <br> Now I want to try Action: Originate, therefore I tried the following<br> <br> char buff1[256];<br> strcpy(buff1, "Action: Originate\r\nChannel: SIP/101\r\nExten: 102\r\nPriority: 1\r\nContext: default\r\n\r\n");<br> send(msock, buff1, 255);<br> <br> But I get the following error response from Asterisk-Manager<br> Response: Error<br> Message: Missing action in request<br> <br> Later I enabled the DEBUG Log in Asterisk I can see the following -<br> <br> >>>>>> During the Login >>>>>>>>>>>>>><br> <br> *CLI> Jan 10 12:26:33 DEBUG[24230]: manager.c:1253 process_message: Manager received command 'Login'<br> == Parsing
'/etc/asterisk/manager.conf': Found<br> == Manager 'admin' logged on from 172.16.25.17<br> <br> >>>>>>>>>> During the Action Originate >>>>>>>>>>>>>>>>>>>><br> Jan 10 12:26:33 DEBUG[24230]: manager.c:1253 process_message: Manager received command ''<br> <br> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><br> <br> My sip.conf<br> [101]<br> type=friend<br> username=101<br> host=dynamic<br> nat=yes<br> canreinvite=yes<br> disallow=all<br> allow=ulaw<br> allow=alaw<br> dtmfmode=inband<br> <br> <br> [102]<br> type=friend<br> username=102<br> host=dynamic<br> nat=yes<br> canreinvite=yes<br> disallow=all<br> allow=ulaw<br> allow=alaw<br> dtmfmode=inband<br> <br> My extesions.conf<br> [default]<br> exten=>101,1,Dial(SIP/101,30,Ttrf)<br> <br>
exten=>102,1,Dial(SIP/102,30,Ttrf)<br> <br> What is the actual problem here? Am I doing some mistake? Please help me <br> in this regard.<br> <br> Thanks & regards,<br> Somesh S. Shanbhag<br> <br> <br> </div><p>
                <hr size=1>Yahoo! Photos – Showcase holiday pictures in hardcover<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/photobooks/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38088/*http://pg.photos.yahoo.com/ph//page?.file=photobook_splash.html">Photo Books</a>. You design it and we’ll bind it!