Re: [SR-Users] BUG: qm_free: freeing already freed pointer

2016-02-15 Thread Daniel-Constantin Mierla
Hello,

what is the exact version you are running (kamailio -v)?

This issue should handled nicer by the latest branch 4.3.

Cheers,
Daniel

On 16/02/16 02:31, Rene Montilva wrote:
> Hi list
>
> i've got this bug report in kamailio 4.3 at syslog, then it frozen, i
> checked my config file looking for htable parameter, and i notice i
> have  htable param without autexpire
>
> is this reason why kamailio crash?
>
> "/usr/sbin/kamailio[24113]: :  [mem/q_malloc.c:453]: qm_free():
> BUG: qm_free: freeing already freed pointer (0x7f673dead5d8), called from
>  tm: h_table.c: free_cell(133), first free tm: h_table.c:
> free_cell(133) - aborting "
>
>
> -- 
> Ing. Rene Montilva
> *FOSS Developer and VoIP Engineer.*
>
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] db_cluster.so module and kamctlrc DBHOST= field

2016-02-15 Thread Hosted Services
Hi there,

New user to Kamailio here. We currently have it up and running in a virtualized 
environment with 1 Kamailio sever, 1 Asterisk server and 1 MySQL server.

I'm currently writing install scripts to make deploying new nodes/servers easy 
and to keep settings the same across the board.  I've chosed to load the 
db_cluster.so module in kamailio.cfg, as we will have 2x MySQL servers in 
master-master replication which will contain the 'kamailio' and 'asterisk' 
tables.

I've just hit a stumbling block - in `kamctlrc`, there is a field called 
`DBHOST=`.  How can I reference my cluster here?

In kamailio.cfg, I simply define DBURL as "cluster//".  What is 
the syntax for 'DBHOST=' in 'kamctlrc'?  Can I reference the cluster? Can I 
have 2 separate DBHOST= lines?

Looking for some guidance on this one.

Thanks,
Derek B.
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] BUG: qm_free: freeing already freed pointer

2016-02-15 Thread Rene Montilva
Hi list

i've got this bug report in kamailio 4.3 at syslog, then it frozen, i
checked my config file looking for htable parameter, and i notice i have
htable param without autexpire

is this reason why kamailio crash?

"/usr/sbin/kamailio[24113]: :  [mem/q_malloc.c:453]: qm_free(): BUG:
qm_free: freeing already freed pointer (0x7f673dead5d8), called from
 tm: h_table.c: free_cell(133), first free tm: h_table.c: free_cell(133) -
aborting "


-- 
Ing. Rene Montilva
*FOSS Developer and VoIP Engineer.*
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] db_cluster.so module and kamctlrc DBHOST= field

2016-02-15 Thread Derek Bolichowski
Hi there,

New user to Kamailio here. We currently have it up and running in a virtualized 
environment with 1 Kamailio sever, 1 Asterisk server and 1 MySQL server.

I'm currently writing install scripts to make deploying new nodes/servers easy 
and to keep settings the same across the board.  I've chosed to load the 
db_cluster.so module in kamailio.cfg, as we will have 2x MySQL servers in 
master-master replication which will contain the 'kamailio' and 'asterisk' 
tables.

I've just hit a stumbling block - in `kamctlrc`, there is a field called 
`DBHOST=`.  How can I reference my cluster here?

In kamailio.cfg, I simply define DBURL as "cluster//".  What is 
the syntax for 'DBHOST=' in 'kamctlrc'?  Can I reference the cluster? Can I 
have 2 separate DBHOST= lines?

Looking for some guidance on this one.

Thanks,
Derek B.

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Handling of messages with manipulated Event header.

2016-02-15 Thread Christopher Vella
Hi,

I apologise if this is not the correct venue for such a question... 

I am running kamailio v4.3.4 (x86_64/linux) on debian Jessie, sourced from; 
 deb http://deb.kamailio.org/kamailio jessie main

