You can use the dialbox for that, type some letters, it will search in real time in the phonebook, down arrow to select the record and ENTER to dial. Try it, is faster and more convenient than click to dial in the phonebook itself.
Your right. 
You can use the dialbox for that, type some letters, it will search in real time in the phonebook, down arrow to select the record and ENTER to dial. Try it, is faster and more convenient than click to dial in the phonebook itself.
Your right. 
It could be nice if it was possible to click and dial from the FOP2 phone-book. 
After days of searching and testing, I found the solution. 
The problem of getting "Got SIP response 486 "Busy Here" back from 192.168.1.2" was caused by a setting in the Linksys adapter.
In Linksys Phone Adapter Configuration I opened
Tab: User1
Selective Call Forward Settings -> Block last Caller: 1000
I removed the value 1000 and ......... 
@admin: Thanks for your assistance.
buttons.cfg
[SIP/1000]
type=extension
extension=1000
context=default
label=Henk
mailbox=1000@default
extenvoicemail=*1000@default
[SIP/1001]
type=extension
extension=1001
context=default
label=Henk Nokia
mailbox=1001@default
extenvoicemail=*1001@default
sip.conf
[1000]
type=friend
username=linksys_fxs_henk
callerid="1000"
secret=XXXXXX
host=dynamic
nat=no
qualify=yes
mailbox=1000@default
pickupgroup=1
dtmfmode=inband
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=ilbc
allow=speex
[1001]
type=friend
username=henk_nokia
callerid="Henk Nokia phone"
secret=XXXXXXX
host=dynamic
nat=no
qualify=yes
mailbox=1001@default
disallow=all
allow=ulaw
allow=alaw
allow=ilbc
allow=gsm
allow=speex
Up to now I haven't been able to solve it. :roll:
my extensions looks like this:
[default]
exten => 1000,1,Dial(SIP/1000,40,rtT)
exten => 1000,n,Macro(voicemail,${EXTEN:4})
exten => 1001,1,Dial(SIP/1001,40,rtT)
exten => 1001,n,Macro(voicemail,${EXTEN:4})
When I log into FOP2 with extension 1001, I can call extension 1000. 
When I log into FOP2 with extension 1000, I can not call extension 1001,
because I get:
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Got SIP response 486 "Busy Here" back from 192.168.1.2 <----Linksys
> Channel SIP/1000-00000009 was never answered.
1000 is a DECT phone connected to a Linksys SPA3000
1001 is a Nokia GSM E66 (with SIP enabled)
(p.s. calling extension 1001 from extension 1000 is no problem when I'm NOT using FOP2)
It's working now. 
Did you edit the config.php file and created the database for the phonebook? Are the mysql credentials correct?
No I didn't. :oops:
I'm using latest FOP2 with Debian 5.0.4
When I click on 'phonebook' I get, for about a second, a pop-up window (just abouve the phonebook icons) with the text "An error has occured"
If I want to add an entry (by clicking on the add button) I get the same error.
Is there a way to debug? I get no indication what the error could be.
Thanks
Henk
Thanks very much for your answer.
This is ok now. 
I have an extension 1202 defined in [default], which is connected to a Digium TDM400P (DAHDI/1-1)
exten => 1202,1,NoOp(${CALLERID(all)})
exten => 1202,n,Dial(DAHDI/1,20,rtT)
exten => 1202,n,Macro(voicemail,${EXTEN})
exten => 1202,n,Hangup()
In buttons.conf I have configured it as:
[DAHDI/1]
type=extension
label=Tobie <1202>
channel=1
When I want to dial that extension (via FOP2) it can't find it.
Asterisk executes: "s@default"
> Channel SIP/1001-00000003 was answered.
== Starting SIP/1001-00000003 at default,trunk,1 failed so falling back to exten 's'
-- Executing [s@default:1] NoOp("SIP/1001-00000003", "Time=18.12") in new stack
-- Executing [s@default:2] NoOp("SIP/1001-00000003", "Callerid name=Henk Nokia") in new stack
-- Executing [s@default:3] NoOp("SIP/1001-00000003", "Callerid number=1001") in new stack
..........
..........
But I don't have an exten 's' in default.
I have an exten 's' in a context [i], which is included in context [default]
So this is what is executed:
[incoming]
exten => s,1,NoOp(Time=${STRFTIME(${EPOCH},,%H)}.${STRFTIME(${EPOCH},,%M)})
exten => s,n,NoOp(Callerid name=${CALLERID(name)})
exten => s,n,NoOp(Callerid number=${CALLERID(num)})
What am I doing wrong? Is it the definition in buttons.conf ? Or something else?
FOP does not do sip at all. Look for asterisk misconfigurations or bugs. Maybe the callerid as set by FOP2 has a callerid that your endpoint does not like? (it uses the extension and button label as callerid for originations).
Best regards,
Well, I'm debugging at the moment.
When I've found the answer, I'll post it here.
(b.t.w. When I logon as another extension (not 1000) then everything is ok.)
I've installed FOP 2.11 for Debian Lenny.
Installation was ok.
I'm logged in with extension 1000 from 192.168.1.2
Then I mark another extension (let's say 1001) and a red square appears around the icon.
Then I click the dial button, and following happens:
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Got SIP response 486 "Busy Here" back from 192.168.1.2
> Channel SIP/1000-00000001 was never answered.
asterisk*CLI>
This happens with every extension I'm trying to dial.
So the problem is: Got SIP response 486 "Busy Here" back from 192.168.1.2 (the extension I logged in with and which should ring first) :roll:
(p.s. When I call from extension 1001 (not using FOP2) to extension 1000, I don't get busy.
Asterisk CLI show):
-- Called 1000
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 1001
-- SIP/1000-00000034 is ringing
-- Got SIP response 486 "Busy Here" back from 192.168.1.3 <-------extenension 1001 !!
-- SIP/1001-00000035 is busy
-- SIP/1000-00000034 answered SIP/1001-00000033
== Spawn extension (default, 1000, 7) exited non-zero on 'SIP/1001-00000033'
asterisk*CLI>
Anyone who got FOP2 working on Ubuntu? :roll:
Not sure how or why, but there are some users running debian-etch version on ubuntu 8.04. Actually I know why, you need to install Raw::Compress:Zlib version 2.020... you can do that with:
#> perl -e shell -MCPAN
#> install PMQS/Compress-Raw-Zlib-2.020.tar.gz
That should take care of the problem..
Best regards,
Installed Raw::Compress:Zlib version 2.020...
root@medion:/usr/local/fop2# ./fop2_server --test
Attempt to reload Scalar/Util.pm aborted.
Compilation failed in require at /usr/local/lib/perl/5.10.0/Compress/Zlib.pm line 9.
BEGIN failed--compilation aborted at /usr/local/lib/perl/5.10.0/Compress/Zlib.pm line 9.
Compilation failed in require at -e line 359.
root@medion:/usr/local/fop2#
Ok, you will have to wait for ubuntu packages then... They will be available sometime next week.
When will Ubuntu packages be available?
(why isn't their a 'general' package, like in FOP ? )
Ok, you will have to wait for ubuntu packages then... They will be available sometime next week.
OK 
I'm testing Debian Lenny -i386 on Ubuntu 8.10
root@medion:/usr/local/fop2# /usr/local/fop2/fop2_server --test
Compress::Raw::Zlib object version 2.011 does not match bootstrap parameter 2.020 at /usr/local/lib/perl/5.10.0/Compress/Raw/Zlib.pm line 97.
Compilation failed in require at /usr/local/share/perl/5.10.0/Archive/Zip.pm line 12. :roll:
BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.0/Archive/Zip.pm line 12.
Compilation failed in require at -e line 359. :roll:
root@medion:/usr/local/fop2#
Can I use :
fop2-001-i386-glibc2.3.6-debian-etch.tgz
for compiling in Ubuntu8.10 server edition?
Rgds
Henk