Re: [asterisk-users] ControlPlayback can not replay complicated file names

2014-04-10 Thread covici
The colon freaks it out, this may be some parsing problem, I bet.

Jonathan White  wrote:

> If not sure if I am looking at a bug or expected behaviour as I do not see 
> anything in the documentation.
> 
> ControlPlayback can not replay complicated file names
> 
> For example it can replay
> 1005
> but it can not replay
> 1005-2014-04-08_23:58:17
> 
> Playback can replay
> 1005-2014-04-08_23:58:17
> 
> I suspect this relates to how the variables are parsed and parameters set.
> 
> 
> 
> Does anyone have any further information to suggest what the limitations are 
> around file naming?
> 
> 
> 
> Thanks
> 
> 
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com
> 
> 
> Alternatives:
> 
> 
> -- 
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ControlPlayback can not replay complicated file names

2014-04-10 Thread Jonathan White
Many thanks for the testing. I have raised a bug report and we will see if 
it gains any support.


The file name as you can imagine is generated from a set of variables, the 
idea is to make life simple but if the replay tool doesn't support it the 
reverse.


Interesting that Playback() supports complicated file names.

Regards

J

-Original Message- 
From: Steve Edwards

Sent: Thursday, April 10, 2014 10:09 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ControlPlayback can not replay complicated 
file names


On Thu, 10 Apr 2014, Jonathan White wrote:

If not sure if I am looking at a bug or expected behaviour as I do not see 
anything in the documentation.


ControlPlayback can not replay complicated file names

For example it can replay
1005
but it can not replay
1005-2014-04-08_23:58:17


On Thu, 10 Apr 2014, Eric Wieling wrote:

This doesn't fix the issue, but a work around might be to try using file 
names without the any :  in them


Seems 'bug-worthy' to me.

Here's some more confusion using Asterisk 11.8.1:

Play a file with colons in the file name:

-- Executing [*@default:3] ControlPlayback("IAX2/6002-1095", 
"/tmp/2014-04-10-13:31:03") in new stack
--  Playing '/tmp/2014-04-10-13:31:03.slin' (language 
'en')

-- ControlPlayback seek to offset 0 from end

1) There is no 'slin' file, only a 'wav.'

2) I didn't specify any offset. Note that 'core show application
controlplayback' does not mention anything about seek from end.

3) No audio is played.

Play a file with quoted colons:

-- Executing [*@default:3] ControlPlayback("IAX2/6002-106", 
"/tmp/2014-04-10-13\:31\:03") in new stack
--  Playing '/tmp/2014-04-10-13:31:03.slin' (language 
'en')

-- ControlPlayback seek to offset 0 from end

1) No slin file.

2) No offset.

3) No audio.

4) No quotes in 'Playing' message.

-- Executing [*@default:3] ControlPlayback("IAX2/6002-461", "/tmp/foo") 
in new stack

--  Playing '/tmp/foo.slin' (language 'en')

1) Still no slin file.

2) /tmp/foo.wav is played, audio is heard.

So...

1) You should report it as a bug.

2) Eric's right -- you should not use colons in file names. Even if
controlplayback() allowed them, they always seem to cause problems
somewhere.

--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users 



---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ControlPlayback can not replay complicated file names

2014-04-10 Thread Steve Edwards

On Thu, 10 Apr 2014, Jonathan White wrote:

If not sure if I am looking at a bug or expected behaviour as I do not 
see anything in the documentation.


ControlPlayback can not replay complicated file names

For example it can replay
1005
but it can not replay
1005-2014-04-08_23:58:17


On Thu, 10 Apr 2014, Eric Wieling wrote:

This doesn't fix the issue, but a work around might be to try using file 
names without the any :  in them


Seems 'bug-worthy' to me.

Here's some more confusion using Asterisk 11.8.1:

Play a file with colons in the file name:

-- Executing [*@default:3] ControlPlayback("IAX2/6002-1095", 
"/tmp/2014-04-10-13:31:03") in new stack
--  Playing '/tmp/2014-04-10-13:31:03.slin' (language 'en')
-- ControlPlayback seek to offset 0 from end

1) There is no 'slin' file, only a 'wav.'

2) I didn't specify any offset. Note that 'core show application 
controlplayback' does not mention anything about seek from end.


3) No audio is played.

Play a file with quoted colons:

-- Executing [*@default:3] ControlPlayback("IAX2/6002-106", 
"/tmp/2014-04-10-13\:31\:03") in new stack
--  Playing '/tmp/2014-04-10-13:31:03.slin' (language 'en')
-- ControlPlayback seek to offset 0 from end

1) No slin file.

2) No offset.

3) No audio.

4) No quotes in 'Playing' message.

-- Executing [*@default:3] ControlPlayback("IAX2/6002-461", "/tmp/foo") in 
new stack
--  Playing '/tmp/foo.slin' (language 'en')

1) Still no slin file.

2) /tmp/foo.wav is played, audio is heard.

So...

1) You should report it as a bug.

2) Eric's right -- you should not use colons in file names. Even if 
controlplayback() allowed them, they always seem to cause problems 
somewhere.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ControlPlayback can not replay complicated file names

2014-04-10 Thread Eric Wieling

This doesn't fix the issue, but a work around might be to try using file names 
without the any  :  in them

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jonathan White
Sent: Thursday, April 10, 2014 2:56 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] ControlPlayback can not replay complicated file names

If not sure if I am looking at a bug or expected behaviour as I do not see 
anything in the documentation.
 

ControlPlayback can not replay complicated file names

For example it can replay
1005
but it can not replay
1005-2014-04-08_23:58:17

