Home Forum Developers IP0x svn 200 - list of current issues & questions

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


luckman212
useravatar
User Info

svn 200 - list of current issues & questions

Hello,
first of all thank you guys all again for this great work.  The builds have been getting better and better and for the first time I am really happy using my IP02 unit, thanks to Switchfin. cool  I have recently flashed up to svn 200 and I have been working on a list of questions to post so here we go:

Questions:
1) is there any way to tell from gui or CLI which switchfin build I am running?

2) is there any way to use remote smb/cifs/nfs share for call recordings so as not to quickly overload the limited RAM in the pbx?

3) Is there any way from an *analog* extension that is attached to one of my FXS ports to enable call recording "on the fly"?  or if not, can I do this from the CLI or from a SIP phone that is registered to the same extension somehow?

4) I guess similar to above question:  How do I park a call (place on hold with music) from an analog station?  is it possible?



Bugs(?) :

5) There is a seemingly useless checkbox next to 'insecure type' on trunk setup, screenshot:
http://i.imgur.com/nZHuU.png

6) When I try to upload a voice menu prompt, the GUI pops up this nonsense dialog:
http://i.imgur.com/VSOev.png
and then fails to upload anything

7) since several builds ago (maybe since oslec??) now callerid CID data name/# does not appear any more on my FXS ports.  I checked the CDR logs and the CID info is definitely coming in OK to asterisk, and also to SIP phones but not to the FXS ports.  any idea?

8) for voice menus, does switchfin support asterisk native .sln format?  because I created one according to the instructions at voip-info.org, and when I uploaded it and try to play it back, I receive this from asterisk CLI:

   

Code:

-- Executing [6000@default:1] Dial("Local/6000@default-4746,2", "SIP/6000&IAX2/6000&DAHDI/1") in new stack

[May 29 16:51:08] WARNING[2690]: app_dial.c:1296 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[May 29 16:51:08] WARNING[2690]: app_dial.c:1296 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
   -- Called 1
   -- DAHDI/1-1 is ringing
   -- DAHDI/1-1 is ringing
   -- DAHDI/1-1 answered Local/6000@default-4746,2
      > Channel Local/6000@default-4746,1 was answered.
   -- Executing [play_file@asterisk_guitools:1] Answer("Local/6000@default-4746,1", "") in new stack
   -- Executing [play_file@asterisk_guitools:2] Playback("Local/6000@default-4746,1", "/persistent/sounds/record/test1.sln") in new stack
[May 29 16:51:10] WARNING[2691]: file.c:664 ast_openstream_full: File /persistent/sounds/record/test1.sln does not exist in any format
[May 29 16:51:10] WARNING[2691]: file.c:991 ast_streamfile: Unable to open /persistent/sounds/record/test1.sln (format 0x40 (slin)): No such file or directory
[May 29 16:51:10] WARNING[2691]: app_playback.c:440 playback_exec: ast_streamfile failed on Local/6000@default-4746,1 for /persistent/sounds/record/test1.sln
   -- Executing [play_file@asterisk_guitools:3] Hangup("Local/6000@default-4746,1", "") in new stack
== Spawn extension (asterisk_guitools, play_file, 3) exited non-zero on 'Local/6000@default-4746,1'
   -- Hungup 'DAHDI/1-1'
== Spawn extension (default, 6000, 1) exited non-zero on 'Local/6000@default-4746,2'

(same behavior was shown with WAV files.  So I can only record prompts via Asterisk GUI but this is not ideal, I want to record using my desktop high-quality microphone, edit and clean up in Audacity or similar audio editing program, and then upload them to the pbx.  Is it possible?)


Administrator has disabled public posting
admin
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke,

First of all thank you very much for your test efforts! You are helping so much cleaning Switchfin!

Let me answer the questions I know: 
>1) is there any way to tell from gui or CLI which switchfin build I am running?
In the 'System Info' you get the Firmware/GUI version and the date it was built
'Firmware version: UI2.17 -- Sat Jun 5 20:03:14 EEST 2010'
from the linux shell you can do cat/etc/versions

> 4) I guess similar to above question:  How do I park a call (place on hold with music) from an analog station?  is it possible?
Well most of the call features including call parking needs extra parameters in the Dial command. We use Dial without any parameters.
If you do need call parking you need in your dialplan something like (t to enable dtmf detection during the conversation and enable transferring)
exten => 6000,1,dial(dahdi/1,,t)

>7) since several builds ago (maybe since oslec??) now callerid CID data name/# does not appear any more on my FXS ports.  I checked the CDR logs and the CID info is definitely coming in OK to asterisk, and also to SIP phones but not to the FXS ports.  any idea?
Hmmm. Well I just tried without Oslec and still no CID. Are you sure that CID was working with FXS few versions ago? wink

