Stephen Cattaneo
2008-Aug-01 00:28 UTC
[asterisk-users] AMI able to call from known endpoint to unknown endpoint?
Hi I am new to asterisk and to the AMI. I have been automating calls using the AMI's originate, this has been working fine for me. I have been calling from one end point registered with the asterisk to another endpoint registered with the asterisk. Now I want to be able to call from a known extension to an unknown extension (from the point of the asterisk). I have two SIP phones with userids: 3001 and 3002. Both are sitting behind a Linksys IP PBX (SPA9000). On the Linksys IP PBX I have set the outside number 5000 to connect to 3001. 3002 does not have a similar external mapping (this would defeat the purpose of the test I am attempting). By telling asterisk to use 5000, I can call to 3001 from other asterisk extensions. Similarly I can call from 3001 to other asterisk extensions, by again telling asterisk to use 5000. I want to call from 5000/3001 to 3002. If I manually dial 3002 from 5000/3001, 3001 and 3002 will become connected. Is it possible (and if yes, how can I do this) to use the AMI's "originate" to call from 5000 to 3001? Something like: channel=SIP/5000 exten = 3001 context= ?????? priority=1 caller_id= test call Thanks, Steve
benoit plessis
2008-Aug-01 06:06 UTC
[asterisk-users] AMI able to call from known endpoint to unknown endpoint?
On Thu, Jul 31, 2008 at 05:28:42PM -0700, Stephen Cattaneo wrote:> Both are sitting behind a Linksys IP PBX (SPA9000). On the Linksys IP > PBX I have set the outside number 5000 to connect to 3001. 3002 does > not have a similar external mapping (this would defeat the purpose of > the test I am attempting). > [...]> > Is it possible (and if yes, how can I do this) to use the AMI's > "originate" to call from 5000 to 3001?Don't you mean to 3002 ? either that or you will make a loopback call ... Anyway, if that's what i understood it's impossible. You can see a PABX a little bit little a network NAT device (well in your specific problem). Behind the Linksys there is a private network, with one public adresse, which is a static map to one private adresse. Well at least it's how your asterisk IPBX will see things. Basically when using asterisk to connect (call) two extension, asterisk will dial each extension, and then connect them. Since he doesn't have any access to your 3002 internal extension, there is no way this could work. When calling from 3001 you can reach the 3002 extension, but only because you are within the same "network", to keep the metaphor -- Benoit