Re: [asterisk-users] Were i make mistake

2007-05-06 Thread Nico Busch
First of all, both users have the same name:

[test]

type=friend

username=test1
...

[test]

type=friend

username=test
...

You should change this to:

[test1]

type=friend

username=test1
...

[test]

type=friend

username=test
...


Nico

Ardit Saliu schrieb:

 I’ve found some manuals and tried this to do :

 Sip.conf

  

 [test]

 type=friend

 username=test1

 secret=test1

 host=192.168.1.238

 context=tutorial

 fromuser=SIP Phone

 callerid=101

 nat=no

 canreinvite=yes

 dtfmode=info

 disallow=all

 allow=ulaw

  

  

  

 [test]

 type=friend

 username=test

 secret=test

 host=192.168.1.240

 context=tutorial

 callerid=100

 nat=no

 canreinvite=yes

 dtfmode=info

 disallow=all

 allow=ulaw

  

  

 Extensions.conf

 [tutorial]

 exten = 101,1,Dial(SIP/test1)

 exten = 100,1,Dial(SIP/test)

  

 allow restarted with sudo /etc/rc.d/init.d/asterisk restart

  

  

 I’m using Xlite 3.0 34025

  

 In the phone shows “Registration error: 404 – Not found”

  

 What should I do now??

 I just want to call from one phone to another one

 

 ___
 --Bandwidth and Colocation provided by Easynews.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
   

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk Manager: equivalent of 'show channels'?

2006-11-18 Thread Nico Busch

As far as I know, you can do something like this, i.e. in PHP:
fputs($socket, Action: Command\r\n);
fputs($socket, Command: show channels concise\r\n);

I hope that helps, but perhaps there is a better possibility.

NB


Michael Collins schrieb:


I’m interested in knowing if anyone else has worked around this issue:

I have an application that needs to check the status of the calls 
going through Asterisk about every 5 seconds or so. I don’t want to do 
“asterisk –rx ‘show channels verbose’” at the Linux command line 12 
times per minute so I am looking at the AMI. I see that there isn’t a 
manager command for ‘show channels.’ Has anyone come up with an 
equivalent of ‘show channels’ using the extant manager commands? If 
so, could you post how you did it?


Thanks!

-MC



___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
  


___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users