<div><div>
<div>
<p>Thanks for your response! I’ll give this solution a try and see if it works for my situation.</p></div></div></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 31 Jan 2025 at 3:31 PM, <<a href="mailto:users-request@lists.opensips.org">users-request@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Send Users mailing list submissions to<br>
<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@lists.opensips.org" target="_blank">users-request@lists.opensips.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@lists.opensips.org" target="_blank">users-owner@lists.opensips.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Push Notification: fr_inv_timeout and t_wait_for_branches<br>
and 480 (inderjeet sharma)<br>
2. Re: Push Notification: fr_inv_timeout and t_wait_for_branches<br>
and 480 (Prathibha B)<br>
3. Re: Push Notification: fr_inv_timeout and t_wait_for_branches<br>
and 480 (Bogdan-Andrei Iancu)<br>
4. Re: SIP Push Notification (Bogdan-Andrei Iancu)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 31 Jan 2025 14:06:10 +0530<br>
From: inderjeet sharma <<a href="mailto:inder.itpro@gmail.com" target="_blank">inder.itpro@gmail.com</a>><br>
To: <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] Push Notification: fr_inv_timeout and<br>
t_wait_for_branches and 480<br>
Message-ID:<br>
<CAOAEC9HOtte7TSG8jSgiXWJAG=<a href="mailto:FzBXQxmogsETZKJ1YMP6q3_A@mail.gmail.com" target="_blank">FzBXQxmogsETZKJ1YMP6q3_A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi john,<br>
<br>
I’m stuck in the same situation. By any chance, did you find a solution to<br>
this issue?<br>
<br>
I just want to reject the call immediately when I receive a 480 response<br>
from the registered device, instead of waiting until fr_inv_timeout.<br>
Thanks<br>
Inderjeet<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20250131/373fb0d1/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20250131/373fb0d1/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 31 Jan 2025 15:00:46 +0530<br>
From: Prathibha B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>><br>
To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
Subject: Re: [OpenSIPS-Users] Push Notification: fr_inv_timeout and<br>
t_wait_for_branches and 480<br>
Message-ID:<br>
<CAJh_-cB0HehB0n5=4z2fvJyk0U96mwiR5Zx=Ke2=<a href="mailto:aWwkKpsV6Q@mail.gmail.com" target="_blank">aWwkKpsV6Q@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
No, I didn't get any solution.<br>
<br>
On Fri, 31 Jan 2025 at 14:09, inderjeet sharma <<a href="mailto:inder.itpro@gmail.com" target="_blank">inder.itpro@gmail.com</a>><br>
wrote:<br>
<br>
> Hi john,<br>
><br>
> I’m stuck in the same situation. By any chance, did you find a solution to<br>
> this issue?<br>
><br>
> I just want to reject the call immediately when I receive a 480 response<br>
> from the registered device, instead of waiting until fr_inv_timeout.<br>
> Thanks<br>
> Inderjeet<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
-- <br>
Regards,<br>
B.Prathibha<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20250131/43cb2ce0/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20250131/43cb2ce0/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 31 Jan 2025 11:55:29 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>, Prathibha<br>
B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>><br>
Subject: Re: [OpenSIPS-Users] Push Notification: fr_inv_timeout and<br>
t_wait_for_branches and 480<br>
Message-ID: <<a href="mailto:ec844fa2-fe98-44ef-bbb9-1d4f6f47d311@opensips.org" target="_blank">ec844fa2-fe98-44ef-bbb9-1d4f6f47d311@opensips.org</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
Hi,<br>
<br>
check this <br>
<a href="https://opensips.org/html/docs/modules/3.4.x/tm.html#func_t_wait_no_more_branches" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.4.x/tm.html#func_t_wait_no_more_branches</a><br>
<br>
or use the param for <br>
<a href="https://opensips.org/html/docs/modules/3.4.x/tm.html#func_t_wait_for_new_branches" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.4.x/tm.html#func_t_wait_for_new_branches</a><br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
<a href="https://www.opensips-solutions.com" rel="noreferrer" target="_blank">https://www.opensips-solutions.com</a><br>
<a href="https://www.siphub.com" rel="noreferrer" target="_blank">https://www.siphub.com</a><br>
<br>
On 31.01.2025 11:30, Prathibha B wrote:<br>
> No, I didn't get any solution.<br>
><br>
> On Fri, 31 Jan 2025 at 14:09, inderjeet sharma <<a href="mailto:inder.itpro@gmail.com" target="_blank">inder.itpro@gmail.com</a>> <br>
> wrote:<br>
><br>
> Hi john,<br>
><br>
> I’m stuck in the same situation. By any chance, did you find a<br>
> solution to this issue?<br>
><br>
> I just want to reject the call immediately when I receive a 480<br>
> response from the registered device, instead of waiting until<br>
> fr_inv_timeout.<br>
><br>
> Thanks<br>
> Inderjeet<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
><br>
> -- <br>
> Regards,<br>
> B.Prathibha<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20250131/427ae71e/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20250131/427ae71e/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 31 Jan 2025 12:00:16 +0200<br>
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>, Prathibha<br>
B <<a href="mailto:prathibhab.tvm@gmail.com" target="_blank">prathibhab.tvm@gmail.com</a>><br>
Subject: Re: [OpenSIPS-Users] SIP Push Notification<br>
Message-ID: <<a href="mailto:20e782ee-b153-40f1-b441-4cc58e3bafb2@opensips.org" target="_blank">20e782ee-b153-40f1-b441-4cc58e3bafb2@opensips.org</a>><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
The error has nothing to do with PN, but with the way you use the <br>
rest_post() function. The error log is 100% clear - the third param you <br>
pass to the function is not a string!<br>
<br>
Regards,<br>
<br>
Bogdan-Andrei Iancu<br>
<br>
OpenSIPS Founder and Developer<br>
<a href="https://www.opensips-solutions.com" rel="noreferrer" target="_blank">https://www.opensips-solutions.com</a><br>
<a href="https://www.siphub.com" rel="noreferrer" target="_blank">https://www.siphub.com</a><br>
<br>
On 30.01.2025 09:25, Prathibha B wrote:<br>
> this is my route for sending Push Notification:<br>
><br>
> route [PN_SEND]<br>
> {<br>
> # send a PN using, for example, exec or rest_client<br>
> # Define FCM URL<br>
> $var(fcm_url) = <br>
> "<a href="https://fcm.googleapis.com/v1/projects/xxx/messages:send" rel="noreferrer" target="_blank">https://fcm.googleapis.com/v1/projects/xxx/messages:send</a> <br>
> <<a href="https://fcm.googleapis.com/v1/projects/asterisk-push-notificaiton/messages:send" rel="noreferrer" target="_blank">https://fcm.googleapis.com/v1/projects/asterisk-push-notificaiton/messages:send</a>>";<br>
><br>
> # Set HTTP headers<br>
> rest_append_hf("Authorization: Bearer ya29.c.c0AS...");<br>
> #rest_append_hf("Content-Type: application/json");<br>
> rest_append_hf("Content-Type: \"application/json\"");<br>
><br>
> # Create JSON payload<br>
> $var(json_payload) = '{\"message\": {\"token\": <br>
> \"xxx\",\"notification\": {\"title\": \"Notification Title\",\"body\": <br>
> \"Notification Body\"}}}';<br>
><br>
> # Send REST POST request<br>
> if (launch(rest_post($var(fcm_url), "$var(json_payload)", <br>
> $avp(response_body), $avp(response_code)))) {<br>
> xlog("L_INFO", "Push notification sent successfully. Response <br>
> code: $avp(response_code)\n");<br>
> } else {<br>
> xlog("L_ERR", "Failed to send push notification. Response <br>
> code: $avp(response_code)\n");<br>
> }<br>
> }<br>
><br>
> But I get the following error while running Opensips:<br>
> ERROR:rest_client:rest_append_hf_method: header field buffer too small<br>
> Jan 30 12:29:09 ngdcs opensips[102753]: ERROR:core:get_cmd_fixups: <br>
> Variable in param [3] is not a string<br>
> Jan 30 12:29:09 ngdcs opensips[102753]: ERROR:core:do_action: Failed <br>
> to get fixups for launch command <rest_post><br>
><br>
> Can you pls help to resolve the issue?<br>
><br>
> -- <br>
> Regards,<br>
> B.Prathibha<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.opensips.org/pipermail/users/attachments/20250131/6df7996c/attachment.html" rel="noreferrer" target="_blank">http://lists.opensips.org/pipermail/users/attachments/20250131/6df7996c/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Users Digest, Vol 198, Issue 32<br>
**************************************<br>
</blockquote></div></div>