check status of a number
Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck
ok thanks F ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 2:22 PM Subject: Re: [Freeswitch-users] check status of a number Use the loopback endpoint with originate to do this. /b On Jun 3, 2010, at 1:16 PM, Madovsky wrote: Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck ------------------------------------------------------------------------------ _______________________________________________ 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
I tried originate loopback/numberToCheck localNumber but it says didn't match anything in dialplan should I use special extension in dialplan ? Thanks ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 2:22 PM Subject: Re: [Freeswitch-users] check status of a number Use the loopback endpoint with originate to do this. /b On Jun 3, 2010, at 1:16 PM, Madovsky wrote: Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck ------------------------------------------------------------------------------ _______________________________________________ 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
I'm not sure ... only want to be sure that the number dialed (landline or mobile) respond to call (let's say one ring) and get the result status (SIP status ?) before delete the command in fs_cli F ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 3:19 PM Subject: Re: [Freeswitch-users] check status of a number Um isn't this exactly what you wanted to test? /b On Jun 3, 2010, at 2:15 PM, Madovsky wrote: but it says didn't match anything in dialplan ------------------------------------------------------------------------------ _______________________________________________ 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
Sorry to ask help again, I have no idea of how to use loopback with remote endpoint and originate. the link http://wiki.freeswitch.org/wiki/Mod_loopback shows only the path of local extension without any originate command example. I googled but no success. Thanks F ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 2:22 PM Subject: Re: [Freeswitch-users] check status of a number Use the loopback endpoint with originate to do this. /b On Jun 3, 2010, at 1:16 PM, Madovsky wrote: Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck ------------------------------------------------------------------------------ _______________________________________________ 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
Ok I succeed doing like this : /usr/local/freeswitch/bin/fs_cli -x "expand originate sofia/gateway/\${distributor(pstn_international_2)}/003434REMOTEEXT loopback/999LOCALEXT" and it gives a session: +OK d0c598b5-9291-47eb-a14e-7845763425f4 does +OK means the number always exists ? is there only one ring, hangup and clean the originate call ? Thanks F ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 2:22 PM Subject: Re: [Freeswitch-users] check status of a number Use the loopback endpoint with originate to do this. /b On Jun 3, 2010, at 1:16 PM, Madovsky wrote: Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck ------------------------------------------------------------------------------ _______________________________________________ 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
It means the originate command succeeded to create a call, which that UUID identifies. It doesn't tell you anything about the result of that call though - you'll need to watch for events for that UUID, or check its XML CDR to find out the callflow (to see if it matched an extension) or the hangup reason. -Steve On 4 June 2010 04:51, Madovsky <infos@madovsky.org> wrote:
Ok I succeed doing like this :
/usr/local/freeswitch/bin/fs_cli -x "expand originate sofia/gateway/\${distributor(pstn_international_2)}/003434REMOTEEXT loopback/999LOCALEXT"
and it gives a session:
+OK d0c598b5-9291-47eb-a14e-7845763425f4
does +OK means the number always exists ? is there only one ring, hangup and clean the originate call ?
Thanks
F
----- Original Message ----- *From:* Brian West <brian@freeswitch.org> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Thursday, June 03, 2010 2:22 PM *Subject:* Re: [Freeswitch-users] check status of a number
Use the loopback endpoint with originate to do this.
/b
On Jun 3, 2010, at 1:16 PM, Madovsky wrote:
Hi,
I'd like to use fs_cli to check if the callee number exists and get the status result.
Is anyone already did that ?
Thanks
Franck
------------------------------
_______________________________________________ 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
_______________________________________________ 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
ok I understand Thanks Franck ----- Original Message ----- From: Steven Ayre To: freeswitch-users@lists.freeswitch.org Sent: Friday, June 04, 2010 3:38 AM Subject: Re: [Freeswitch-users] check status of a number It means the originate command succeeded to create a call, which that UUID identifies. It doesn't tell you anything about the result of that call though - you'll need to watch for events for that UUID, or check its XML CDR to find out the callflow (to see if it matched an extension) or the hangup reason. -Steve On 4 June 2010 04:51, Madovsky <infos@madovsky.org> wrote: Ok I succeed doing like this : /usr/local/freeswitch/bin/fs_cli -x "expand originate sofia/gateway/\${distributor(pstn_international_2)}/003434REMOTEEXT loopback/999LOCALEXT" and it gives a session: +OK d0c598b5-9291-47eb-a14e-7845763425f4 does +OK means the number always exists ? is there only one ring, hangup and clean the originate call ? Thanks F ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 2:22 PM Subject: Re: [Freeswitch-users] check status of a number Use the loopback endpoint with originate to do this. /b On Jun 3, 2010, at 1:16 PM, Madovsky wrote: Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck -------------------------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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
if I do this /usr/local/freeswitch/bin/fs_cli -x "expand originate sofia/gateway/\${distributor(pstn_check_number)}/001111111111 loopback/9999999999999" should I have a 9999999999999 extension condition in the dialplan and hold the call to maintain the session alive ? Thanks Franck ----- Original Message ----- From: Steven Ayre To: freeswitch-users@lists.freeswitch.org Sent: Friday, June 04, 2010 3:38 AM Subject: Re: [Freeswitch-users] check status of a number It means the originate command succeeded to create a call, which that UUID identifies. It doesn't tell you anything about the result of that call though - you'll need to watch for events for that UUID, or check its XML CDR to find out the callflow (to see if it matched an extension) or the hangup reason. -Steve On 4 June 2010 04:51, Madovsky <infos@madovsky.org> wrote: Ok I succeed doing like this : /usr/local/freeswitch/bin/fs_cli -x "expand originate sofia/gateway/\${distributor(pstn_international_2)}/003434REMOTEEXT loopback/999LOCALEXT" and it gives a session: +OK d0c598b5-9291-47eb-a14e-7845763425f4 does +OK means the number always exists ? is there only one ring, hangup and clean the originate call ? Thanks F ----- Original Message ----- From: Brian West To: freeswitch-users@lists.freeswitch.org Sent: Thursday, June 03, 2010 2:22 PM Subject: Re: [Freeswitch-users] check status of a number Use the loopback endpoint with originate to do this. /b On Jun 3, 2010, at 1:16 PM, Madovsky wrote: Hi, I'd like to use fs_cli to check if the callee number exists and get the status result. Is anyone already did that ? Thanks Franck -------------------------------------------------------------------------- _______________________________________________ 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 _______________________________________________ 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 ------------------------------------------------------------------------------ _______________________________________________ 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
participants (3)
-
Brian West
-
Madovsky
-
Steven Ayre