In my routing logic I am handling SUBSCRIBE requests and striping extra Event 
package parameters appended to "ua-profile" event types. i.e.; 

  Event: ua-profile;model=somemodel;vendor=somevendor;profile-type=user 
  
  becomes; 

  Event: ua-profile

This is done with this code; 

  } else if( is_method("SUBSCRIBE")) {
subst('/ua-profile.*/ua-profile/') ;
handle_subscribe();
t_release();

However, in such conditions "search_event()" doesn't correctly find the event. 
Even though it looks like it is searching for the right event type;

  start event= [ua-profile/7]
  handle_subscribe(): unsupported presence event ua-profile

--- Begin debug 

]3(7664) DEBUG:  [re.c:457]: subst_run(): matched (332, 79): [Event: 
ua-profile;model=somemodel;vendor=somevendor;profile-type=user] with [Event: 
ua-profile]extops.c:680]: subst_f(): textops: replacing at offset 376[Event: 
ua-profile;model=somemodel;vendor=somevendor;profile-type=user]
13(7664) debug: textops [textops.c:696]: subst_f(): lst was 0x7fb391fd0da8
13(7664) error: *** cfgtrace:request_route=[presence] 
c=[/etc/kamailio/kamailio.cfg] l=365 a=24 n=handle_subscribe
13(7664) debug: presence [event_list.c:348]: search_event(): start event= 
[ua-profile/7]
13(7664) notice: presence [subscribe.c:1092]: handle_subscribe(): unsupported 
presence event ua-profile
13(7664) debug: tm [t_lookup.c:1011]: t_check_msg(): debug: t_check_msg: msg 
id=1 global id=1 t start=0x7fb388763290
13(7664) debug: tm [t_lookup.c:1083]: t_check_msg(): debug: t_check_msg: t 
already found!
13(7664) debug:  [mem/shm_mem.c:101]: _shm_resize(): warning:vqm_resize: 
resize(0) called
13(7664) debug: tm [t_reply.c:1591]: cleanup_uac_timers(): debug: 
cleanup_uac_timers: retr/fr timers reset
13(7664) debug:  [tcp_main.c:2196]: tcpconn_send_put(): send from reader 
(7664 (13)), reusing fd
13(7664) debug:  [tcp_main.c:2430]: tcpconn_do_send(): sending...
13(7664) debug:  [tcp_main.c:2464]: tcpconn_do_send(): after real write: 
c= 0x7fb38875ecf8 n=368 fd=9
13(7664) debug:  [tcp_main.c:2465]: tcpconn_do_send(): buf=
sip/2.0 489 bad event
via: sip/2.0/tcp 
127.0.1.1:5060;branch=z9hg4bk-2999-1-0;rport=34679;received=192.168.88.88
cseq: 1 subscribe
call-id: 1-2999@127.0.1.1
from: ;tag=1
to: ;tag=a6a1c5f60faecf035a1ae5b6e96e979a-811a

--- End debug ---

As a test, I send another message with clean "Event: ua-profile" and this works
, event= [ua-profile/7] is found.

