Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Bogdan-Andrei Iancu

Glad it worked :)

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 4/18/22 6:58 PM, Antonio Couto wrote:
Sorry, I am new on Opensips, I did understand when you said 
"local_route", now its working.

Thank very so much for your time.
best regards.

2022/04/18 12:56:29.681936 192.168.0.215:5070 
 -> 192.168.0.213:5060 

INVITE sip:9000@192.168.0.213:5060 
 SIP/2.0

Via: SIP/2.0/UDP 192.168.0.215:5070;branch=z9hG4bKd8e9.12db2f97.0
To: sip:9000@192.168.0.213:5060 
From: >;tag=c6cf02786cfbb0099acf67a3ce978fec

CSeq: 2 INVITE
Call-ID: B2B.332.605219.1650297388
Max-Forwards: 70
Content-Length: 0
User-Agent: OpenSIPS (3.2.5 (x86_64/linux))
Contact: http://192.168.0.215:5070>>
*X-TESTE: hasta la vista baby*




On Mon, Apr 18, 2022 at 12:50 PM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


https://www.opensips.org/Documentation/Script-Routes-3-2#local_route


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/  


On 4/18/22 6:20 PM, Antonio Couto wrote:

OK, but using the request on json that I inform on may email send
ny mi command,
all messages are handle on these routes only:

route[b2b_request]
route[b2b_reply]

