Originate call from one ext to another from php?
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.
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:
$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
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:
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:
$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.
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:
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
That's it, worked perfectly, thanks a bunch! On 2/11/09 3:59 PM, "Brian West" <brian@freeswitch.org> wrote:
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:
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.
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:
That's it, worked perfectly, thanks a bunch!
On 2/11/09 3:59 PM, "Brian West" <brian@freeswitch.org> wrote:
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
participants (2)
-
Brian West
-
Chris Elam