Fax Server Forward Number

Status
Not open for further replies.

cargreg

New Member
Apr 26, 2018
27
2
3
36
Hi all,

I' m trying to configure a fax server with Forward Number, when i valorise the field with an external number it work well , but when i insert an extention number it doesn't work

2018-05-04 11:35:13.792043 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2018-05-04 11:35:13.792043 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/205@192.168.15.145:5079 [725dde1c-4f7e-11e8-bf45-f5c6bda91eca]
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] mod_sofia.c:4819 (sofia/internal/205@192.168.15.145:5079) State Change CS_NEW -> CS_INIT
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/205@192.168.15.145:5079) Running State Change CS_INIT (Cur 2 Tot 1394)
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/205@192.168.15.145:5079) State INIT
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] mod_sofia.c:90 sofia/internal/205@192.168.15.145:5079 SOFIA INIT
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] sofia_glue.c:1264 sip:205@195.60.190.156:5079;transport=tcp Setting proxy route to sofia/internal/205@192.168.15.145:5079
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] sofia_glue.c:1295 sofia/internal/205@192.168.15.145:5079 sending invite version: 1.6.20 64bit
725dde1c-4f7e-11e8-bf45-f5c6bda91eca Local SDP:
725dde1c-4f7e-11e8-bf45-f5c6bda91eca v=0
725dde1c-4f7e-11e8-bf45-f5c6bda91eca o=FreeSWITCH 1525404813 1525404814 IN IP4 89.21.204.50
725dde1c-4f7e-11e8-bf45-f5c6bda91eca s=FreeSWITCH
725dde1c-4f7e-11e8-bf45-f5c6bda91eca c=IN IP4 89.21.204.50
725dde1c-4f7e-11e8-bf45-f5c6bda91eca t=0 0
725dde1c-4f7e-11e8-bf45-f5c6bda91eca m=audio 21700 RTP/AVP 0 101 13
725dde1c-4f7e-11e8-bf45-f5c6bda91eca a=rtpmap:0 PCMU/8000
725dde1c-4f7e-11e8-bf45-f5c6bda91eca a=rtpmap:101 telephone-event/8000
725dde1c-4f7e-11e8-bf45-f5c6bda91eca a=fmtp:101 0-16
725dde1c-4f7e-11e8-bf45-f5c6bda91eca a=rtpmap:13 CN/8000
725dde1c-4f7e-11e8-bf45-f5c6bda91eca a=ptime:20
725dde1c-4f7e-11e8-bf45-f5c6bda91eca a=sendrecv
725dde1c-4f7e-11e8-bf45-f5c6bda91eca
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:40 sofia/internal/205@192.168.15.145:5079 Standard INIT
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/205@192.168.15.145:5079) State Change CS_INIT -> CS_ROUTING
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/205@192.168.15.145:5079) State INIT going to sleep
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/205@192.168.15.145:5079) Running State Change CS_ROUTING (Cur 2 Tot 1394)
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/205@192.168.15.145:5079) State ROUTING
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] mod_sofia.c:143 sofia/internal/205@192.168.15.145:5079 SOFIA ROUTING
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_ivr_originate.c:67 (sofia/internal/205@192.168.15.145:5079) State Change CS_ROUTING -> CS_CONSUME_MEDIA
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/205@192.168.15.145:5079) State ROUTING going to sleep
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/205@192.168.15.145:5079) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 1394)
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/205@192.168.15.145:5079) State CONSUME_MEDIA
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] switch_core_state_machine.c:662 (sofia/internal/205@192.168.15.145:5079) State CONSUME_MEDIA going to sleep
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.792043 [DEBUG] sofia.c:7084 Channel sofia/internal/205@192.168.15.145:5079 entering state [calling][0]
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] sofia.c:7084 Channel sofia/internal/205@192.168.15.145:5079 entering state [terminated][488]
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [NOTICE] sofia.c:8273 Hangup sofia/internal/205@192.168.15.145:5079 [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION]
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/205@192.168.15.145:5079) Running State Change CS_HANGUP (Cur 2 Tot 1394)
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/205@192.168.15.145:5079) Callstate Change DOWN -> HANGUP
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/205@192.168.15.145:5079) State HANGUP
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] mod_sofia.c:438 Channel sofia/internal/205@192.168.15.145:5079 hanging up, cause: INCOMPATIBLE_DESTINATION
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:60 sofia/internal/205@192.168.15.145:5079 Standard HANGUP, cause: INCOMPATIBLE_DESTINATION
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/205@192.168.15.145:5079) State HANGUP going to sleep
2018-05-04 11:35:13.932025 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7fd328074170 Connected.
2018-05-04 11:35:13.932025 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION]
2018-05-04 11:35:13.932025 [NOTICE] switch_ivr_originate.c:2851 Cannot create outgoing channel of type [user] cause: [INCOMPATIBLE_DESTINATION]
2018-05-04 11:35:13.932025 [DEBUG] switch_ivr_originate.c:3848 Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION]
2018-05-04 11:35:13.932025 [ERR] mod_lua.cpp:203 /usr/share/freeswitch/scripts/fax_retry.lua:307: attempt to concatenate global 'number_dialed' (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/fax_retry.lua:307: in main chunk
2018-05-04 11:35:13.932025 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7fd328074170 released.
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:783 Hangup Command with no Session lua(fax_retry.lua):
725dde1c-4f7e-11e8-bf45-f5c6bda91eca -ERR Cannot execute script
725dde1c-4f7e-11e8-bf45-f5c6bda91eca
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/205@192.168.15.145:5079) State Change CS_HANGUP -> CS_REPORTING
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/205@192.168.15.145:5079) Running State Change CS_REPORTING (Cur 2 Tot 1394)
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.932025 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/205@192.168.15.145:5079) State REPORTING
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:174 sofia/internal/205@192.168.15.145:5079 Standard REPORTING, cause: INCOMPATIBLE_DESTINATION
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/205@192.168.15.145:5079) State REPORTING going to sleep
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:610 (sofia/internal/205@192.168.15.145:5079) State Change CS_REPORTING -> CS_DESTROY
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_session.c:1665 Session 1394 (sofia/internal/205@192.168.15.145:5079) Locked, Waiting on external entities
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [NOTICE] switch_core_session.c:1683 Session 1394 (sofia/internal/205@192.168.15.145:5079) Ended
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [NOTICE] switch_core_session.c:1687 Close Channel sofia/internal/205@192.168.15.145:5079 [CS_DESTROY]
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:741 (sofia/internal/205@192.168.15.145:5079) Running State Change CS_DESTROY (Cur 1 Tot 1394)
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/205@192.168.15.145:5079) State DESTROY
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] mod_sofia.c:343 sofia/internal/205@192.168.15.145:5079 SOFIA DESTROY
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:181 sofia/internal/205@192.168.15.145:5079 Standard DESTROY
725dde1c-4f7e-11e8-bf45-f5c6bda91eca 2018-05-04 11:35:13.951991 [DEBUG] switch_core_state_machine.c:751 (sofia/internal/205@192.168.15.145:5079) State DESTROY going to sleep

as indicated by the log the script fax_retry.lua goes in error, the variable number_dialed is null, but i think that is not the cause is just a symptom due to the incompatible destination

the test scenario is as follows

i have ad inbound route with a trasfer action that trasfer the call to a fax server, the fax server forward to an extention registered on ata.
 
Jan 30, 2018
41
0
6
40
I am not the most familiar person with FusionPBX, but just a couple troubleshooting questions.

Have you tried dialing the ext directly and not through the fax forward, does that work OK?

Also, have you tried having it forward to a different existing ext (even if it is not tied to a fax line) just to see if it will work?
 

cargreg

New Member
Apr 26, 2018
27
2
3
36
thanks for your interesting, i tried to forward to an external number not an extention and it's work fine but i want try with an extention how reported on the fusionpbx gui <"Enter the forward number here. Used to forward the fax to a registered extension or external number.">
 
Jan 30, 2018
41
0
6
40
Yes, understood, Same troubleshooting questions apply. Have you tried to forward the number to another working ext, to see if it is an issue with just that ext? And are you able to call that ext that is not working directly from another internal ext?

Are all of your domains fax servers doing the same thing or just this one?
 
Status
Not open for further replies.