there no messages captured on main *route {*

thanks




On Mon, Apr 18, 2022 at 12:03 PM Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:

As per my suggestion, try the local_route

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  

OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/  


On 4/18/22 5:35 PM, Antonio Couto wrote:

Thanks for quick response.

I put on route[b2b_request] and route[b2b_reply] routes, but
I think this model I am trying to use will not work
like you said.

i think I will need to send a complete INVITE from another
application to start b2b from a INVITE message,
so I can preserve this original header on b2b logic module.

thanks a lot.


On Mon, Apr 18, 2022 at 11:16 AM Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:

Hi Antonio,

not sure where you placed the append_hf(), but you need
to place it in the local_route, for original INVITEs.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  

OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/  


On 4/18/22 4:58 PM, Antonio Couto wrote:

It is possible to insert header on outgoing INVITE from
a B2BUA scenario start by mi command
via UDP like this?

letobj =  {
"jsonrpc":"2.0",
"id":"7684",
"method":"b2b_trigger_scenario",
"params":[
"marketing",
"operator,sip:9000@192.168.0.213:5060
",
"customer,sip:microsip@192.168.0.44:5060
",
]
  }
I tried to use append_hf but no effect.
thanks in advance.
Antonio Couto


___
Users mailing list
Users@lists.opensips.org  
http://lists.opensips.org/cgi-bin/mailman/listinfo/users  









___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Antonio Couto
Sorry, I am new on Opensips, I did understand when you said "local_route",
now its working.
Thank very so much for your time.
best regards.

2022/04/18 12:56:29.681936 192.168.0.215:5070 -> 192.168.0.213:5060
INVITE sip:9000@192.168.0.213:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.215:5070;branch=z9hG4bKd8e9.12db2f97.0
To: sip:9000@192.168.0.213:5060
From: ;tag=c6cf02786cfbb0099acf67a3ce978fec
CSeq: 2 INVITE
Call-ID: B2B.332.605219.1650297388
Max-Forwards: 70
Content-Length: 0
User-Agent: OpenSIPS (3.2.5 (x86_64/linux))
Contact: 
*X-TESTE: hasta la vista baby*




On Mon, Apr 18, 2022 at 12:50 PM Bogdan-Andrei Iancu 
wrote:

> https://www.opensips.org/Documentation/Script-Routes-3-2#local_route
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>
> On 4/18/22 6:20 PM, Antonio Couto wrote:
>
> OK, but using the request on json that I inform on may email send ny mi
> command,
> all messages are handle on these routes only:
>
> route[b2b_request]
> route[b2b_reply]
>
> there no messages captured on main *route {*
>
> thanks
>
>
>
>
> On Mon, Apr 18, 2022 at 12:03 PM Bogdan-Andrei Iancu 
> wrote:
>
>> As per my suggestion, try the local_route
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>>
>> On 4/18/22 5:35 PM, Antonio Couto wrote:
>>
>> Thanks for quick response.
>>
>> I put on route[b2b_request] and route[b2b_reply] routes, but I think this
>> model I am trying to use will not work
>> like you said.
>>
>> i think I will need to send a complete INVITE from another application to
>> start b2b from a INVITE message,
>> so I can preserve this original header on b2b logic module.
>>
>> thanks a lot.
>>
>>
>> On Mon, Apr 18, 2022 at 11:16 AM Bogdan-Andrei Iancu 
>> wrote:
>>
>>> Hi Antonio,
>>>
>>> not sure where you placed the append_hf(), but you need to place it in
>>> the local_route, for original INVITEs.
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>>
>>> OpenSIPS Founder and Developer
>>>   https://www.opensips-solutions.com
>>> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>>>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>>>
>>> On 4/18/22 4:58 PM, Antonio Couto wrote:
>>>
>>> It is possible to insert header on outgoing INVITE from a B2BUA scenario
>>> start by mi command
>>> via UDP like this?
>>>
>>>  let obj =  {
>>> "jsonrpc":"2.0",
>>> "id":"7684",
>>> "method":"b2b_trigger_scenario",
>>> "params":[
>>>   "marketing",
>>>   "operator,sip:9000@192.168.0.213:5060",
>>>   "customer,sip:microsip@192.168.0.44:5060",
>>> ]
>>>   }
>>> I tried to use append_hf but no effect.
>>> thanks in advance.
>>> Antonio Couto
>>>
>>>
>>> ___
>>> Users mailing 
>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Bogdan-Andrei Iancu

https://www.opensips.org/Documentation/Script-Routes-3-2#local_route

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 4/18/22 6:20 PM, Antonio Couto wrote:
OK, but using the request on json that I inform on may email send ny 
mi command,

all messages are handle on these routes only:

route[b2b_request]
route[b2b_reply]

there no messages captured on main *route {*

thanks




On Mon, Apr 18, 2022 at 12:03 PM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


As per my suggestion, try the local_route

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/  


On 4/18/22 5:35 PM, Antonio Couto wrote:

Thanks for quick response.

I put on route[b2b_request] and route[b2b_reply] routes, but I
think this model I am trying to use will not work
like you said.

i think I will need to send a complete INVITE from another
application to start b2b from a INVITE message,
so I can preserve this original header on b2b logic module.

thanks a lot.


On Mon, Apr 18, 2022 at 11:16 AM Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:

Hi Antonio,

not sure where you placed the append_hf(), but you need to
place it in the local_route, for original INVITEs.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  

OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/  


On 4/18/22 4:58 PM, Antonio Couto wrote:

It is possible to insert header on outgoing INVITE from a
B2BUA scenario start by mi command
via UDP like this?

letobj =  {
"jsonrpc":"2.0",
"id":"7684",
"method":"b2b_trigger_scenario",
"params":[
"marketing",
"operator,sip:9000@192.168.0.213:5060
",
"customer,sip:microsip@192.168.0.44:5060
",
]
  }
I tried to use append_hf but no effect.
thanks in advance.
Antonio Couto


___
Users mailing list
Users@lists.opensips.org  
http://lists.opensips.org/cgi-bin/mailman/listinfo/users  







___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Antonio Couto
OK, but using the request on json that I inform on may email send ny mi
command,
all messages are handle on these routes only:

route[b2b_request]
route[b2b_reply]

there no messages captured on main *route {*

thanks




On Mon, Apr 18, 2022 at 12:03 PM Bogdan-Andrei Iancu 
wrote:

> As per my suggestion, try the local_route
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>
> On 4/18/22 5:35 PM, Antonio Couto wrote:
>
> Thanks for quick response.
>
> I put on route[b2b_request] and route[b2b_reply] routes, but I think this
> model I am trying to use will not work
> like you said.
>
> i think I will need to send a complete INVITE from another application to
> start b2b from a INVITE message,
> so I can preserve this original header on b2b logic module.
>
> thanks a lot.
>
>
> On Mon, Apr 18, 2022 at 11:16 AM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Antonio,
>>
>> not sure where you placed the append_hf(), but you need to place it in
>> the local_route, for original INVITEs.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>>
>> On 4/18/22 4:58 PM, Antonio Couto wrote:
>>
>> It is possible to insert header on outgoing INVITE from a B2BUA scenario
>> start by mi command
>> via UDP like this?
>>
>>  let obj =  {
>> "jsonrpc":"2.0",
>> "id":"7684",
>> "method":"b2b_trigger_scenario",
>> "params":[
>>   "marketing",
>>   "operator,sip:9000@192.168.0.213:5060",
>>   "customer,sip:microsip@192.168.0.44:5060",
>> ]
>>   }
>> I tried to use append_hf but no effect.
>> thanks in advance.
>> Antonio Couto
>>
>>
>> ___
>> Users mailing 
>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Bogdan-Andrei Iancu

As per my suggestion, try the local_route

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 4/18/22 5:35 PM, Antonio Couto wrote:

Thanks for quick response.

I put on route[b2b_request] and route[b2b_reply] routes, but I think 
this model I am trying to use will not work

like you said.

i think I will need to send a complete INVITE from another application 
to start b2b from a INVITE message,

so I can preserve this original header on b2b logic module.

thanks a lot.


On Mon, Apr 18, 2022 at 11:16 AM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi Antonio,

not sure where you placed the append_hf(), but you need to place
it in the local_route, for original INVITEs.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/  


On 4/18/22 4:58 PM, Antonio Couto wrote:

It is possible to insert header on outgoing INVITE from a B2BUA
scenario start by mi command
via UDP like this?

letobj =  {
"jsonrpc":"2.0",
"id":"7684",
"method":"b2b_trigger_scenario",
"params":[
"marketing",
"operator,sip:9000@192.168.0.213:5060
",
"customer,sip:microsip@192.168.0.44:5060
",
]
  }
I tried to use append_hf but no effect.
thanks in advance.
Antonio Couto


___
Users mailing list
Users@lists.opensips.org  
http://lists.opensips.org/cgi-bin/mailman/listinfo/users  





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Antonio Couto
Thanks for quick response.

I put on route[b2b_request] and route[b2b_reply] routes, but I think this
model I am trying to use will not work
like you said.

i think I will need to send a complete INVITE from another application to
start b2b from a INVITE message,
so I can preserve this original header on b2b logic module.

thanks a lot.


On Mon, Apr 18, 2022 at 11:16 AM Bogdan-Andrei Iancu 
wrote:

> Hi Antonio,
>
> not sure where you placed the append_hf(), but you need to place it in the
> local_route, for original INVITEs.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 23rd May - 3rd June 2022
>   https://opensips.org/training/OpenSIPS_eBootcamp_2022/
>
> On 4/18/22 4:58 PM, Antonio Couto wrote:
>
> It is possible to insert header on outgoing INVITE from a B2BUA scenario
> start by mi command
> via UDP like this?
>
>  let obj =  {
> "jsonrpc":"2.0",
> "id":"7684",
> "method":"b2b_trigger_scenario",
> "params":[
>   "marketing",
>   "operator,sip:9000@192.168.0.213:5060",
>   "customer,sip:microsip@192.168.0.44:5060",
> ]
>   }
> I tried to use append_hf but no effect.
> thanks in advance.
> Antonio Couto
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Bogdan-Andrei Iancu

Hi Antonio,

not sure where you placed the append_hf(), but you need to place it in 
the local_route, for original INVITEs.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 4/18/22 4:58 PM, Antonio Couto wrote:
It is possible to insert header on outgoing INVITE from a B2BUA 
scenario start by mi command

via UDP like this?

letobj =  {
"jsonrpc":"2.0",
"id":"7684",
"method":"b2b_trigger_scenario",
"params":[
"marketing",
"operator,sip:9000@192.168.0.213:5060 
",
"customer,sip:microsip@192.168.0.44:5060 
",

]
  }
I tried to use append_hf but no effect.
thanks in advance.
Antonio Couto


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] B2BUA append_hf

2022-04-18 Thread Antonio Couto
It is possible to insert header on outgoing INVITE from a B2BUA scenario
start by mi command
via UDP like this?

 let obj =  {
"jsonrpc":"2.0",
"id":"7684",
"method":"b2b_trigger_scenario",
"params":[
  "marketing",
  "operator,sip:9000@192.168.0.213:5060",
  "customer,sip:microsip@192.168.0.44:5060",
]
  }

I tried to use append_hf but no effect.
thanks in advance.
Antonio Couto
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Clustering Presence opensips 3.2/3.3 in K8s environment

2022-04-18 Thread Bogdan-Andrei Iancu

Hi Jonathan,

Maybe the k8s layer (the ingress ??) sticks its tails in there - could 
you check at opensips level if the TCP conn is still seen as up ? Use 
the mi list_tcp_conns MI function

https://www.opensips.org/Documentation/Interface-CoreMI-3-2#toc4


Best regard,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 4/13/22 6:08 PM, Jonathan Hunter wrote:


Hi All,

Has anyone managed to get presence working when using an active/active 
opensips setup with k8s ?


Everything works apart from presence, In particular when a websocket 
user disconnects due to a client crash.


I ideally would want to use event_route[E_CORE_TCP_DISCONNECT] to then 
grab the disconnect when it comes in via websockets/tcp, however I 
cant seem to get it to trigger. Could this be due to the underlying 
hooks OpenSIPS uses to interact with with OS with TCP or something else?


As I would use the event route, to then remove the registration from 
the location table, as otherwise I have duplicate entries in both 
location and the presentity list.


Is this something anyone else has encountered?

I have tried using clustering with both presence and pua and have same 
issues, whereby after an unwanted disconnect subsequent NOTIFY 
messages contain more than one id per entity;


entity="sip:61067470a372a031a7495a1a@domain">


id="0x7ffe75896760">openxmlns="urn:ietf:params:xml:ns:pidf" 
id="0x7ffd0716b390">open


I need to stop this occurring ideally, any help much appreciated.

Many thanks

Jon

Sent from Mail  for 
Windows



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Billing And Invoicing for Opensips 3.0

2022-04-18 Thread Alberto
If you need just pdf bills and reports you could use a jasper server.
If you need to manage invoices and payments I don't know, but let me know
if you find something decent.
I landed on astpp a couple of years ago and regret it ever since.

On Mon, 18 Apr 2022, 10:32 HS,  wrote:

> Thanks Alberto.
>
> Just looked at CDRTool - don't think it has invoicing.
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS Summit 2022 - where to take place?

2022-04-18 Thread Bogdan-Andrei Iancu


We are exploring the option of having an *in-person meeting* for this 
year Summit (of course, with the online support too).
And right now we evaluate the possible options as location for the 
*OpenSIPS Summit, September 2022*.


Here is a *quick survey* we run *by 22nd of April* to see what are the 
community's preferences as locations. So please let us know, so we can 
make it possible for you all .


https://bit.ly/3vrWDqd

Best regards,

--
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  https://opensips.org/training/OpenSIPS_eBootcamp_2022/

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Billing And Invoicing for Opensips 3.0

2022-04-18 Thread HS
Thanks Alberto.

Just looked at CDRTool - don't think it has invoicing.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Billing And Invoicing for Opensips 3.0

2022-04-18 Thread Alberto
Stay the hell away from astpp, version 4 it's so full of bugs you won't
believe it.

Maybe cdrtools?

On Mon, 18 Apr 2022, 08:00 HS,  wrote:

> Hi all.
>
> I am looking to add billing + invoicing to the setup. Came across CGrates
> for rate cards etc, but is there a billing + invoicing setup that works
> great with Opensips CDRs?
>
> I have looked at astpp so far and searched quite a bit, but nothing much
> available.
>
> Any suggestions?
>
> Thanks.
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Billing And Invoicing for Opensips 3.0

2022-04-18 Thread HS
Hi all.

I am looking to add billing + invoicing to the setup. Came across CGrates
for rate cards etc, but is there a billing + invoicing setup that works
great with Opensips CDRs?

I have looked at astpp so far and searched quite a bit, but nothing much
available.

Any suggestions?

Thanks.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users