[Asterisk-Users] Problem with Action:Originate with ASterisk Manager

Somesh S Shanbhag someshss at yahoo.com
Tue Jan 10 00:10:59 MST 2006


 Hi Asterisk-users,
 
 I am working with Aterisk Manager API's.
 I can login successfuly with the following.
 
 char buff[256];
 strcpy(buff, "Action: Login\r\nUsername: admin\r\nSecret: unix\r\n\r\n");
 send(msock, buff, 255);
 
 Now I want to try Action: Originate, therefore I tried the following
 
 char buff1[256];
 strcpy(buff1, "Action: Originate\r\nChannel: SIP/101\r\nExten: 102\r\nPriority: 1\r\nContext: default\r\n\r\n");
 send(msock, buff1, 255);
 
 But I get the following error response from Asterisk-Manager
 Response: Error
 Message: Missing action in request
 
 Later I enabled the DEBUG Log in Asterisk I can see the following -
 
 >>>>>> During the Login >>>>>>>>>>>>>>
 
 *CLI> Jan 10 12:26:33 DEBUG[24230]: manager.c:1253 process_message: Manager received command 'Login'
   == Parsing '/etc/asterisk/manager.conf': Found
   == Manager 'admin' logged on from 172.16.25.17
 
 >>>>>>>>>> During the Action Originate >>>>>>>>>>>>>>>>>>>>
 Jan 10 12:26:33 DEBUG[24230]: manager.c:1253 process_message: Manager received command ''
 
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 
 My sip.conf
 [101]
 type=friend
 username=101
 host=dynamic
 nat=yes
 canreinvite=yes
 disallow=all
 allow=ulaw
 allow=alaw
 dtmfmode=inband
 
 
 [102]
 type=friend
 username=102
 host=dynamic
 nat=yes
 canreinvite=yes
 disallow=all
 allow=ulaw
 allow=alaw
 dtmfmode=inband
 
 My extesions.conf
 [default]
 exten=>101,1,Dial(SIP/101,30,Ttrf)
 
 exten=>102,1,Dial(SIP/102,30,Ttrf)
 
 What is the actual problem here? Am I doing some mistake? Please help me 
 in this regard.
 
 Thanks & regards,
 Somesh S. Shanbhag
 
 
 

		
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060110/5af8cb89/attachment.htm


More information about the asterisk-users mailing list