Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Originate call from one ext to another from php?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
celam at arn.com
Guest





PostPosted: Wed Feb 11, 2009 3:44 pm    Post subject: [Freeswitch-users] Originate call from one ext to another fr Reply with quote

Hi all, I’m just starting playing around with FS and I’ve searched for the answer to what I think is an easy question but I can’t find it. I have FS running, 2 X-lite clients on 2 different computers connected using the preconfigured 1000 and 1001 extenstions. Both can call each other and everything is fine. I’m trying to figure out though how to originate the call from 1000 to 1001 via php. I’m using this script:

http://wiki.freeswitch.org/wiki/PHP_Event_Socket

Except that I’ve changed this line:

$cmd = "api help";

To:

$cmd = "api originate sofia/mydomain.com/1000@192.168.15.50 &bridge(sofia/mydomain.com/1001@192.168.15.50)";

The result I get is : -ERR DESTINATION_OUT_OF_ORDER

PS, I literally have “mydomain.com” in there as it looks like from the wiki this is the default.

Any help is much appreciated, thanks all.
This email may contain confidential information and is solely for the use of the intended recipient. Any review, distribution, disclosure or other use of this information by anyone other than the intended recipient is prohibited. If you have received this communication in error, please notify the sender immediately and delete this message from your system.
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Feb 11, 2009 3:49 pm    Post subject: [Freeswitch-users] Originate call from one ext to another fr Reply with quote

show me "sofia status", Try changing the @ to a % but I really need to see the sofia status output.

/b

On Feb 11, 2009, at 2:32 PM, Chris Elam wrote:
Quote:
$cmd = "api originate sofia/mydomain.com/1000@192.168.15.50 ([email]sofia/mydomain.com/1000@192.168.15.50[/email]) &bridge(sofia/mydomain.com/1001@192.168.15.50 ([email]sofia/mydomain.com/1001@192.168.15.50[/email]))";

The result I get is : -ERR DESTINATION_OUT_OF_ORDER
Back to top
celam at arn.com
Guest





PostPosted: Wed Feb 11, 2009 3:55 pm    Post subject: [Freeswitch-users] Originate call from one ext to another fr Reply with quote

The % gives the same error. Here is the sofia status output:

API CALL [sofia(status)] output:
Name Type Data State
=================================================================================================
external profile sip:mod_sofia@myoutsideip:5080 RUNNING (0)
example.com gateway sip:joeuser@example.com NOREG
internal profile sip:mod_sofia@myinsideip:5060 RUNNING (0)
myinsideip alias internal ALIASED
internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
default alias internal ALIASED
nat alias external ALIASED
outbound alias external ALIASED
=================================================================================================
3 profiles 4 aliases



On 2/11/09 3:48 PM, "Brian West" <brian@freeswitch.org> wrote:

Quote:
show me "sofia status", Try changing the @ to a % but I really need to see the sofia status output.

/b

On Feb 11, 2009, at 2:32 PM, Chris Elam wrote:

Quote:
$cmd = "api originate sofia/mydomain.com/1000@192.168.15.50 &bridge(sofia/mydomain.com/1001@192.168.15.50)";

The result I get is : -ERR DESTINATION_OUT_OF_ORDER


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

This email may contain confidential information and is solely for the use of the intended recipient. Any review, distribution, disclosure or other use of this information by anyone other than the intended recipient is prohibited. If you have received this communication in error, please notify the sender immediately and delete this message from your system.
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Feb 11, 2009 4:01 pm    Post subject: [Freeswitch-users] Originate call from one ext to another fr Reply with quote

try sofia/myinsideip/1000 and sofia/myinsideip/1001

I sure hope it doesn't say myinsideip on there and you only tried to
hide your IP.

/b


On Feb 11, 2009, at 2:54 PM, Chris Elam wrote:

Quote:
The % gives the same error. Here is the sofia status output:

API CALL [sofia(status)] output:
Name
Type Data State
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
external profile sip:mod_sofia@myoutsideip:5080
RUNNING (0)
example.com gateway sip:joeuser@example.com
NOREG
internal profile sip:mod_sofia@myinsideip:5060
RUNNING (0)
myinsideip alias
internal ALIASED
internal-ipv6 profile sip:mod_sofia@[::
1]:5060 RUNNING (0)
default alias
internal ALIASED
nat alias
external ALIASED
outbound alias
external ALIASED
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
3 profiles 4 aliases


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
celam at arn.com
Guest





PostPosted: Wed Feb 11, 2009 4:08 pm    Post subject: [Freeswitch-users] Originate call from one ext to another fr Reply with quote

That's it, worked perfectly, thanks a bunch!


On 2/11/09 3:59 PM, "Brian West" <brian@freeswitch.org> wrote:

Quote:
try sofia/myinsideip/1000 and sofia/myinsideip/1001

I sure hope it doesn't say myinsideip on there and you only tried to
hide your IP.

/b


On Feb 11, 2009, at 2:54 PM, Chris Elam wrote:

Quote:
The % gives the same error. Here is the sofia status output:

API CALL [sofia(status)] output:
Name
Type Data State
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
external profile sip:mod_sofia@myoutsideip:5080
RUNNING (0)
example.com gateway sip:joeuser@example.com
NOREG
internal profile sip:mod_sofia@myinsideip:5060
RUNNING (0)
myinsideip alias
internal ALIASED
internal-ipv6 profile sip:mod_sofia@[::
1]:5060 RUNNING (0)
default alias
internal ALIASED
nat alias
external ALIASED
outbound alias
external ALIASED
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
======================================================================
3 profiles 4 aliases


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


This email may contain confidential information and is solely for the use of the intended recipient. Any review, distribution, disclosure or other use of this information by anyone other than the intended recipient is prohibited. If you have received this communication in error, please notify the sender immediately and delete this message from your system.

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Feb 11, 2009 4:17 pm    Post subject: [Freeswitch-users] Originate call from one ext to another fr Reply with quote

remember its sofia/profilename/user%domain or sofia/domain/user the latter requires an alias on the profile for the domain the user registers with.

/b

On Feb 11, 2009, at 3:06 PM, Chris Elam wrote:
Quote:
That's it, worked perfectly, thanks a bunch!


On 2/11/09 3:59 PM, "Brian West" <brian@freeswitch.org (brian@freeswitch.org)> wrote:

Quote:
try sofia/myinsideip/1000 and sofia/myinsideip/1001

I sure hope it doesn't say myinsideip on there and you only tried to
hide your IP.

/b
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services