>8) for voice menus, does switchfin support asterisk native .sln format?  because I created one according to the instructions at voip-info.org, and when I uploaded it and try to play it back, I receive this from asterisk CLI:
The sln format is included in the Asterisk used by the current version of Switchfin. 'core show file formats' shows the supported formats.
Do you have /persistent/sounds/record/test1.sln ?

Best Regards
Dimitar


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke
I can answer the other questions for you.
1) is there any way to tell from gui or CLI which switchfin build I am running?
In the 'System Info' you get the Firmware/GUI version and the date it was built 'Firmware version: UI2.17 -- Sat Jun 5 20:03:14 EEST 2010' from the linux shell you can do cat/etc/versions

* I will also add this to the System Status section of GUI 4.0

2) is there any way to use remote smb/cifs/nfs share for call recordings so as not to quickly overload the limited RAM in the pbx?

Currently there is no way to use network shares however you can change the recording format to GSM (default is WAV) by going into system setup>options>recording settings, the GSM codec should save you a lot of space.

3) Is there any way from an *analog* extension that is attached to one of my FXS ports to enable call recording "on the fly"?  or if not, can I do this from the CLI or from a SIP phone that is registered to the same extension somehow?

At the moment no (I will look into it though), if you wish you can set up two outbound calling rules with the same name one with recording and one with out see below. If i call out using 779 as a prefix my calls are recorded (the 779 is striped in the calling rule).
http://ii-tec.com/calling_rule.PNG

5) There is a seemingly useless checkbox next to 'insecure type' on trunk setup, screenshot:

Next build I will fix this!

6) When I try to upload a voice menu prompt, the GUI pops up this nonsense dialog:

The message box was for testing, but currently there is no way of uploading using HTTP Post from Asterisk 1.4 (a fix is on Dimitar’s to-do list but a lot of dependencies have to be resolved)


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Quick Note - To enable recording "on the fly", edit features.conf and add
automon = *1

In extensions.conf context [macro-trunkdial-failover-0.3]
change exten = 1-dial,1,Dial(${ARG1}) to exten = 1-dial,1,Dial(${ARG1},,wW)

now during a call you should be able to dial *1 to start recording, you may have some issues viewing the recording in the recording manager due to the differences in filenames.

I will look into adding this as a feature in the GUI 4.0 this weekend.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Also to fix call parking you can add kK the dial cmd in
extensions.conf [macro-trunkdial-failover-0.3]


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

Well most of the call features including call parking needs extra parameters in the Dial command. We use Dial without any parameters.
If you do need call parking you need in your dialplan something like (t to enable dtmf detection during the conversation and enable transferring)
exten => 6000,1,dial(dahdi/1,,t)
hi Dimitar thanks for this info, can you provide any more detail on how this can work?  what else would i need to add to my extensions conf to enable hold/park?  or do you recommend some books for asterisk (I dont want to bother you guys too much for details of asterisk command line)-  is this something that could be done via GUI or do I have to edit the files by hand?  I sometimes worry that if I make too many changes to the conf files by hand, then it makes the GUI "confused" and causes issues.

since several builds ago (maybe since oslec??) now callerid CID data name/# does not appear any more on my FXS ports.  I checked the CDR logs and the CID info is definitely coming in OK to asterisk, and also to SIP phones but not to the FXS ports.  any idea?
Hmmm. Well I just tried without Oslec and still no CID. Are you sure that CID was working with FXS few versions ago?
you know what you are right! yikes CID disappeared some many weeks ago.  I checked my phone (it keeps CID data on the phone itself) and the last time it received any CID was 3/30/2010.  So I guess it was BEFORE i installed switchfin!!  So i guess CID has never worked with switchfin.  But yes it did work with the previous voiptel firmware.  I don't know why this would be, do you think it is something that can be fixed?  because I love switchfin too much to go back to voiptel but CID is very important.. hehe hmm

for voice menus, does switchfin support asterisk native .sln format?  because I created one .....  'core show file formats' shows the supported formats.
here is my output, so I guess 'yes' I do have sln support.  I don't know why it doesn't play my file, maybe I encode it incorrectly.....

Code:

IP04*CLI> core show file formats

Format     Name       Extensions         
ilbc       iLBC       ilbc               
gsm        wav49      WAV|wav49           
g729       g729       g729               
g722       g722       g722               
ulaw       au         au                 
alaw       alaw       alaw|al             
ulaw       pcm        pcm|ulaw|ul|mu     
slin       sln        sln|raw             
gsm        gsm        gsm                 
slin       wav        wav                 
10 file formats registered.

Do you have /persistent/sounds/record/test1.sln ?
no I do not have that file... what do you guys use to create .sln format files?  ffmpeg?  or should I just use a different format? I thought sln was good because it is asterisk native so it can be high quality no matter which codec is in use (g729, u-law, gsm etc) am I incorrect in this?

