Re: [OpenSIPS-Users] changing callerids

2020-07-09 Thread Diptesh Patel
Hello Vic,

Can you tell me from which route are you trying this function? It only
allows on request route, branch route and failure route. I think you
misunderstood how to use the exported function, let me guide you. It will
not update only the user part of the 'from' uri but works on uri. So you
need to create a custom string like below to fulfill your requirements and
the first argument is for display part not for uri part.

$avp(fromuri) = "sip:" + *$avp(650)* + "@" + $fd;

It should be called only once at initial requests and the
subsequent requests(if you loaded the dialog module and created module or
used forced_dialog in the uri module) and responses(using tm module) will
be automatically updated your 'from uri'.

Refer the below example which helps you to guide how you can use this
function in different use cases.

*$avp(display) = "Jolin";*
*$avp(fromuri) = "sip:+18736352...@myopensipsdomain.com
"*

*REPLACE BOTH display name and uri*
*uac_replace_from("$avp(display)","$avp(fromuri)");*
*e.g. received From: "Vic" >;tag=ca4a1348*
*   sent   From: "Jolin" >;tag=ca4a1348*

REPLACE ONLY display name
*uac_replace_from("$avp(display)","");*
*e.g. received From: "Vic" >;tag=ca4a1348*
*   sent   From: "Jolin" ;tag=ca4a1348*

*REPLACE ONLY uri WITHOUT TOUCHING display name*
*uac_replace_from( ,"$avp(fromuri)");*
*e.g. received From: "Vic" >;tag=ca4a1348*
*   sent   From: "Vic" >;tag=ca4a1348*

REMOVE display and REPLACE uri
*uac_replace_from("","$avp(fromuri)");*
*e.g. received From: "Vic" >;tag=ca4a1348*
*   sent   From: >;tag=ca4a1348*


For more information you can read the uri module documentation here.


*NOTE:* If you're using *3.X.X* version then avoid double quotes for avp
variables.
*e.g. **uac_replace_from($avp(display),$avp(fromuri));*


Thanks & Regards
*Diptesh Patel*
Software Developer
Ecosmob Technologies Ltd,
Ahmedabad
Mo:*+919898962659*


On Fri, Jul 10, 2020 at 12:29 AM Vic Jolin  wrote:

> Hi,
>
> Are there other ways of "changing" callerids for a certain call aside from
> uac_replace_from?
>
> And what is the correct way of doing this?
>
> I have uac_replace_from("$avp(650)", "");
>
> I find it giving errors when I try to update the uri with
>
> sip:$avp(650)@ipadddress:poprt
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-- 
*Disclaimer*
In addition to generic Disclaimer which you have agreed on our 
website, any views or opinions presented in this email are solely those of 
the originator and do not necessarily represent those of the Company or its 
sister concerns. Any liability (in negligence, contract or otherwise) 
arising from any third party taking any action, or refraining from taking 
any action on the basis of any of the information contained in this email 
is hereby excluded.



*Confidentiality*
This communication (including any 
attachment/s) is intended only for the use of the addressee(s) and contains 
information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, 
dissemination, distribution, or copying of this communication is 
prohibited. Please inform originator if you have received it in error.



*Caution for viruses, malware etc.*
This communication, including any 
attachments, may not be free of viruses, trojans, similar or new 
contaminants/malware, interceptions or interference, and may not be 
compatible with your systems. You shall carry out virus/malware scanning on 
your own before opening any attachment to this e-mail. The sender of this 
e-mail and Company including its sister concerns shall not be liable for 
any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer 
problems. 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Make opensips register to VoIP Provider as a trunk with auth

2020-07-09 Thread Ovidiu Sas
Take a look at the uac_registrant module.

Regards,
Ovidiu Sas

On Thu, Jul 9, 2020 at 20:57 Sharad Kumar via Users <
users@lists.opensips.org> wrote:

> Hey guys,
>
> I was just curious that can we make OpenSIPS to register as a SIP endpoint
> to VoIP provider like Twillio. We already using IP based auth in OpenSIPS
> to accept calls but one of our VOIP Provider wants our OpenSIPS SBC to
> register with them as a SIP trunk to get calls.
> Does anyone got make OpenSIPS register to provider before using AUTH or
> Registrar module ?
>
> Thank you
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-- 
VoIP Embedded, Inc.
http://www.voipembedded.com
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Make opensips register to VoIP Provider as a trunk with auth

2020-07-09 Thread Sharad Kumar via Users
Hey guys,

I was just curious that can we make OpenSIPS to register as a SIP endpoint to 
VoIP provider like Twillio. We already using IP based auth in OpenSIPS to 
accept calls but one of our VOIP Provider wants our OpenSIPS SBC to register 
with them as a SIP trunk to get calls.
Does anyone got make OpenSIPS register to provider before using AUTH or 
Registrar module ?

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


Re: [OpenSIPS-Users] OpenSIPS - Log Facility partial working

2020-07-09 Thread Sharad Kumar via Users
Now it's working as expected. Thanks for helping.


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


[OpenSIPS-Users] changing callerids

2020-07-09 Thread Vic Jolin
Hi,

Are there other ways of "changing" callerids for a certain call aside from
uac_replace_from?

And what is the correct way of doing this?

I have uac_replace_from("$avp(650)", "");

I find it giving errors when I try to update the uri with

sip:$avp(650)@ipadddress:poprt
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] create_dialog with P or p flag and TCP reconnection

2020-07-09 Thread Kiselev Fedor

Hi All,

Could you advice me how to use create_dailog with P or p flags if TCP 
session is reconnected ?
Opensips is pinging callee/caller and doesn't know if new REGISTER via a 
TCP connection has arrived and already saved in location table. How to 
force dailog to get to know that new TCP connection is available for 
pinging ?


Thank you!

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


Re: [OpenSIPS-Users] [OpenSIPS 3.1] Stable Release Date

2020-07-09 Thread xaled
Hi Bogdan,

Great news!
Will 3.1 Release also include updated control panel or will it come later?

Thanks,
Xaled

Hello everyone,

On 27th of May we had the beta release for OpenSIPS 3.1 . There was a
lot of extra testing, many reports, a lot of feedback. All these
translated in many fixes that made 3.1 more and more stable by the day.

So, we are almost there :) - heads up, the *OpenSIPS 3.1 LTS stable
release is **scheduled for 22th of July* !

You still have time to fill reports (if the case), to bring your
personal contribution to the value of the 3.1 release.

Otherwise, sit tight , the 3.1 stable is coming !

Best regards,

--
Bogdan-Andrei Iancu

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


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


[OpenSIPS-Users] [OpenSIPS 3.1] Stable Release Date

2020-07-09 Thread Bogdan-Andrei Iancu

Hello everyone,

On 27th of May we had the beta release for OpenSIPS 3.1 . There was a 
lot of extra testing, many reports, a lot of feedback. All these 
translated in many fixes that made 3.1 more and more stable by the day.


So, we are almost there :) - heads up, the *OpenSIPS 3.1 LTS stable 
release is **scheduled for 22th of July* !


You still have time to fill reports (if the case), to bring your 
personal contribution to the value of the 3.1 release.


Otherwise, sit tight , the 3.1 stable is coming !

Best regards,

--
Bogdan-Andrei Iancu

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

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