--- Begin debug ---

]4(7665) DEBUG:  [re.c:457]: subst_run(): matched (332, 18): [Event: 
ua-profile
] with [Event: ua-profile]extops.c:680]: subst_f(): textops: replacing at 
offset 376 [Event: ua-profile
14(7665) DEBUG: textops [textops.c:696]: subst_f(): lst was 0x7fb391fd0da8
14(7665) ERROR: *** cfgtrace:request_route=[PRESENCE] 
c=[/etc/kamailio/kamailio.cfg] l=365 a=24 n=handle_subscribe
14(7665) DEBUG: presence [event_list.c:348]: search_event(): start event= 
[ua-profile/7]
14(7665) DEBUG: presence [subscribe.c:1161]: extract_sdialog_info_ex(): 
'Expires' header found, value= 3600
14(7665) DEBUG: presence [subscribe.c:1195]: extract_sdialog_info_ex(): 'To' 
header ALREADY PARSED: 
14(7665) DEBUG: presence [subscribe.c:1266]: extract_sdialog_info_ex(): 
generating to_tag
14(7665) DEBUG: sl [sl.c:329]: get_reply_totag(): totag stateful mode (tm)
14(7665) DEBUG: presence [subscribe.c:1326]: extract_sdialog_info_ex(): 
subs->contact= sip:c.vella@192.168.88.179:59206;transport=tcp - len = 46
14(7665) DEBUG: presence [subscribe.c:1043]: handle_subscribe(): subscription 
status= active - inserted
14(7665) DEBUG: presence [subscribe.c:554]: update_subscription(): update 
subscription
14(7665) DEBUG: presence [notify.c:115]: printf_subs(): pres_uri: 
sip:c.ve...@albourne.com
14(7665) DEBUG: presence [notify.c:116]: printf_subs(): 
watcher_user@watcher_domain: c.ve...@albourne.com
14(7665) DEBUG: presence [notify.c:117]: printf_subs(): to_user@to_domain: 
provision...@albourne.com
14(7665) DEBUG: presence [notify.c:118]: printf_subs(): from_user@from_domain: 
c.ve...@albourne.com
14(7665) DEBUG: presence [notify.c:119]: printf_subs(): callid/from_tag/to_tag: 
1-3002@127.0.1.1/1/a6a1c5f60faecf035a1ae5b6e96e979a-1030
14(7665) DEBUG: presence [notify.c:120]: printf_subs(): local_cseq/remote_cseq: 
0/1
14(7665) DEBUG: presence [notify.c:121]: printf_subs(): local_contact/contact: 
sip:192.168.88.85:5060;transport=tcp/sip:c.vella@192.168.88.179:59206;transport=tcp
14(7665) DEBUG: presence [notify.c:122]: printf_subs(): record_route:
14(7665) DEBUG: presence [notify.c:123]: printf_subs(): sockinfo_str: 
tcp:192.168.88.85:5060
14(7665) DEBUG: presence [notify.c:125]: printf_subs(): event: ua-profile

Re: [SR-Users] kamailio 4 with asterisk

2016-02-15 Thread Daniel Tryba
On Mon, Feb 15, 2016 at 05:35:26PM +0100, Sébastien Brice wrote:
> this one (written by Daniel)
> http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb
> 
> maybe a bit outdated but still consistent ? 
> 
> the thing i am really stuck with (and concerning real-time) is that
> none of my extensions (from asterisk CLI) are online:

What the tutorial implements is:
-end users register with kamailio with a challenge/response
-if succesful: forward the register request to asterisk
-asterisk accepts the register without any authentication

If you did everything that is mentioned in the tutorial, it should work
regardless of versions used for kamailio/asterisk(if you use chan_sip).

You have to debug whether registers are sent to asterisk and what the
response is. ngrep -d any port 5060 / asterisk console "sip set debug
on"


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 4 with asterisk

2016-02-15 Thread Sébastien Brice
this one (written by Daniel) 
http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb

maybe a bit outdated but still consistent ? 

the thing i am really stuck with (and concerning real-time) is that none of my 
extensions (from asterisk CLI) are online:

ns3325046*CLI> sip show peers
Name/username HostDyn 
Forcerport ComediaACL Port Status  Description  
Realtime
102/102   (Unspecified)D  Auto (No) 
 No 0Unmonitored  Cached RT
103/103   (Unspecified)D  Auto (No) 
 No 0Unmonitored  Cached RT
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]

that drives asterisk crazy ! and logger reports: app_dial.c:2411 
dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber 
absent) every time i place a call.

The tutorial written by daniel mention a channel configuration pretty minimal:

INSERT INTO sipusers (name, defaultuser, host, sippasswd, fromuser, fromdomain, 
mailbox)
  VALUES ('102', '102', 'dynamic', '102', '102', 'yoursip.com', '102');