Playback can replay
1005-2014-04-08_23:58:17

I suspect this relates to how the variables are parsed and parameters set.

 

Does anyone have any further information to suggest what the limitations are 
around file naming?

 

Thanks





 This email is free from viruses and malware 
because avast! Antivirus   protection is active. 



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] ControlPlayback can not replay complicated file names

2014-04-10 Thread Jonathan White
If not sure if I am looking at a bug or expected behaviour as I do not see 
anything in the documentation.

ControlPlayback can not replay complicated file names

For example it can replay
1005
but it can not replay
1005-2014-04-08_23:58:17

Playback can replay
1005-2014-04-08_23:58:17

I suspect this relates to how the variables are parsed and parameters set.



Does anyone have any further information to suggest what the limitations are 
around file naming?



Thanks


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PAGI

2014-04-10 Thread Johan Wilfer

2014-04-10 15:02, Gopalakrishnan N skrev:

Thanks Johan. Are you using this application for any credit card processing?




Nope, mostly ChannelRedirects and injecting sounds in conferences / 
controlling via webgui. But the libraries are very good and seemed very 
complete to me.



--
Johan Wilfer

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] PJSIP usereqphone setting in config file

2014-04-10 Thread Yaron Nachum
Thanks a lot Joshua. That's a great idea :-)
I will try it and get back to you.


On Thu, Apr 10, 2014 at 5:50 PM, Joshua Colp  wrote:

> Yaron Nachum wrote:
>
>> Hi everyone,
>>
>
> Kia ora,
>
>
>  I am starting to work with PJSIP on release 12.1.0.rc3.
>>
>> I used to have Asterisk 1.8 with the regular sip channel. I was using
>> the usereqphone settings in order to set user=phone on from and to URIs.
>>
>> Is there a similar config in PJSIP?
>>
>
> There is currently no option which explicitly does this. A core difference
> between chan_sip and chan_pjsip, though, is that we treat stuff as SIP URIs
> in the first place. To that end it may be possible to simply add
> ;user=phone to the SIP URI yourself and have it work. Since ';' is used for
> comments though you will need to escape it using \.
>
> An example for a static contact on an AOR:
>
> contact=sip:172.16.1.1:5060;user=phone
>
> Cheers,
>
> --
> Joshua Colp
> Digium, Inc. | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PJSIP usereqphone setting in config file

2014-04-10 Thread Joshua Colp

Yaron Nachum wrote:

Hi everyone,


Kia ora,


I am starting to work with PJSIP on release 12.1.0.rc3.

I used to have Asterisk 1.8 with the regular sip channel. I was using
the usereqphone settings in order to set user=phone on from and to URIs.

Is there a similar config in PJSIP?


There is currently no option which explicitly does this. A core 
difference between chan_sip and chan_pjsip, though, is that we treat 
stuff as SIP URIs in the first place. To that end it may be possible to 
simply add ;user=phone to the SIP URI yourself and have it work. Since 
';' is used for comments though you will need to escape it using \.


An example for a static contact on an AOR:

contact=sip:172.16.1.1:5060;user=phone

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] AMI and pyst

2014-04-10 Thread Ishfaq Malik
Does anyone on this list use pyst for AMI purposes?

If so, can you point me in the direction of some simple examples. There
seems to be none anywhere online. Probably doesn't help that I'm not that
experienced at python but not insurmountably so.

Thanks in Advance

Ish

-- 

Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: i...@pack-net.co.uk
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] PAGI

2014-04-10 Thread Gopalakrishnan N
Thanks Johan. Are you using this application for any credit card processing?


On Fri, Apr 4, 2014 at 5:29 PM, Johan Wilfer  wrote:

> 2014-04-03 18:58, Gopalakrishnan N skrev:
>
>  Hi,
>>
>> Anybody using PAGI scripts,
>> http://marcelog.github.io/articles/pagi_tutorial_create_
>> voip_telephony_application_for_asterisk_with_agi_and_php.html
>>
>> Would like to know the feasibility to build a IVR solutions.
>>
>> Regards
>>
>>
>>
> I use PAMI, and it works great. PAGI seems to be a sister-project for AGI.
>
> https://github.com/marcelog/PAMI
> https://github.com/marcelog/PAGI
>
>
> --
> Johan Wilfer
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>   http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Fw: VPN SIP Phone | PC Traffic

2014-04-10 Thread Eliud macharia
Read through


On Wednesday, April 9, 2014 4:10 PM, Steve Totaro 
 wrote:
 
I did this with SNOM phones and a special firmware a while ago.  The trick to 
get the VPN to extend to the PC port is bridge-utils.  Worked very well.
On Apr 9, 2014 7:40 AM, "Positively Optimistic" 
 wrote:

We are using vpn routers to connect home users back to our office network.   
Basically, shipping a mikrotik router that 'calls home' and establishes a vpn 
connection for the pc and phone that are connected to the mikrotik...   user 
plugs router in, plugs phone and computer into router, and that traffic is 
encapsulated back to our office... simple and straighforward.
>
>
>We would like to remove the router from the equation...  does anyone know of a 
>SIP phone with a built in VPN client that can provide the tunnel for both the 
>phone and the pc traffic?  It would seem trivial to route a subnet down to the 
>vpn client in the phone, that would be available to devices connected on the 
>PC side of the telephone..  This would be tremendous for an at-home contact 
>center agent..    An added benefit would be to limit connections the 
>connection on the PC side of the phone to a specific mac address.. 
>
>
>We're aware of the opportunity to use a softphone on the pc with a vpn client. 
>  though, we're looking for a physical phone.
>--
>_
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users