jean-marie.goupil@telintrans.fr
2004-Apr-30 01:12 UTC
[Asterisk-Users] Réf.: [Asterisk-Users] IAX Example Needed
Here is what you should write in extensions.conf: exten => _5.,1,Dial(IAX2/iax-a2:secret@a1.mystrx.com /${EXTEN}@inbound-calls So when you will dial anything beginning with 5, the call will be dialed in the context inbound-calls of a1.mystrx.com -----asterisk-users-admin@lists.digium.com a ?crit : ----- Pour: asterisk-users@lists.digium.com De: willy@yponeinc.com Envoy? par: asterisk-users-admin@lists.digium.com Date: 29-04-2004 22:59 Objet: [Asterisk-Users] IAX Example Needed Hi All! I have two [*]s, and both work OK as a simple local PBX. Now, I try to link them using IAX. Let's call those babies a1 and a2. From a1, I want to dial a phone connected to a2. Both boxes have a fixed IP address, and use standard port 5036, say a1.mystrx.com and a2.mystrx.com. Where I (obviously) get confused, is when it comes to inbound, outbound, registration, etc. Taking a hint from SIP channels, though, here is what I came up with: **** Machine a1 **** --- iax.conf --- [general] blah blah [iax-a2] type=friend context=inbound-calls ; to allow a2 to call in to me username=iax secret=secret host=a2.mystrx.com --- extensions.conf --- [intern] exten => 6111,1,Dial(IAX2/iax-a2/6111) ; exten => 6111,2,Hangup [inbound-calls] exten => 5111,1,Dial(SIP/2200) exten => 5111,2,Hangup **** Machine a2 **** --- iax.conf --- [general] blah blah [iax-a1] type=friend context=inbound-calls ; to allow a2 to call in to me username=iax secret=secret host=a1.mystrx.com --- extensions.conf --- [intern] exten => 5111,1,Dial(IAX2/iax-a1/5111) ; exten => 5111,2,Hangup [inbound-calls] exten => 6111,1,Dial(SIP/3200) exten => 6111,2,Hangup ======================When I dial extension 6111 at the a1 pbx, I see the Dial(IAX2/iax-a2/6111) beinf executed, but nothing happens at machine a2. Any comments? I must be missing something really simple. TIA WW Willy Wouters ypOne Publishing _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users