and since there's no context associated to the 102 extension i cant figure out 
where that channel enter the dialplan ? [public] [LocalSet] [default] 

and a dialplan
exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _1XX,n,Voicemail(${EXTEN},u)
exten => _1XX,n,Hangup
exten => _1XX,101,Voicemail(${EXTEN},b)
exten => _1XX,102,Hangup

i am sorry to bother you with issues more asterisk oriented than kamailio.

By the way i took a good start with kamailio as it seems to work flawlessly on 
my system.

thx you.


On Mon, Feb 15, 2016 at 12:26:06PM +0100, Sébastien Brice wrote:
> Hi Everyone, i like the way this tutorial explain asterisk and kamailio 
> integration.

Which tutorial?

> the only thing i missed is asterisk behaviors'r regarding sip registration ?

That was a part of a tutorial I once saw. In essence asterisk uses the
kamailio database, UA registers on kamailio and is stored there,
asterisk sees the same data (realtime).




Sébastien BRICE VoIP, Support et Intégration

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] no pkg memory left

2016-02-15 Thread Gholamreza Sabery
I am using Kamailio 4.3.4.

On Mon, Feb 15, 2016 at 5:10 PM, ycaner  wrote:

> Hello;
> i think there is a memory leak. could you write kamailio Version.
> And can you active memlog and mem_summary. You can find it how can you use
> it  here  http://www.kamailio.org/wiki/cookbooks/4.3.x/core
> 
>
>
>
>
>
> --
> View this message in context:
> http://sip-router.1086192.n5.nabble.com/no-pkg-memory-left-tp145758p145762.html
> Sent from the Users mailing list archive at Nabble.com.
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] no pkg memory left

2016-02-15 Thread ycaner
Hello;
i think there is a memory leak. could you write kamailio Version.
And can you active memlog and mem_summary. You can find it how can you use
it  here  http://www.kamailio.org/wiki/cookbooks/4.3.x/core
  





--
View this message in context: 
http://sip-router.1086192.n5.nabble.com/no-pkg-memory-left-tp145758p145762.html
Sent from the Users mailing list archive at Nabble.com.

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 4 with asterisk

2016-02-15 Thread Daniel Tryba
On Mon, Feb 15, 2016 at 12:26:06PM +0100, Sébastien Brice wrote:
> Hi Everyone, i like the way this tutorial explain asterisk and kamailio 
> integration.

Which tutorial?

> the only thing i missed is asterisk behaviors'r regarding sip registration ?

That was a part of a tutorial I once saw. In essence asterisk uses the
kamailio database, UA registers on kamailio and is stored there,
asterisk sees the same data (realtime).


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamctl add VS kamctl ul add with interacted with SIPML

2016-02-15 Thread kssyrr

  
  
Thank you Daniel,
I'm aware of that, well, almost...
I was looking for a way to create a temporary subscriber and thought
kamctl ul add
would be the solution.
How can one create a temporary subscriber, (a temporary user for
authentication purposes with username and password) without having
to write to the DB?

Kobie

