Search results

  1. A

    Inbound calls being marked as outbound in Call Detail Records

    CDR by default shows only the Aleg of the call so you won't get 2 records in a call forward scenario. I agree that in the case of a call forward, it should be marked as an inbound call.
  2. A

    SOLVED Does not switch to the backup gateway if the main one fails.

    What's the reason the first gateway fails? It will only failover if the failure reason matches one of the failure reasons in the continue_on_fail variable. You can set continue_on_fail=true to always failover regardless of the failure reason.
  3. A

    Caller ID name change via command or API call

    So why do you need a lua script for this? Call the API from any external script, update the fusionpbx v_extensions table with the new caller id values, and flush the fusionpbx file cache.
  4. A

    Caller ID name change via command or API call

    Unless I don't understand what you're trying to do, this should be very simple. Caller IDs are set by setting origination_caller_id_name or effective_caller_id_name. you can do it from lua with session:setVariable().
  5. A

    Block Some Extension to Call other Extension

    There was a slight error in the regex of the snippet I gave you. If it doesn't work, can you show your dialplan and logs?
  6. A

    Caller ID name change via command or API call

    Can you explain what you're trying to accomplish?
  7. A

    Block Some Extension to Call other Extension

    You can do it with a simple dialplan like this. <extension name="extension_call_permissions" continue="true"> <!--block if caller is 2006 and calls 2000,1,2--> <condition field="${sip_from_user}" expression="2006"/> <condition field="destination_number" expression="^200[0-2]$">...
  8. A

    Need to the location of the Fusionpbx configuration directory

    You can find the generated xml files in /var/cache/fusionpbx
  9. A

    Need to the location of the Fusionpbx configuration directory

    Fusion saves those data in the postgres database and builds the freeswitch XML config files dynamically.
  10. A

    Parse SIP invite packet

    Ironically freeswitch doesn't provide any way to parse sip headers. The header gets set as a channel variable sip_h_P-Charge-Info you can parse it with lua. hdr = session:getVariable("sip_h_P-Charge-Info") trk = hdr:match("Trk=(.+)") I edited this message what I initially wrote doesn't apply...
  11. A

    International Calling

    Something like this should work for you. ^\+?1?([2-9]\d{2}[2-9]\d{2}\d{4}|(?<![\+?1])(?:011\d{9,17}|911|311|411))$
  12. A

    Fusion stopped user authentication

    The backtrace is only useful when the dump is taken when the system is frozen and locked.
  13. A

    SOLVED how to configure for call center to announce queue position of the caller ?

    There are a lot of scripts and guides circling here on the forum about this, just give it a search.
  14. A

    Fusion stopped user authentication

    You'll have to get a core dump when this happens. You can follow the guide in the link below on how to get one, and then upload the gdb output here. If you're using wss, there's currently ongoing development in freeswitch on fixing issues with sofia freezing when using wss...
  15. A

    Hello From Brazil

    Hello and welcome!
  16. A

    Ring Group CID Number prefix

    In any case, with the external numbers, what are the chances the receiving carrier will trust the caller ID name?
  17. A

    Ring Group CID Number prefix

    External calls are using loopback, which might be the reason. The ring group lua script exports effective_caller_id_name with the prefix to the bleg, but in the case of loopback it might not get exported to the real b channel. The logs should show you whether it was set on the bleg.
  18. A

    IVR SEND SMS IF CALLER HANGUP/DISCONNECT CALL

    It is possible, but you have to add the functionality in the lua hangup hook script to handle it.
  19. A

    Play IVR option selected, before connecting the call

    You can do that with group_confirm_file and group_confirm_key. You'll have to create a dialplan or dialplan tool that makes use of it.
  20. A

    IVR - Your call is being transferred

    Fusion plays that file only for extensions matched by the direct dial. It won't play it for any match in the ivr options even if it's an extension. You can manually set two ivr option 1s and have the 1st one play the file and the 2nd do the transfer. Another cool way to accomplish this is by...