Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Help with play_and_get_digits from mod_dptools


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





PostPosted: Tue Apr 14, 2009 12:50 am    Post subject: [Freeswitch-users] Help with play_and_get_digits from mod_dp Reply with quote

Hi everyone,

I have a question... I have this on my dialplan:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/>
    <action application="transfer" data="${foobar} XML default"/>
  </condition>
</extension>

What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.

I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.

Any ideas?

Thanks,

Diego
Back to top
diego.viola at gmail.com
Guest





PostPosted: Tue Apr 14, 2009 12:54 am    Post subject: [Freeswitch-users] Help with play_and_get_digits from mod_dp Reply with quote

It works if I use "read" and do this:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
    <action application="transfer" data="${res} XML default"/>
    <!--<action application="log" data="CRIT ${foobar}"/>-->
    <!--<action application="socket" data="127.0.0.1:8084 async full"/>-->
  </condition>
</extension>

But I need play_and_get_digits to work like that too, please.

Diego

On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hi everyone,

I have a question... I have this on my dialplan:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/>
    <action application="transfer" data="${foobar} XML default"/>
  </condition>
</extension>

What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.

I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.

Any ideas?

Thanks,

Diego
Back to top
diego.viola at gmail.com
Guest





PostPosted: Tue Apr 14, 2009 1:00 am    Post subject: [Freeswitch-users] Help with play_and_get_digits from mod_dp Reply with quote

I remember playAndGetDigits had a bug like this too.

Anthony, please help me.

On Tue, Apr 14, 2009 at 1:42 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
It works if I use "read" and do this:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">

    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
    <action application="transfer" data="${res} XML default"/>
    <!--<action application="log" data="CRIT ${foobar}"/>-->
    <!--<action application="socket" data="127.0.0.1:8084 async full"/>-->
  </condition>
</extension>

But I need play_and_get_digits to work like that too, please.

Diego


On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hi everyone,

I have a question... I have this on my dialplan:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/>
    <action application="transfer" data="${foobar} XML default"/>
  </condition>
</extension>

What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.

I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.

Any ideas?

Thanks,

Diego




Back to top
diego.viola at gmail.com
Guest





PostPosted: Tue Apr 14, 2009 1:10 am    Post subject: [Freeswitch-users] Help with play_and_get_digits from mod_dp Reply with quote

Anthony,

I just tried to print the variable with the log app, with read it prints, with play_and_get_digits doesn't.

I'm using latest SVN rev:

FreeSWITCH Version 1.0.trunk (13012M)

Thanks,

Diego

On Tue, Apr 14, 2009 at 1:53 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I remember playAndGetDigits had a bug like this too.

Anthony, please help me.


On Tue, Apr 14, 2009 at 1:42 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
It works if I use "read" and do this:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">

    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
    <action application="transfer" data="${res} XML default"/>
    <!--<action application="log" data="CRIT ${foobar}"/>-->
    <!--<action application="socket" data="127.0.0.1:8084 async full"/>-->
  </condition>
</extension>

But I need play_and_get_digits to work like that too, please.

Diego


On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hi everyone,

I have a question... I have this on my dialplan:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/>
    <action application="transfer" data="${foobar} XML default"/>
  </condition>
</extension>

What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.

I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.

Any ideas?

Thanks,

Diego








Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Apr 14, 2009 8:22 am    Post subject: [Freeswitch-users] Help with play_and_get_digits from mod_dp Reply with quote

try \d instead of \\d in your regex

On Tue, Apr 14, 2009 at 1:02 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Anthony,

I just tried to print the variable with the log app, with read it prints, with play_and_get_digits doesn't.

I'm using latest SVN rev:

FreeSWITCH Version 1.0.trunk (13012M)

Thanks,

Diego


On Tue, Apr 14, 2009 at 1:53 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I remember playAndGetDigits had a bug like this too.

Anthony, please help me.


On Tue, Apr 14, 2009 at 1:42 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
It works if I use "read" and do this:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">

    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
    <action application="transfer" data="${res} XML default"/>
    <!--<action application="log" data="CRIT ${foobar}"/>-->
    <!--<action application="socket" data="127.0.0.1:8084 async full"/>-->
  </condition>
</extension>

But I need play_and_get_digits to work like that too, please.

Diego


On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hi everyone,

I have a question... I have this on my dialplan:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/>
    <action application="transfer" data="${foobar} XML default"/>
  </condition>
</extension>

What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.

I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.

Any ideas?

Thanks,

Diego













_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
diego.viola at gmail.com
Guest





PostPosted: Tue Apr 14, 2009 2:00 pm    Post subject: [Freeswitch-users] Help with play_and_get_digits from mod_dp Reply with quote

That works, thanks Anthm, you're the man.

Diego

On Tue, Apr 14, 2009 at 9:15 AM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
try \d instead of \\d in your regex


On Tue, Apr 14, 2009 at 1:02 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:


Quote:

Anthony,

I just tried to print the variable with the log app, with read it prints, with play_and_get_digits doesn't.

I'm using latest SVN rev:

FreeSWITCH Version 1.0.trunk (13012M)

Thanks,

Diego


On Tue, Apr 14, 2009 at 1:53 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
I remember playAndGetDigits had a bug like this too.

Anthony, please help me.


On Tue, Apr 14, 2009 at 1:42 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
It works if I use "read" and do this:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">

    <action application="read" data="0 10 $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
    <action application="transfer" data="${res} XML default"/>
    <!--<action application="log" data="CRIT ${foobar}"/>-->
    <!--<action application="socket" data="127.0.0.1:8084 async full"/>-->
  </condition>
</extension>

But I need play_and_get_digits to work like that too, please.

Diego


On Tue, Apr 14, 2009 at 1:36 AM, Diego Viola <diego.viola@gmail.com (diego.viola@gmail.com)> wrote:
Quote:
Hi everyone,

I have a question... I have this on my dialplan:

<extension name="outbound2">
  <condition field="destination_number" expression="^(1888)$">
    <action application="play_and_get_digits" data="2 5 3 7000 # phrase:rac_demo /invalid.wav foobar \\d+"/>
    <action application="transfer" data="${foobar} XML default"/>
  </condition>
</extension>

What I want to do is play and read some digits and as soon as I get those digits, transfer to that extension... but this never happens, even if I terminate with a #.

I do the same thing with Lua and it works with Lua, but I need it to work with play_and_get_digits from mod_dptools, because I plan to use this with event socket outbound, with an application which I'm currently working on.

Any ideas?

Thanks,

Diego















_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
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