On 02/15/2016 12:36 PM,
  Daniel-Constantin Mierla wrote:


  
  Hello,
  
  the 'kamctl add ...' adds a subscriber profile (a permanent user
  for authentication purposes with username and password).
  
  The 'kamctl ul ...' is doing user location management, so it adds
  a contact for a user.
  
  The two commands are doing different operations, as they are
  designed for different purposes.
  
  Cheers,
  Daniel
  
  On 15/02/16 10:03, kssyrr wrote:
  
  



 Hello,
 
  When I load a page with SIPml-api and run some php with
  'kamctl add $username' command, the sip user is created by the
  SIPml-api. (user created permanently inside the DB)
  When I load the same page with 'kamctl ul add
  '
  command, the sip user is Not created by the SIPml-api, but
  rather, it is being created by Kamailio mi (user created
  temporarily in the usrloc table - memory).
  Any idea why? What is the difference between kamctl add &
  kamctl ul add with regard to SIPml-api?
  
  
  kamctl ul show:
  1. created with kamctl add (created actually by SIPml)
  
  AOR:: buyer_1455193937827
          Contact:: sips:buyer_1455193937827@df7jal23ls0d.invalid;rtcweb-breaker=no;transport=wss
  Q=
              Expires:: 32048
              Callid:: 906095b6-2c0b-d32a-a53b-3849c9283373
              Cseq:: 32534
              User-agent:: n/a
              Path:: 
              State:: CS_NEW
              Flags:: 0
              Cflag:: 0
              Socket:: udp:192.99.32.50:5060
              Methods:: 4294967295
              Ruid:: uloc-56bb4c0c-14d5-c2
              Reg-Id:: 0
              Last-Keepalive:: 1455193940
              Last-Modified:: 1455193940
  
  2. created with kamctl ul add (and ignored by SIPml client)
  
  AOR:: buyer_1455198121667
          Contact:: sips:buyer_1455198121...@commodisee.com
  Q=1
              Expires:: 893
              Callid:: 3oar3ww1zsn5qhzp...@kamailio.mi
              Cseq:: 34
              User-agent:: SIP Router MI Server
              Path:: 

[SR-Users] no pkg memory left

2016-02-15 Thread Gholamreza Sabery
Hello. I am seeing the following error repeating again and again in the log
file:

 /sbin/kamailio[14510]: ERROR: registrar [reply.c:199]: build_contact(): no
pkg memory left

I am using 64MB of SHM memory and 8MB of PKG memory.

What is the reason for this error? How to solve it?
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 4 with asterisk

2016-02-15 Thread Sébastien Brice
Hi Everyone, i like the way this tutorial explain asterisk and kamailio 
integration.

the only thing i missed is asterisk behaviors'r regarding sip registration ?

I tryed to place a call between 102 and 103 extensions and experimenting an 
issue

Asterisk tells me that the subscriber is absent and I'm sent directly to 
voicemail !

 -- Executing [103@public:1] Dial("SIP/102-0001", "SIP/103") in new stack
[Feb 14 21:00:15] WARNING[19444][C-0001]: app_dial.c:2411 dial_exec_full: 
Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)

ns3325046*CLI> sip show peers
Name/username HostDyn 
Forcerport ComediaACL Port Status  Description  
Realtime
102/102   (Unspecified)D  Auto (No) 
 No 0Unmonitored  Cached RT
103/103   (Unspecified)D  Auto (No) 
 No 0Unmonitored  Cached RT
2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline]

apart that my sip.conf and extensions.conf are very minimal:

[LocalSets]
exten => _1XX,1,Dial(SIP/${EXTEN})
exten => _1XX,n,Voicemail(${EXTEN},u)
exten => _1XX,n,Hangup
exten => _1XX,102,Voicemail(${EXTEN},b)
exten => _1XX,103,Hangup

[general]
context=LocalSets ; Default context for incoming calls. 
Defaults to 'default'
rtcachefriends=yes ; Cache realtime friends by adding them to the 
internal list

i did INSERT TO the users in mysql tables (sipusers, sipregs and voicemail) and 
registering extensions from UA works ok (i am using jitsi)

Whats wrong with my setup ?

thank you

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamctl add VS kamctl ul add with interacted with SIPML

