Hi guys,
i've implemented a parallel forking using aliasdb module. Everything is
working good if the first client (first row in dbaliases table) in online.
When I try to make a call to a specific number three clients rings together.
If the first client isn't online no call is forwarded to other clients :( I
know that with alias_db_lookup() the first record from DB is the new R-URI
and the others are added like branches. But if the R-URI in unreachable how
can try to call the other branches?
This is location script..
if(alias_db_lookup("dbaliases")){
$sht(a=>$ci) = $sel(contact.uri);
}
$avp(oexten) = $rU;
if (!lookup("location")) {
$var(rc) = $rc;
t_newtran();
switch ($var(rc)) {
case -1:
xlog("L_INFO","No contact found\n");
exit;
case -3:
send_reply("404", "Erorr");
exit;
case -2:
send_reply("405", "Method Not Allowed");
exit;
}
}
Any suggest?
My script still log "No contanct found" until timeout :(
Many thanks
-----
Marino Mileti
--
View this message in context: http://sip-router.1086192.n5.nabble.com/AliasDB-module-Forking-tp132128.html
Sent from the Users mailing list archive at Nabble.com.
HI,
Please, excuse me for my bad English
Just a question, kamailio does support DTMF Tones? i have a big while
searching for documentation about that but without good results. I want to
make a server side call transfer method whit DTMF Tones...
Thanks so much for your good work
Greetings from Venezuela
running kamailio from
deb http://deb.kamailio.org/kamailio jessie main
when i add the dnssec module to /etc/kamailio/kamailio.cfg kamailiop
fails to start and gives:
[FAIL] Not starting Kamailio SIP Server: invalid configuration file! ...
failed!
failed!
[....] 0(8839) ERROR: <core> [sr_module.c:597]: load_module(): could not
open module </usr/lib/x86_64-linux-gnu/kamailio/modules/dnssec.so>:
/usr/lib/x86_64-linux-gnu/libval-threads.so.14: undefined symbol:
SSL_get_SSL_CTX 0(8839) : <core> [cfg.y:3436]: yyerror_at(): parse error
in config file /etc/kamailio/kam[FAIL.cfg, line 239, column 12-22:
failed to load module ERROR: bad config file (1 errors) ... failed!
failed!
$ sudo ls -la /usr/lib/x86_64-linux-gnu/kamailio/modules/dnssec.so
-rw-r--r-- 1 root root 22912 Oct 17 09:04
/usr/lib/x86_64-linux-gnu/kamailio/modules/dnssec.so
any help appreciated
thanks
Good morning.
We've got a problem with location memory and database replication
between "n" kamailios as REGISTRAR servers.
1.- WHAT WE WANNA DO:
- To have "n" Kamailios with their DB and memory "user location"
replicated.
- Each Kamailio owns its own DB.(It could be also with a common DB).
- Each kamailio has a PUA_REGINFO, PRESENCE, and REGISTRAR roles.
- USRLOC Module with db_mode = 2 (Write-Back scheme).
2.- WHAT WE DON'T WANNA DO:
- USRLOC Module with db_mode != 2 (Write-Back scheme).
3.- BACKGROUND:
- RFC3265
- RFC3680
- RFC3903
- I attach a small architecture graph.
4.- PROBLEMS:
4.1 Deadlock:
Each REGISTER involves a NOTIFY to the other side.
Each NOTIFY involves another NOTIFY to the other side.
There should be a mechanism to avoid PUBLISH reginfo_handle_notify()
function calls but to PUBLISH save() calls on pua_reginfo module.
Any idea would be appreciated (also to workaround our problem).
4.2 PUA_REGINFO module notify.c
Just FYI.
We think It doesn't comply to RFC3680. It should observe "unkown-param"
object to aid "Contact" header params such as "Path", "Received",
"User_agent" and so on.
We've changed code but for a fast startup we've also avoided
"unkown-param" and now we're able to see replicated "Path", "Received
... params on each DB.
Thanks and best regards.
Eduardo Lejarreta.
hi
By default, kamailio.cfg is used for one proxy. How to set up kamailio to support multi-proxy, so that serveral kamaiio servers work together, and each one is responsible for sip clients in some specific area?
B.R.
Andrew
Hello. I need to increment CSeq value for INVITE with Auth params when use
UAC_AUTH for outgoing calls to provider.
Kamailio 4.2 may increment this using dialog module
http://by-miconda.blogspot.de/2014/10/kamailio-42-tips-7-increment-cseq-for…
Now I experements with this and var $dlg_var(cseq_diff) and at transaction
way int have NULL value. I can not understand why
My config is:
# ----- dialog params
modparam("dialog", "db_url",DBURL)
modparam("dialog", "db_mode", 1)
modparam("dialog","table_name","dialog")
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "initial_cbs_inscript", 1)
modparam("dialog", "profiles_with_value", "caller")
modparam("dialog", "default_timeout", 60)
modparam("dialog", "track_cseq_updates", 1)
route config is
at request route
if(is_method("INVITE") && !has_totag()){
$dlg_ctx(timeout_route) = "DIALOG_END";
$dlg_ctx(timeout_bye) = 1;
dlg_manage();
xlog("L_INFO","Dialog manage is {$ct}\n");
} } t_relay();
next I handle failure reply because 407 reply is recieved
failure_route[MANAGE_FAILURE]
{ route(NATMANAGE); if (t_check_status("401|407")){ xlog("L_INFO", "Reply
from provider on failure: $tU"); xlog("L_ERR","401/407 - Unauthorized. ($ci
.) ($rm) from ($fu) (IP:$si:$sp) to ($Ri:$Rp). Must be authorized with
digest Auth."); avp_print(); xlog("L_INFO", "CSeq diff:
$dlg_var(cseq_diff)"); uac_auth(); xlog("L_INFO", "UAC_AUTH(): $tU");
append_branch(); t_relay(); } if (t_is_canceled()) { exit; } } As you may
see i logging $dlg_var(cseq_diff) value and now it NULL. So I can not
understand why? What wrong I do? Thanks for advice.
Hi,
I have a hard time using the htable iterator...
I have this simple setup:
modparam("htable", "htable", "h1=>size=4")
...
sht_iterator_start("i1", "h1");
while (sht_iterator_next("i1")) {
xlog("L_ERR", " SS: $shtitkey(i1) and $shtitval(i1)\n");
}
sht_iterator_end("i1");
...
Now to put some simple data, I use:
# sudo kamcmd htable.sets h1 test 123
# sudo kamcmd htable.dump h1
{
entry: 8
size: 1
slot: {
item: {
name: test
value: 123
}
}
}
When the route is "executed", I get this in my log file:
Nov 3 15:16:47 beast /sbin/kamailio[24865]: ERROR: SS: <null> and <null>
The $shtitkey(i1) and $shtitval(i1) is always null. Is it a bug? Or did I
manage to do something wrong?
--
Best regards,
Glenn O. Larsen
--
Best regards,
*Glenn O. Larsen*
*CTO*
*SimCom AS*
Professor Birkelands vei 24c
N-1081 Oslo
Direct: +47 21 09 34 12
Mobile: +47 997 00 000
Online profile: http://simcom.no/glenn.larsen
*We simplify your communication ...*
Hi, I have kamilio-4.2 and rtpengine running on the same machine.I have this scenario:
softphone --> Kamailio with Rtpengine --> AsteriskThe softphone initiates the call, it is sent to the Asterisk. I can see the SDPs being re-written with the new IP/Ports provided by rtpengine:
Invite from Kamailio to Asterisk200 Ok from Kamailio to Softphone
However, I take a signaling/media capture on the server where the kamailio/rtpengine are running and see the RTP coming from both endpoints (softphone and asterisk) to the correct ports but there is no packets coming out from the proxy to either direction.
I see these 2 lines on the rtpengine log and make me think that something prevents the rtpengine to stream out to the 2 endpoints:
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] Write error on RTP socket
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] Final packet stats:
this is the log from the rtpengine:
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: Got valid command from 127.0.0.1:46686: offer - { "sdp": "v=0#015#012o=- 314474204173996793 6663595733338147866 IN IP4 99.153.161.148#015#012s=-#015#012c=IN IP4 99.153.161.148#015#012t=0 0#015#012m=audio 16386 RTP/AVP 114 0 8 101#015#012a=rtpmap:114 ilbc/8000#015#012a=fmtp:114 mode=30#015#012a=rtpmap:0 pcmu/8000#015#012a=rtpmap:8 pcma/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-15#015#012", "direction": [ "pub", "pub" ], "replace": [ "origin", "session-connection" ], "call-id": "0866b358-dc9c-1232-1399-3767db69b8dd", "received-from": [ "IP4", " ...
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: ... 99.153.161.148" ], "from-tag": "73rH43p60NeKm", "command": "offer" }
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] Creating new call
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] Opened ports 35022..35023 for media relay
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] Opened ports 35038..35039 for media relay
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] Returning to SIP proxy: d3:sdp529:v=0#015#012o=- 314474204173996793 6663595733338147866 IN IP4 54.173.60.13#015#012s=-#015#012c=IN IP4 54.173.60.13#015#012t=0 0#015#012a=ice-lite#015#012m=audio 35022 RTP/AVP 114 0 8 101#015#012a=rtpmap:114 ilbc/8000#015#012a=fmtp:114 mode=30#015#012a=rtpmap:0 pcmu/8000#015#012a=rtpmap:8 pcma/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-15#015#012a=sendrecv#015#012a=rtcp:35023#015#012a=ice-ufrag:oPm3I7OE#015#012a=ice-pwd:WjZnh7dnhfdkfoXDoqDbnCLLr7N7#015#012a=candidate:NZ1IXXQHYxOora9j 1 UDP 2130706431 54.173.60.13 35022 typ host#015#012a=candidate: ...
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] ... NZ1IXXQHYxOora9j 2 UDP 2130706430 54.173.60.13 35023 typ host#015#0126:result2:oke
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: Got valid command from 127.0.0.1:46686: answer - { "sdp": "v=0#015#012o=root 439969655 439969655 IN IP4 205.10.248.62#015#012s=Asterisk PBX 1.8.10.0#015#012c=IN IP4 205.10.248.62#015#012t=0 0#015#012m=audio 11142 RTP/AVP 0 101#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012a=silenceSupp:off - - - -#015#012a=ptime:20#015#012a=sendrecv#015#012", "direction": [ "pub", "pub" ], "replace": [ "origin", "session-connection" ], "call-id": "0866b358-dc9c-1232-1399-3767db69b8dd", "received-from": [ "IP4", "205.10.248.62" ], "fr ...
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: ... om-tag": "73rH43p60NeKm", "to-tag": "as57e7b8e3", "command": "answer" }
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] Returning to SIP proxy: d3:sdp500:v=0#015#012o=root 439969655 439969655 IN IP4 54.173.60.13#015#012s=Asterisk PBX 1.8.10.0#015#012c=IN IP4 54.173.60.13#015#012t=0 0#015#012a=ice-lite#015#012m=audio 35038 RTP/AVP 0 101#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012a=silenceSupp:off - - - -#015#012a=ptime:20#015#012a=sendrecv#015#012a=rtcp:35039#015#012a=ice-ufrag:cBL9SIw9#015#012a=ice-pwd:QHw7VHp83nMsLpD8ZoSqtDxGchN4#015#012a=candidate:NZ1IXXQHYxOora9j 1 UDP 2130706431 54.173.60.13 35038 typ host#015#012a=candidate:NZ1IXXQHYxOora9j 2 UDP 213070 ...
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd] ... 6430 54.173.60.13 35039 typ host#015#0126:result2:oke
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] Write error on RTP socket
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] Final packet stats:
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] --- Tag 'as57e7b8e3', created 0:00 ago, in dialogue with '73rH43p60NeKm'
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] ------ Media #1, port 35022 <> 205.10.248.62:11142, 0 p, 0 b, 0 e
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] ------ Media #1, port 35023 <> 205.10.248.62:11143 (RTCP), 0 p, 0 b, 0 e
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] --- Tag '73rH43p60NeKm', created 0:00 ago, in dialogue with 'as57e7b8e3'
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] ------ Media #1, port 35038 <> 99.153.161.148:16386, 0 p, 0 b, 1 e
Nov 1 18:59:26 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] ------ Media #1, port 35039 <> 99.153.161.148:16387 (RTCP), 0 p, 0 b, 0 e
Nov 1 18:59:36 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] Got valid command from 127.0.0.1:46686: delete - { "call-id": "0866b358-dc9c-1232-1399-3767db69b8dd", "received-from": [ "IP4", "205.10.248.62" ], "from-tag": "as57e7b8e3", "command": "delete" }
Nov 1 18:59:36 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] [0866b358-dc9c-1232-1399-3767db69b8dd] Call-ID to delete not found
Nov 1 18:59:36 ip-10-0-2-68 rtpengine[27764]: [0866b358-dc9c-1232-1399-3767db69b8dd port 35038] Returning to SIP proxy: d7:warning38:Call-ID not found or tags didn't match6:result2:oke
this is the log from kamailio (showing only the lines that include the word rtpengine):
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: INFO: <script>: mylog: TO_FS: Starting rtpengine session. Invite
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: exec: *** cfgtrace:request_route=[TO_FS] c=[/usr/local/kamailio-install-dir//etc/kamailio//kamailio.cfg] l=441 a=25 n=rtpengine_offer
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: DEBUG: rtpengine [rtpengine_funcs.c:148]: check_content_type(): type <application/sdp> found valid
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: DEBUG: rtpengine [rtpengine.c:1448]: rtpp_function_call(): proxy reply: d3:sdp529:v=0#015#012o=- 314474204173996793 6663595733338147866 IN IP4 54.173.60.13#015#012s=-#015#012c=IN IP4 54.173.60.13#015#012t=0 0#015#012a=ice-lite#015#012m=audio 35022 RTP/AVP 114 0 8 101#015#012a=rtpmap:114 ilbc/8000#015#012a=fmtp:114 mode=30#015#012a=rtpmap:0 pcmu/8000#015#012a=rtpmap:8 pcma/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-15#015#012a=sendrecv#015#012a=rtcp:35023#015#012a=ice-ufrag:oPm3I7OE#015#012a=ice-pwd:WjZnh7dnhfdkfoXDoqDbnCLLr7N7#015#012a=candidate:NZ1IXXQHYxOora9j 1 UDP 2130706431 54.173.60.13 35022 typ host#015#012a=candidate:NZ1IXXQHYxOora9j 2 UDP 2130706430 54.173.60.13 35023 typ host#015#0126:result2:oke
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: INFO: <script>: mylog: Starting rtpengine session. Answer
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: exec: *** cfgtrace:onreply_route=[TO_FS] c=[/usr/local/kamailio-install-dir//etc/kamailio//kamailio.cfg] l=476 a=25 n=rtpengine_answer
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: DEBUG: rtpengine [rtpengine_funcs.c:148]: check_content_type(): type <application/sdp> found valid
Nov 1 18:59:26 ip-10-0-2-68 ./kamailio[28001]: DEBUG: rtpengine [rtpengine.c:1448]: rtpp_function_call(): proxy reply: d3:sdp500:v=0#015#012o=root 439969655 439969655 IN IP4 54.173.60.13#015#012s=Asterisk PBX 1.8.10.0#015#012c=IN IP4 54.173.60.13#015#012t=0 0#015#012a=ice-lite#015#012m=audio 35038 RTP/AVP 0 101#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16#015#012a=silenceSupp:off - - - -#015#012a=ptime:20#015#012a=sendrecv#015#012a=rtcp:35039#015#012a=ice-ufrag:cBL9SIw9#015#012a=ice-pwd:QHw7VHp83nMsLpD8ZoSqtDxGchN4#015#012a=candidate:NZ1IXXQHYxOora9j 1 UDP 2130706431 54.173.60.13 35038 typ host#015#012a=candidate:NZ1IXXQHYxOora9j 2 UDP 2130706430 54.173.60.13 35039 typ host#015#0126:result2:oke
Nov 1 18:59:36 ip-10-0-2-68 ./kamailio[28001]: exec: *** cfgtrace:request_route=[LOOSE_ROUTE] c=[/usr/local/kamailio-install-dir//etc/kamailio//kamailio.cfg] l=488 a=24 n=rtpengine_delete
Nov 1 18:59:36 ip-10-0-2-68 ./kamailio[28001]: DEBUG: rtpengine [rtpengine.c:1448]: rtpp_function_call(): proxy reply: d7:warning38:Call-ID not found or tags didn't match6:result2:oke