Ehsan Khosrowshahi
2006-Nov-01 04:23 UTC
[asterisk-users] Manager API - Originate Call - Need Help
Hi all, How can i originate a call from someone outside my sip-network (for example my PSTN home number) to one of my SIP number? I can originate a call from my SIP-network using this parameters in Originate call command : Channel = SIP/0041435215301 Context = default Exten = 00982166501553 Priority = 1 CallerID = 0041435215301 this works with out any problems I initiate a call from one of my network sip clients (0041435215301) and call someone at anyside of the world, but Can I initiate a call from (00982166501553) to one of my sip users? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061101/3e0bc165/attachment.htm
Conrad Wood
2006-Nov-01 04:33 UTC
[asterisk-users] Manager API - Originate Call - Need Help
On Wed, 2006-11-01 at 03:23 -0800, Ehsan Khosrowshahi wrote:> Hi all, > > How can i originate a call from someone outside my sip-network (for > example my PSTN home number) to one of my SIP number? > > I can originate a call from my SIP-network using this parameters in > Originate call command : > > Channel = SIP/0041435215301 > Context = default > Exten = 00982166501553 > Priority = 1 > CallerID = 0041435215301 > > > this works with out any problems I initiate a call from one of my > network sip clients (0041435215301) and call someone at anyside of the > world, but Can I initiate a call from (00982166501553) to one of my > sip users? >Why not do this: Channel = ZAP/g1/00982166501553 Context = default Exten = whateveryoursipphoneis priority =1 CallerID = whateveryouwant If you don't have an extension for your sip phone, add this in context default: exten => whateveryoursipphoneis,1,SIP/SIP/0041435215301 Conrad
If I understood your question correctly, you just need to reverse everything. Channel = OUTGOING TRUNK i.e. ZAP/00982166501553 Context = default Exten = internal extension that points to -> 0041435215301 Priority = 1 CallerID = 0041435215301 This will first initiate the call to the number 0041435215301 and then connect it to the internal extension you specify in Exten that points to "SIP/0041435215301." Cheers On 11/1/06, Ehsan Khosrowshahi <ehsan_ka@yahoo.com> wrote:> Hi all, > > How can i originate a call from someone outside my sip-network (for example > my PSTN home number) to one of my SIP number? > > I can originate a call from my SIP-network using this parameters in > Originate call command : > > Channel = SIP/0041435215301 > Context = default > Exten = 00982166501553 > Priority = 1 > CallerID = 0041435215301 > > > this works with out any problems I initiate a call from one of my network > sip clients (0041435215301) and call someone at anyside of the world, but > Can I initiate a call from (00982166501553) to one of my sip 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 > > >-- ________________ Mitchel Constantin Snap - A desktop user interface for Asterisk www.snapanumber.com
Tony Mountifield
2006-Nov-01 05:08 UTC
[asterisk-users] Re: Manager API - Originate Call - Need Help
In article <20061101112312.18810.qmail@web50809.mail.yahoo.com>, Ehsan Khosrowshahi <ehsan_ka@yahoo.com> wrote:> How can i originate a call from someone outside my sip-network (for example my PSTN home > number) to one of my SIP number? > > I can originate a call from my SIP-network using this parameters in Originate call command : > > Channel = SIP/0041435215301 > Context = default > Exten = 00982166501553 > Priority = 1 > CallerID = 0041435215301 > > this works with out any problems I initiate a call from one of my network sip clients > (0041435215301) and call someone at anyside of the world, but Can I initiate a call from > (00982166501553) to one of my sip users?Try using the Local channel type: Channel = Local/00982166501553@default Context = sip-extensions Exten = 0041435215301 Priority = 1 CallerID = 00982166501553 (use whatever context contains your SIP extensions) This will place the call to your PSTN number first, and when that is answered, it will call the SIP extension and connect the call to it. You ought to think about how the person answering the PSTN extension will know what is happening. Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org