Hi guys,
Sorry for the question but Its not clear to me using json_path and the jansson module how to get the contents of a response containing an array.
Please see the returned response below that I am getting on kamailio;
{"status":"success","destination"[{"msisdn":"4412345566","route":"Carrier1"}],"maxduration":"60","source":"447777777","message_id":"c41c1823aafb80f44620f4cdc6802c0d"}
I can access any of the fields status,destination,maxduration,source,message_id fine, however you will notice with destination it has an array (as multiple destinations with other queries could return more than one choice).
So currently when I do jansson_get_field("$http_rb", "destination", "$var(mapdestination)"); I get;
[{"msisdn":"447107110194","route":"carrier1"}]
How do I get into the contents of the array in the first place so I can return the msisdn value itself, and the route?
This is not a problem if its not an array, however if the result is contained within [] how do I indicate the path?
I have tried destination[0], destination.msisdn with no luck, and Im sure I am missing something so any advice would be great.
Thanks
Jon
Hello,
now that the summer in the northern hemisphere is gone and many of us
returned at the work, I am considering to release a new version of
Kamailio out of the latest stable branch 4.4. The plan is to have it out
next week, either on Wednesday Sep 14 or Thursday, the following day.
If the are issues not reported on the bug tracker from github project,
it is better to open one item. Do it also if you reported something on
sr-users or sr-dev in the past two months and it is not actual
discussion about it, likely it was forgotten or not noticed during the
holidays and digesting the archive is going to take a while.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.orghttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hello,
we are building a new SIP service composed by a 2 SIP Proxies and 2 SIP
Registrars. There is only one proxy active (controlled by keepalived).
To secure our SIP infra, we have decided to publish a TLS public interface
on the proxy side. The SIP registrar will not be reachable from the outside,
so we have added a provate interface on the SIP proxy and another one on the
SIP registrar (192.168.1.x).
In brief:
SIP Proxy, 2 I/F, 213.xxx.xxx.xxx (TLS public) and 192.168.1.x (UDP private)
SIP Registrar, 1 I/F, 192.168.1.x (UDP private).
Is this architecture possible with kamailio? We tried to implement this, but
it seems that all requests incoming from the public IP address are correctly
routed to the SIP registrar, but with the public IP instead of the private
one, resulting in the impossibility to send the SIP requests to the
registrar. Should we add a VIA toute in the SIP message before forwarding it
to the SIP registrar? How can this be done?
Thx for your help
Giovanni
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-as-Proxy-with-public-and-p…
Sent from the Users mailing list archive at Nabble.com.
Hello there,
I'm facing some issues trying to get the attributes from notify Body that
contains information that i need for my calls
.
First i save the $rb into $var then i try to replace the characters #012
that seems to be the separator of all attributes in the body, i have tried
it using s.select, s.strip, s.replace but without any success in all of
them.
The body msg is something like this:
Calling-Name-Status: available#012Calling-Name: "teste XX" <
sip:XXXXXXXXX@domain.com>#012Presentation-Indicator: allowed
Anyone have any idea how can I get the value of each attribute:
e.g:
Calling-Name-Status: available
Calling-Name: "teste XX" <sip:XXXXXXXXX@domain.com>
Presentation-Indicator: allowed
Best Regards
--
José
Hi,
I currently have a situation with my Kamailio servers sitting in
production, the folder containing all configuration files at
/etc/kamailio was deleted from the server and there is not backup. Is
there a possibility to show or dump the current running configuration
into a file so I could restore the configuration file from it.
If it happens these servers get restarted then we are going to be in
real trouble.
Thanks for your help
Kind regards,
Albert T.
Jesus Tovar | Senior Network Engineer | The Summit Group
jtovar(a)thesummitgroup.com.au
thesummitgroup.com.au
1300 049 749
Level 1, 39 Railway Road, Blackburn VIC 3130
The Summit Group
Hi,
I have installed Kamailio-4.4.2 and radiusclient-ng-0.5.6 for Radius Authentication to a Free Radius Server.
I have used the steps in http://www.kamailio.org/docs/openser-radius-1.0.x.html to enable Radius Authentication for Kamailio-4.4.2.
However, when I restart kamailio and my SIP phone register to Kamailio, Kamailio did not Radius Authenticate to Free Radius Server.
Can anyone advise me on other document for Radius Authentication for Kamailio ?
Thanks.
Regards,
Kwang Mien
Hello everyone!
I've been playing around with the pua_dialoginfo. I noticed that the From- and To-Tags are only included in the PUBLISH's dialog-info of the "early" state.
This is also true if include_tags of pua_dialoginfo is explicitly set to '1'.
The reason for this behaviour is probably that in pua_dialoginfo.c in the function __dialog_sendpublish() the call to dialog_publish_multi() only happens with the tag parameters set for the "early" state. For all other dialog states the tag parameters are statically set to '0'.
Even though the local- and from-tags are optional I tend to regard this as a bug.
I would have expected for the tags to be included in the dialog-info for all states when include_tags is set.
Or is there a reason for this behaviour?
Best regards
Stefan
Hello,
I can only see the 3GPP specification mentioned in ims_qos module. Please
have the other IMS modules also updated with the respective 3gpp versions.
Thanks,
Owais
The best way to see what is happening is to capture some packets on the
Kamailio system on which calls happen and see if any IP address or port
number issues exist in body of SIP messages or not. You can simple use
Wireshark to see what is going on.
Regards
On Mon, Sep 12, 2016 at 4:58 PM, Marino Mileti <marino.mileti(a)alice.it>
wrote:
> Hi guys,
>
>
>
> i'm going in trouble with multinat scenario and Kamailio J
>
>
>
> I've this scenario...
>
>
>
> Two kamailio boxes with the same configuration (KAM_A and KAM_B). Each box
> has a WIFI in AP_MODE with the same address (but different SSID obviously)
> 192.168.254.1. Finally there are 2 clients...CLIENT_1 connected to wifi
> with KAM_A, and CLIENT_2 connected using wifi with KAM_B. Each box has an
> instance of RTPEngine configured.
>
> KAM_A & KAM_B are also connected using wired connection with other clients
> in order to allow that a calls to KAM_B (or KAM_A) generate a forking
> scenario and all clients connected starts to RINGS (wired & wireless client)
>
>
>
> The mobile client connected on KAM_A makes a call to KAM_B... the forking
> scenario starts and all clients on KAM_B starts to ring.
>
> If any wired client pick up the call everything works fine. If a wireless
> client pick up the call...no media L
>
>
>
> Is it possible? Should I've to instruct RTPENGINE in any particular mode?
>
>
>
>
>
> *Marino Maria Mileti*
>
> *marino.mileti(a)alice.it <marino.mileti(a)alice.it>*
>
>
>
> *[image: cid:006a01cb6b0e$67eecdae$_CDOSYS2.0]**Reduce your energy
> consumption and keep polar bears on ice!*
>
>
>
>
> ------------------------------
> [image: Avast logo]
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai…>
>
> Questa e-mail è stata controllata per individuare virus con Avast
> antivirus.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai…>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users(a)lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
Hi guys,
i'm going in trouble with multinat scenario and Kamailio J
I've this scenario...
Two kamailio boxes with the same configuration (KAM_A and KAM_B). Each box
has a WIFI in AP_MODE with the same address (but different SSID obviously)
192.168.254.1. Finally there are 2 clients...CLIENT_1 connected to wifi with
KAM_A, and CLIENT_2 connected using wifi with KAM_B. Each box has an
instance of RTPEngine configured.
KAM_A & KAM_B are also connected using wired connection with other clients
in order to allow that a calls to KAM_B (or KAM_A) generate a forking
scenario and all clients connected starts to RINGS (wired & wireless client)
The mobile client connected on KAM_A makes a call to KAM_B... the forking
scenario starts and all clients on KAM_B starts to ring.
If any wired client pick up the call everything works fine. If a wireless
client pick up the call...no media L
Is it possible? Should I've to instruct RTPENGINE in any particular mode?
Marino Maria Mileti
<mailto:marino.mileti@alice.it> marino.mileti(a)alice.it
cid:006a01cb6b0e$67eecdae$_CDOSYS2.0Reduce your energy consumption and keep
polar bears on ice!
---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus