Hi,
I have a requirement to change the FROM number to a different number
depending on the destination number. For example if I dial 01789 from 0800
I want to change the 0800 from number to a 01789 number.
Ideally I want to be able to do a db lookup on the destination number to
then set the from number.
Thanks
Keith
Hello,
I am planning to enable acc cdr in my kamailio 4.1 server.
I am testing in my lab and it is working fine.
However, when I check the table definition I see this:
mysql> describe acc_cdrs;
+------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| start_time | varchar(32) | NO | MUL | | |
| end_time | varchar(32) | NO | | | |
| duration | varchar(32) | NO | | | |
+------------+------------------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
The *_time and duration columns are defined as varchar.
Because of this, i need to perform a cast when doing queries:
select * from acc_cdrs where cast(start_time as unsigned) >= 1437120622;
which would cause extra processing in the db server.
So I experimented changing these columns to "int unsigned" and to "float
unsigned" and it worked for both without problems (records properly added
to acc_cdrs and no errors in kamailio.log):
alter table acc_cdrs modify start_time int unsigned;
alter table acc_cdrs modify end_time int unsigned;
alter table acc_cdrs modify duration int unsigned;
alter table acc_cdrs modify start_time float unsigned;
alter table acc_cdrs modify end_time float unsigned;
alter table acc_cdrs modify duration float unsigned;
So I am thinking in doing this in my production server but I would like to
know if there is any potential risk of doing this (as I am not sure why it
was decided for these fields to be varchar instead of a numeric type).
Regards,
Takeshi
Hi,
What would be the best way to generate and send an INVITE message generated by the Kamailio server. This would be for a new dialog session, UAS initiated (e.g. to make a click 2 call like service).
I've tried the $uac_req(method)="INVITE"; uac_req_send(); but didn't work. I gather something would be needed first to open the dialogue before doing it but couldn't find it on the dialogue module.
Thanks,
Joao Alves
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
Hi,
I need to send an SIP UPDATE inside an existing dialogue (in order to update the SDP offer).
I've been using the following uac functions from the command file.
$uac_req(method)="UPDATE";
$uac_req(ruri)=$shv(userAcontact);
$uac_req(turi)=$tu;
$uac_req(furi)=$fu;
$uac_req(callid)=$ci;
$uac_req(hdrs)="Content-Type: application/sdp\r\n";
$uac_req(body)=$var(sdp);
# uac_restore_from();
uac_req_send();
As a result, the SIP UPDATE is being sent but since the original From Tag is not being used (i.e. and a new tag is generated), the SIP client (sipML5) does not recognize it as part of the existing dialogue. Attach is a pcap of the test made.
Subsequently, I've also tried to recover the from using uac_restore_from() function but got the following an error message.
DEBUG: uac [replace.c:511]: restore_uri(): getting 'vsf' Route param
DEBUG: uac [replace.c:515]: restore_uri(): route param 'vsf' not found
Thanks,
Joao Alves
Solution Architect, Unified Communications
+351 214094660 (desk)
+351 912783702 (mobile)
AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
>Hello all, I am new to Kamailio. I Tried installing Kamailio 4.0 and I had the following error. I will appreciate any help
>ERROR: could not load the script in /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'
What happens if dialog parties don't respond to keepalive requests
sent by dialog module? It looks it is not coded in modules/dialog, I
guess it can be set in t_uac_prepare() from modules/tm/uac.c.
Please explain what timeout or lifetime parameters rule - at which
delay the unanswered keepalive request sent by Kamailio within dialog
triggers dialog termination.
Thanks a lot.
--
Andrey Utkin
Hi All,
I have a situation where I have 2 devices registering with the same AOR,
I have the registrar module's max_contacts parameter set to 1 and I use
the 0x04 flag on the save function.
When I use dmq_usrloc for replication, I can see 2 contacts registered
for the AOR on the "client" nodes whereas the node where the actual
registration took place only has 1 contact for the AOR.
Is this expected behaviour of the dmq_usrloc module in terms of
registration or have a come accross another bug?
Thanks
Hi All,
I have a situation where a device has successfully registered and its
location saved/stored in memory.
I can see all the stored information when I issue a "kamctl ul show"
However, if I perform a kamctl ul show subscriber@domain, where the
'subscriber@domain' is copied/pasted from the output of the "kamctl ul
show" command, it results in an AOR not found error. However, with other
AOR's on the same registrar, the "kamctl ul show subscriber@domain" works.
I checked the usernames for the failed commands, and I dont see anything
obvious, they are a combination of lower/upper-case leters and digits.
String length is around 24 characters for the username (the username
table for the subscriber is 64 characters). I'm not sure what elese to
check to see why the AOR lookup for these particular clients are failing
when they are indeed registered. All other functions around the lookup
seem to work, for example, a location lookup for these AOR's are working.
I wonder if I have come accross an issue with the kamctl function and/or
the equivilient xmlrpc ul.lookup method.
Any thoughts on this would be greatly appreciated.
Thanks
I am registering my client to kamailo successfully.
client --> Register --> kamailioclient <-- 401 with nonce value <-- kamailioclient --> Register with nonce and md5 response values --> kamailioclient <-- 200ok <-- kamailio
However, when the client sends an invite with the same digest values, kamailio sends a 407 request for another challenge:
client --> Invite with the same nonce and md5 response values --> kamailioclient <-- 407 <-- kamailio
I am thinking the same digest values from register could be used for making calls.
Thanks,Al
Hi
Hi have read documentation but it seems dispatcher does not keep how many
calls has been dispatched or currently are in any of dispatcher destinations
I have take a look to code on:
http://lists.sip-router.org/pipermail/sr-users/2012-July/073919.html
But it seems to use calls limit per user,
I would need to establish a limit per dispatcher destination i order to do
not send more calls.
Any idea where to look for?
I have take a look to DMQ module, that maybe i could to use to spread
information of how many calls to every destination but do not know how to
extract calls from kamailio that have been dispatched to this destination
using disptcher module.
Best Regards
Alberto