How to configure the call back functions using freepbx? I read the newbee guide and download the ruby 1.8, but still got some problems. any one can provide me a step-by-step guide ? thanks very much
I just did a clean install of TB 1.2.3
I updated Freepbx I setup a outbound trunk (Vitelity)
then I did this
yum -y install ruby
cd /var/lib/asterisk/bin/
wget http://www.aussievoip.com.au/storage/users/279/279/images/177/callback.rb
cp /var/lib/asterisk/bin/callback /var/lib/asterisk/bin/callback.original
rm -vf /var/lib/asterisk/bin/callback
cp /var/lib/asterisk/bin/callback.rb /var/lib/asterisk/bin/callback
chmod +x /var/lib/asterisk/bin/callback
nano /etc/amportal.conf
add to end of file
CALLBACK_PREFIX=
CALLBACK_CLI=Callback
CALLBACK_RETRY=1
CALLBACK_INTERVAL=10
CALLBACK_WAIT=30
went into freepbx setup callback for my cell phone
created IVR and pointed option 1 to callback
dailed 7777 hit 1 got my callback…
works as it should
OH yea you out in only the number no need for #
the number must be able to be dailed from a exten just as u input it
( I leave off the 1+areacode) for mine to work.
I am sure your right, just not sure what I have done wrong.
I had installed ruby etc as per instructions but that did not help. I assumed that upgrading from beta to rc1 would overwrite callback function and that new version “that works” was included in rc1. As instructions for ruby etc were created by Rob. Am I subject to the implications of assuming? In other words, do I have to follow Rob’s instructions etc?
I think clarity may be reduced by ability to test from outside number but too out # and still does not work. Log as follows:
asterisk1CLI>
asterisk1CLI>
asterisk1CLI>
– Accepting AUTHENTICATED call from 216.235.15.51:
> requested format = ulaw,
> requested prefs = (ulaw),
> actual format = ulaw,
> host prefs = (alaw|gsm|ulaw),
> priority = mine
– Executing Set(“IAX2/gwpco_iax2_200-1”, “FROM_DID=4165487543”) in new stack
– Executing Gosub(“IAX2/gwpco_iax2_200-1”, “app-blacklist-check|s|1”) in new stack
– Executing LookupBlacklist(“IAX2/gwpco_iax2_200-1”, “”) in new stack
– Executing GotoIf(“IAX2/gwpco_iax2_200-1”, “0?blacklisted”) in new stack
– Executing Return(“IAX2/gwpco_iax2_200-1”, “”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-1”, “FAX_RX=disabled”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-1”, "[email protected]") in new stack
– Executing Goto(“IAX2/gwpco_iax2_200-1”, “callback|3|1”) in new stack
– Goto (callback,3,1)
– Executing Set(“IAX2/gwpco_iax2_200-1”, “CALL=4169347979”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-1”, “DESTINATION=ext-local.210.1”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-1”, “SLEEP=5”) in new stack
– Executing System(“IAX2/gwpco_iax2_200-1”, “/var/lib/asterisk/bin/callback 4169347979 ext-local.210.1 5 &”) in new stack
– Executing Hangup(“IAX2/gwpco_iax2_200-1”, “”) in new stack
== Spawn extension (callback, 3, 5) exited non-zero on ‘IAX2/gwpco_iax2_200-1’
– Hungup 'IAX2/gwpco_iax2_200-1’
asterisk1CLI>
Thanks
Regards
Peter
Well as the callback works I maen it just works no if ands or buts …
The problem is in your setup
Did u install ruby??
Yum -y install rudy
Did u edit the amportal.conf
and add these lines???
CALLBACK_PREFIX=
CALLBACK_CLI=Callback
CALLBACK_RETRY=1
CALLBACK_INTERVAL=10
CALLBACK_WAIT=30
well the guide is it, what is the problem
are you watching the log, I set it up on the TB 1.2 without a issue
does it not dail out or what??
Bubba,
I am having a real problem getting callback to work. I have tried various setting and none seem to work.
I have put in a call back number with and without a # suffix.
I have set the call back number, as above, or left it blank.
No difference. When I select the callback in the ivr. The IVR goes quiet. It used to hang up but it did not the last few.
I have the most recent version of FreePBX 2.2.0 rc1 and trixbox version 1.2.3.
The above also did not work with previous version of both.
The following is the log from verbose on my box:
asterisk1CLI>
asterisk1CLI>
– Accepting AUTHENTICATED call from 216.235.15.51:
> requested format = ulaw,
> requested prefs = (ulaw),
> actual format = ulaw,
> host prefs = (alaw|gsm|ulaw),
> priority = mine
– Executing Set(“IAX2/gwpco_iax2_200-10”, “FROM_DID=4165487542”) in new stack
– Executing Gosub(“IAX2/gwpco_iax2_200-10”, “app-blacklist-check|s|1”) in new stack
– Executing LookupBlacklist(“IAX2/gwpco_iax2_200-10”, “”) in new stack
– Executing GotoIf(“IAX2/gwpco_iax2_200-10”, “0?blacklisted”) in new stack
– Executing Return(“IAX2/gwpco_iax2_200-10”, “”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “FAX_RX=disabled”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, "[email protected]") in new stack
– Executing Goto(“IAX2/gwpco_iax2_200-10”, “ivr-27|s|1”) in new stack
– Goto (ivr-27,s,1)
– Executing Set(“IAX2/gwpco_iax2_200-10”, “LOOPCOUNT=0”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “__DIR-CONTEXT=default”) in new stack
– Executing Answer(“IAX2/gwpco_iax2_200-10”, “”) in new stack
– Executing Wait(“IAX2/gwpco_iax2_200-10”, “1”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3
– Executing Set(“IAX2/gwpco_iax2_200-10”, “TIMEOUT(response)=10”) in new stack
– Response timeout set to 10
– Executing BackGround(“IAX2/gwpco_iax2_200-10”, “custom/Barron-shared-line”) in new stack
– Playing ‘custom/Barron-shared-line’ (language ‘en’)
== CDR updated on IAX2/gwpco_iax2_200-10
– Executing Goto(“IAX2/gwpco_iax2_200-10”, “callback|1|1”) in new stack
– Goto (callback,1,1)
– Executing Set(“IAX2/gwpco_iax2_200-10”, “CALL=14506466409#”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “DESTINATION=ext-local.210.1”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “SLEEP=0”) in new stack
– Executing System(“IAX2/gwpco_iax2_200-10”, “/var/lib/asterisk/bin/callback 14506466409# ext-local.210.1 0 &”) in new stack
– Executing Hangup(“IAX2/gwpco_iax2_200-10”, “”) in new stack
== Spawn extension (callback, 1, 5) exited non-zero on ‘IAX2/gwpco_iax2_200-10’
– Hungup ‘IAX2/gwpco_iax2_200-10’
asterisk1CLI>
asterisk1CLI> asterisk1CLI>
No such command 'asterisk1CLI>’ (type ‘help’ for help)
asterisk1CLI> asterisk1CLI>
asterisk1CLI> asterisk1CLI>
asterisk1CLI>
asterisk1CLI> – Accepting AUTHENTICATED call from 216.235.15.51:
asterisk1CLI> > requested format = ulaw,
asterisk1CLI> > actual format = ulaw,
> requested prefs = (ulaw),
asterisk1CLI> > actual format = ulaw,
asterisk1CLI> – Executing Gosub(“IAX2/gwpco_iax2_200-10”, “app-blacklist-check|s|1”) in new stack
> host prefs = (alaw|gsm|ulaw),
asterisk1CLI> > priority = mine
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “FAX_RX=disabled”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “FROM_DID=4165487542”) in new stack
asterisk1CLI> – Executing Gosub(“IAX2/gwpco_iax2_200-10”, “app-blacklist-check|s|1”) in new stack
asterisk1CLI> – Executing LookupBlacklist(“IAX2/gwpco_iax2_200-10”, “”) in new stack
asterisk1CLI> – Executing GotoIf(“IAX2/gwpco_iax2_200-10”, “0blacklisted”) in new stack
asterisk1CLI> – Executing Return(“IAX2/gwpco_iax2_200-10”, “”) in new stack
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “FAX_RX=disabled”) in new stack
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, "[email protected]") in new stack
asterisk1CLI> – Executing Goto(“IAX2/gwpco_iax2_200-10”, “ivr-27|s|1”) in new stack
asterisk1CLI> – Goto (ivr-27,s,1)
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “CALL=14506466409#”) in new stack
– Executing Set(“IAX2/gwpco_iax2_200-10”, “LOOPCOUNT=0”) in new stack
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “__DIR-CONTEXT=default”) in new stack
asterisk1CLI> – Executing Answer(“IAX2/gwpco_iax2_200-10”, “”) in new stack
asterisk1CLI> – Executing Wait(“IAX2/gwpco_iax2_200-10”, “1”) in new stack
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “TIMEOUT(digit)=3”) in new stack
asterisk1CLI> – Digit timeout set to 3
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “TIMEOUT(response)=10”) in new stack
asterisk1CLI> – Response timeout set to 10
asterisk1CLI> – Executing BackGround(“IAX2/gwpco_iax2_200-10”, “custom/Barron-shared-line”) in new stack
asterisk1CLI> – Playing ‘custom/Barron-shared-line’ (language ‘en’)
asterisk1CLI> – Hungup ‘IAX2/gwpco_iax2_200-10’
== CDR updated on IAX2/gwpco_iax2_200-10
asterisk1CLI> – Executing Goto(“IAX2/gwpco_iax2_200-10”, “callback|1|1”) in new stack
asterisk1CLI> – Goto (callback,1,1)
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “CALL=14506466409#”) in new stack
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “DESTINATION=ext-local.210.1”) in new stack
asterisk1CLI> – Executing Set(“IAX2/gwpco_iax2_200-10”, “SLEEP=0”) in new stack
asterisk1CLI> – Executing System(“IAX2/gwpco_iax2_200-10”, “/var/lib/asterisk/bin/callback 14506466409# ext-local.210.1 0 &”) in new stack
asterisk1CLI> – Executing Hangup(“IAX2/gwpco_iax2_200-10”, “”) in new stack
asterisk1CLI> == Spawn extension (callback, 1, 5) exited non-zero on 'IAX2/gwpco_iax2_200-10’
asterisk1CLI> – Hungup 'IAX2/gwpco_iax2_200-10’
asterisk1CLI> asterisk1CLI>
No such command ‘–’ (type ‘help’ for help)
No such command ‘–’ (type ‘help’ for help)
No such command ‘–’ (type ‘help’ for help)
Does this help? Can you figure out what is happening? Can you suggest what I should do to get it to work?
Thanks.
Regards
Peter