Jump to content

Recommended Posts

Posted

Hello,

Im playing on kazoo since 2 days with no much luck. I went over documents, but there is big amount of knowladge with very few samples, which makes it difficult to understand.  

My issues:

1. I added my DID trunk IP to ACL and  pointed number to user device, but when i call the number, the call is not passing to the endpoint.

[root@pbx freeswitch]# sup ecallmgr_maintenance carrier_acls
+--------------------------------+--------------------+---------------+-------+------------------+----------------------------------+
| Name                           | CIDR               | List          | Type  | Authorizing Type | ID                               |
+================================+====================+===============+=======+==================+==================================+
| 212.224.123.140                | 212.224.123.140/32 | trusted       | allow | resource         | 14303af3b909d1a6c2854e330b8e61f6 |

 

00:10:07.261 [notice] |8UkRCyjK2f@212.224.123.140|reg_authn_req:42(<0.1350.17>) auth failure for nobody@pbx.vrs.pl: not_found
00:10:09.278 [warning] |8UkRCyjK2f@212.224.123.140|kz_util:185(<0.1359.17>) raw account id doesn't process '<<"unknown">>'
00:10:09.278 [warning] |8UkRCyjK2f@212.224.123.140|kz_util:185(<0.1359.17>) raw account id doesn't process '<<"unknown">>'
00:10:09.278 [warning] |8UkRCyjK2f@212.224.123.140|kzs_util:98(<0.1359.17>) unknown type for database account%2Fun%2Fkn%2Fown
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:97(<0.1359.17>) stacktrace: 
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: kzs_util:unknown_db_classification/1 at (99)
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: kzs_plan:get_dataplan/1 at (90)
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: kzs_plan:plan/2 at (67)
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: kz_datamgr:open_doc/3 at (682)
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: kzs_cache:fetch_doc/4 at (91)
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: kzd_accounts:fetch_value/2 at (760)
00:10:09.278 [error] |8UkRCyjK2f@212.224.123.140|kz_util:104(<0.1359.17>) st: hangups_channel_destroy:find_realm/2 at (96)
00:10:09.278 [error] |0000000000|Undefined:Undefined(emulator) Error in process <0.1361.17> on node 'kazoo_apps@pbx.vrs.pl' with exit value:
{function_clause,[{knm_converters,normalize,[undefined],[{file,"src/converters/knm_converters.erl"},{line,101}]},{kz_hooks_util,lookup_account_id,1,[{file,"src/kz_hooks_util.erl"},{line,254}]},{webhooks_channel_util,handle_event,2,[{file,"src/webhooks_channel_util.erl"},{line,20}]}]}
00:10:09.281 [error] |8UkRCyjK2f@212.224.123.140|kzd_accounts:763(<0.1359.17>) error opening account doc <<"unknown">>
020-05-23 23:35:07.861948 [WARNING] sofia_reg.c:1793 SIP auth challenge (INVITE) on sofia profile 'sipinterface_1' for [147#41415453625@pbx.vrs.pl] from ip 212.224.123.143
2020-05-23 23:35:09.881956 [WARNING] sofia_reg.c:2929 Can't find user [@212.224.123.140] from 212.224.123.143
You must define a domain called '212.224.123.140' in your directory and add a user with the id="" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2020-05-23 23:35:09.881956 [WARNING] sofia_reg.c:1738 SIP auth failure (INVITE) on sofia profile 'sipinterface_1' for [147#41415453625@pbx.vrs.pl] from ip 212.224.123.143

 

Did i miss something to configure ?

 

Second question:  adding resource (gateway trunk) without user_id in API path, makes that  the resource becomes global, but i did not find the same method  for call flow. Does it mean, that  offnet call flow has to be added to every created user ?  Is there a way to make single offnet rule, that will be applied to all sip users ?

Posted

Did you added the number in E.164 format in NUmbers app?  Did you create device in SmartPBX and assigned to a user? The sup command for ecallmgr should have -n ecallmgr... i.e. "sup -n ecallmgr ecallmgr_maintenance ..... "  Can you dial *97 from the device when it is regisered?  Is your carrier sending INVITE in E.164 format?

Posted

The problem was that UI forced number with + prefix, while on trunk i set E164. This works when invite comes like +E164, but new issues rised.

This is single server installation with FQDN.

1. Registering softphone, I have to use IP address, if I use domain name, registration is rejected.

2. If i call another extension, fs returns:

2020-05-25 20:09:02.121944 [WARNING] sofia_reg.c:2929 Can't find user [adam@212.224.123.143] from 212.224.123.143
You must define a domain called '212.224.123.143' in your directory and add a user with the id="adam" attribute
and you must configure your device to use the proper domain in its authentication credentials.
2020-05-25 20:09:02.121944 [WARNING] sofia_reg.c:1738 SIP auth failure (INVITE) on sofia profile 'sipinterface_1' for [12@212.224.123.143] from ip 212.224.123.143
So I understand, that besides of login and password, there is also realm needed, but i dont see anything like realm on Monster UI, while creating users. 

Posted

Click on your account name on top right corner of UI. And click on Account menu on the left. You will see AccountRealm. This is unique for each account. You should not use IP address as Realm.  IP address is used as Outbound Proxy on your UA.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...