Incoming fax issue

Post your configuration issues while installing ictfax

Re: Incoming fax issue

Postby falak » Fri Apr 26, 2013 11:17 am

Can't really tell from this log what actually went wrong.
This log, however, shows that Freeswitch is unable to find public context (dialplan) which means Freeswitch don't know how to process this incoming number.
If you have installed Freeswitch provided by Plivo.org, then you should find the following dialplan block in Freeswitch directory conf/dialplan/public.xml

Code: Select all
<extension name="plivo_public_did">
        <condition field="destination_number" expression="^(\d+)$">
            <action application="enable_heartbeat" data="60"/>
            <action application="socket" data="127.0.0.1:8084 async full"/>
        </condition>
</extension>



This block actually processes any incoming DID number and forwards that number to the required application through Plivo.

I hope this might help.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Incoming fax issue

Postby falak » Fri Apr 26, 2013 11:21 am

In normal circumstances, ICTFAX is configured such that it can receive fax from any number. However, there are configurations for the receiver party.
The receiver fax number must be assigned to some valid user on ICTFAX. If there is not user against that DID, ICTFAX will reject this fax.
Similarly, If you want to enable fax to email functionality then that user should have set forwarding from his DID number to his email address in ICTFAX in order to receiver incoming fax to his email address.

davemac2626 wrote:I thought that ICTFAX was designed to catch any number coming in:

No other configurations required. ICTFax is already configured to catch any incoming call and if that is a fax it will start receiving it after verifying the user on the basis of incoming number.


a quoted on your page viewtopic.php?f=6&t=2382

I cant see how the call is now not routing correctly if ICTFAX should just pick it up?!

Cheers

Dave
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Incoming fax issue

Postby falak » Fri Apr 26, 2013 11:22 am

I think there is something wrong with your Freeswitch installation. Because if the "plivo_public_did" block was not present, that means Freeswitch was not properly configured to talk to Plivo. Please remove existing installation of Freeswitch and Plivo and try installing again as instructed in the ICTFax installation guide.


davemac26261 wrote:Ok have edited the /usr/local/freeswitch/conf/dialplan/public.xml to look like this:
Code: Select all
<include>
  <context name="public">
<extension name="plivo_public_did">
        <condition field="destination_number" expression="^(\d+)$">
            <action application="enable_heartbeat" data="60"/>
            <action application="socket" data="127.0.0.1:8084 async full"/>
        </condition>
</extension>
</context>
</include>


which seems to have helped with the context public not found error however still getting errors when a fax comes in:
Code: Select all
    freeswitch@F2E> 2012-12-03 15:41:05.708803 [NOTICE] switch_channel.c:946 New Channel sofia/external/+442030000000@192.168.0.1 [f958ad76-3c27-4d37-9f1e-e2c4f7560625]
    2012-12-03 15:41:05.728793 [INFO] mod_dialplan_xml.c:485 Processing Joe Blogs<+442030000000>->+442035000000 in context public
    2012-12-03 15:41:05.728793 [INFO] switch_core_state_machine.c:192 No Route, Aborting
    2012-12-03 15:41:05.728793 [NOTICE] switch_core_state_machine.c:193 Hangup sofia/external/+442030000000@192.168.0.1 [CS_ROUTING] [NO_ROUTE_DESTINATION]
    2012-12-03 15:41:05.728793 [NOTICE] switch_core_session.c:1433 Session 4 (sofia/external/+442030000000@192.168.0.1 ) Ended
    2012-12-03 15:41:05.728793 [NOTICE] switch_core_session.c:1437 Close Channel sofia/external/+442030000000@192.168.0.1 [CS_DESTROY]



So still a tad stuck....
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Incoming fax issue

Postby falak » Fri Apr 26, 2013 12:00 pm

Nothing. Nothing needs to be added in the Freeswitch dialplan to receive call if you are working with Plivo. Everything is configured in Plivo configuration.

The last thing that you can check to receive call through Plivo are the following URL in Plivo configuration file placed in /usr/local/plivo/etc/plivo/default.conf.

DEFAULT_ANSWER_URL = http://127.0.0.1/ictfax/index.php?q=ictfax/receive_fax
DEFAULT_HANGUP_URL = http://127.0.0.1/ictfax/index.php?q=ict ... ax_billing

Modify above urls according to your installation settings (but do not change after '?q=ictfa...... ').

Also don't forget to remove “#” sign before DEFAULT_HANGUP_URL and EXTRA_FS_VARS.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Incoming fax issue

Postby falak » Fri Apr 26, 2013 12:01 pm

Your following log looks fine. It means Freeswitch is working fine now. Next you should check Plivo configurations that will forward call to ICTAX. Follow my reply at viewtopic.php?f=6&t=2428&sid=63a84cb9c5f9d1771dc40cbcfeadc54b#p2640

davemac26261 wrote:ok I have re-installed and configured by the letter!

I have sent a test fax and again can see the call coming in in the FS_CLI debug:

freeswitch@F2E2> 2012-12-06 11:32:56.046565 [NOTICE] switch_channel.c:968 New Channel sofia/external/anonymous@192.168.0.1:5060 [54b05dca-cd00-44b1-b77b-e19d25fe9555]
2012-12-06 11:32:56.065541 [INFO] mod_dialplan_xml.c:498 Processing Anonymous <anonymous>->+442030000000 in context public
2012-12-06 11:32:56.085571 [NOTICE] switch_core_state_machine.c:262 sofia/external/anonymous@192.168.0.1:5060 has executed the last dialplan instruction, hanging up.
2012-12-06 11:32:56.085571 [NOTICE] switch_core_state_machine.c:264 Hangup sofia/external/anonymous@192.168.0.1:5060 [CS_EXECUTE] [NORMAL_CLEARING]
2012-12-06 11:32:56.085571 [NOTICE] switch_core_session.c:1506 Session 1 (sofia/external/anonymous@192.168.0.1:5060) Ended
2012-12-06 11:32:56.085571 [NOTICE] switch_core_session.c:1510 Close Channel sofia/external/anonymous@192.168.0.1:5060 [CS_DESTROY]
2012-12-06 11:32:56.085571 [NOTICE] switch_channel.c:968 New Channel sofia/external/anonymous@192.168.0.1:5060 [9b050316-386e-40b3-9d4b-bd28e1f7adf6]


what is it that I am missing?!?! I have followed the instructions completely with a new install, added my acls and gateway - now what could be the problem???!!!

Cheers
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

cron