2016-02-15 Thread kssyrr

  
  

 Hello,
 
  When I load a page with SIPml-api and run some php with 'kamctl
  add $username' command, the sip user is created by the SIPml-api.
  (user created permanently inside the DB)
  When I load the same page with 'kamctl ul add
  '
  command, the sip user is Not created by the SIPml-api, but rather,
  it is being created by Kamailio mi (user created temporarily in
  the usrloc table - memory).
  Any idea why? What is the difference between kamctl add &
  kamctl ul add with regard to SIPml-api?
  
  
  kamctl ul show:
  1. created with kamctl add (created actually by SIPml)
  
  AOR:: buyer_1455193937827
          Contact:: sips:buyer_1455193937827@df7jal23ls0d.invalid;rtcweb-breaker=no;transport=wss
  Q=
              Expires:: 32048
              Callid:: 906095b6-2c0b-d32a-a53b-3849c9283373
              Cseq:: 32534
              User-agent:: n/a
              Path:: 
              State:: CS_NEW
              Flags:: 0
              Cflag:: 0
              Socket:: udp:192.99.32.50:5060
              Methods:: 4294967295
              Ruid:: uloc-56bb4c0c-14d5-c2
              Reg-Id:: 0
              Last-Keepalive:: 1455193940
              Last-Modified:: 1455193940
  
  2. created with kamctl ul add (and ignored by SIPml client)
  
  AOR:: buyer_1455198121667
          Contact:: sips:buyer_1455198121...@commodisee.com
  Q=1
              Expires:: 893
              Callid:: 3oar3ww1zsn5qhzp...@kamailio.mi
              Cseq:: 34
              User-agent:: SIP Router MI Server
              Path:: 

Re: [SR-Users] uac module configuration

2016-02-15 Thread Daniel-Constantin Mierla
Hello,

can you set the debug=4 and then also use debugger module with cfg trace
enabled (see the readme of the debugger module), then run a test, look
at syslog messages to see what happens. Log emssages should be in
/var/log/syslog or /var/log/messages.

Cheers,
Daniel

On 12/02/16 10:20, Andrew Tan wrote:
> Hello,
>
> Submit a ticket in GitHub apologize about that I should have sent my
> question here. 
> I would like some help in configuring the uac module to route to an
> gateway without specifically setting the URI-domain from the UAC. I
> would like to set change it in the Kamailio side.
>
> Currently I use uac_auth on failure route. All is working if I set the
> URI from on the client to x...@gatewayaddress.com
> . But if I just dial just the number as
> is which translate to x...@kamailioserver.com
>  the invite doesnt go anywhere. 
>
>
> My failure route is like so
>
> failure_route[MANAGE_FAILURE] {
>
>xlog("DEBUG: MANAGE FAILURE ROUTE: ");
>
>if ($T_reply_code == "407")  # there's also 401
> {
>
> $avp(arealm) = GATEWAY;
> $avp(auser) = USERNAME;
> $avp(apass) = PASSWORD;
>  
>
> #$ru = "sip:" + $rU + "@" + $sel(cfg_get.pstn.gw_ip) + ":" +
> $sel(cfg_get.pstn.gw_port);
> #rewritehost("sip.ca.didlogic.net ");
>
> uac_auth();
> 
> rtpengine_offer("force trust-address replace-origin
> replace-session-connection ICE=remove RTP/AVP");
> route(NATMANAGE);
> route(RELAY);
> exit;
> }
> }
>
> Thank you
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR

2016-02-15 Thread Alexey V. Panfilov
15.02.2016 11:11, Juha Heinanen wrote:
> Alexey V. Panfilov writes:
> 
>> It's a pity. May I ask (as feature request) to add it to the future
>> version of Kam?
> 
> I currently don't need such a feature.  It might be possible to
> implement it by adding target_id field to struct target and to struct
> matched_gw_info. Then add_gws_into_avps() function could include the id
> in gw_uri_avps.  Feel free to do it.
> 
> -- Juha

I'll try to do it by myself.

Thanks.

-- 
Best regards,
Alexey V. Panfilov


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] LCR

2016-02-15 Thread Juha Heinanen
Alexey V. Panfilov writes:

> It's a pity. May I ask (as feature request) to add it to the future
> version of Kam?

I currently don't need such a feature.  It might be possible to
implement it by adding target_id field to struct target and to struct
matched_gw_info. Then add_gws_into_avps() function could include the id
in gw_uri_avps.  Feel free to do it.

-- Juha


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users