to fix call parking you can add kK the dial cmd in
extensions.conf [macro-trunkdial-failover-0.3]
hi jason can you give me any more info on this change?  i am sorry but I don't know exactly where do put this, or how I would activate it........ like I said above to Dimitar if there are any books you guys can recommend for asterisk I would love to know, because I should probably be able to do these things myself


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke

you can find a list of the parameters for the dial command below
http://www.asterisk.org/docs/asterisk/t … tions/dial

As for the changes to extensions.conf look for the following

Code:


[macro-trunkdial-failover-0.3]
exten = s,1,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} > 2]?${CID_${CALLERID(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1})
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()

And replace with

Code:


[macro-trunkdial-failover-0.3]
exten = s,1,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} > 2]?${CID_${CALLERID(num)}}:)})
exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1)
exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})})
exten = s,n,Goto(1-dial,1)
exten = 1-dial,1,Dial(${ARG1},,kK)
exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1)
exten = 1-CHANUNAVAIL,1,Dial(${ARG2})
exten = 1-CHANUNAVAIL,n,Hangup()
exten = 1-CONGESTION,1,Dial(${ARG2})
exten = 1-CONGESTION,n,Hangup()
exten = 1-out,1,Hangup()

The small "k" allows the called party to park the call and the capital "K" allows the caller to park the call.  Also make sure you set the Call Parking setting in System Settings>Call Features (try *1 this is the code to park a call)

I will fully include this in the next few builds


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

Thank you, I will keep an eye on the trunk and maybe compile a new build over the weekend if there are changes.  I may wait for Dimitar's comments on getting CID working with the FXS ports first.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Call Parking/Blind Transfer and Disconnect, call features should now all work, The GUI 4.0 will update your configs so no need to reset!

Also don’t forget to enable the Dial Options you want in the Call Features of the GUI 4.0.

I will work on One Touch/On The Fly recording (this requires automixmon which is not present in asterisk 1.4)


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

this is great!  thank you again, I will compile build 207 later tonight and report back.

Do you think there is anything I can do to enable caller ID function again on my FXS port or is this something related to the switch from Zaptel to DAHDI?  (i think that was the major difference between atcom firmware and switchfin........ no?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke

Most likely it’s something to-do with the migration to dadhi,

I have a similar setup on my ip04 (4fxs ports connected to a NEC phone system), so I can do some tests.

Am i right in assuming that your caller id issue is an inbound issue not on the outbound caller id?

Thanks
Jason


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

Yes that is true, there is no problem with the outbound caller-id.

I tested two different ways, first with an incoming call rule that send all calls directly to my analog extension (6000) and then also tested via a Voice Menu and then user pressing a key to transfer to my extension.  Neither of them pass any CID to the analog station.


Administrator has disabled public posting
admin
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Guys,

I will try to investigate why we don't get the CID in the next few days.

Best Regards
Dimitar


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

One Touch Recording (on the fly recording) is now possible in the GUI 4.0

The settings can be found in System Setup>Call Features
Add in your desired feature code, then make sure you have either x or/and X enabled in the Dial Options.


Administrator has disabled public posting
admin
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Guys,

The caller ID issue is fixed in the trunk.

Cheers
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

hi Dimitar,
wow this is a great news.
I have compiled svn revision 216 and upgraded my IP02.
I am still not receiving caller-ID to my analog extension-  do I need to reset my config files in order to get this fix?


Administrator has disabled public posting
admin
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke,

Well it should not depend of the configurations.

To be sure that you are recompiling the new stuff can you;
1. 'svn up' in your switchfin folder
2. delete switchfin/build_ip04/dahdixxx/ directory , then execute
make dahdi
make image

and update your box with the new image.

Cheers
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

hi Dimitar, well before I built svn 216 I completely deleted my source folder and re-downloaded everything from scratch, so that was clean.  Maybe I will cold-boot my IP02, do you think that may help?


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

Well just wanted to update that I did pull the power & then cold-boot my IP02, I still for some reason cannot get Caller ID to show on my analog extension.  Anything else that It could be?


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke

Our newest member of the team Mike suggested that in some countries ring tones effect the callerid being passed over FXS so we have added the Send CallerID After in the hardware config of the GUI try setting this to 2 and see if it helps.

Thanks
Jason


Administrator has disabled public posting
admin
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Luke,

You told me that no issues with callerid with the latest Switchfin.
Please confirm so we close this topic.

Best Regards
Dimitar


Administrator has disabled public posting
luckman212
useravatar
User Info

Re: svn 200 - list of current issues & questions

Hi Dimitar,
yes in latest svn's the Caller ID is working fine for me, thanks again for your help on this!


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 191
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked