[OpenSIPS-Users] B2BUA append_hf

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Apr 18 16:05:06 UTC 2022


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 
> <http://192.168.0.215:5070> -> 192.168.0.213:5060 
> <http://192.168.0.213:5060>
> INVITE sip:9000 at 192.168.0.213:5060 
> <http://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 at 192.168.0.213:5060 <http://sip:9000@192.168.0.213:5060>
> From: <sip:microsip at 192.168.0.44:5060 
> <http://sip:microsip@192.168.0.44:5060>>;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: <sip:192.168.0.215:5070 <http://192.168.0.215:5070>>
> *X-TESTE: hasta la vista baby*
>
>
>
>
> On Mon, Apr 18, 2022 at 12:50 PM Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     https://www.opensips.org/Documentation/Script-Routes-3-2#local_route
>     <https://www.opensips.org/Documentation/Script-Routes-3-2#local_route>
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        https://www.opensips-solutions.com  <https://www.opensips-solutions.com>
>     OpenSIPS eBootcamp 23rd May - 3rd June 2022
>        https://opensips.org/training/OpenSIPS_eBootcamp_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
>>     <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>>
>>         As per my suggestion, try the local_route
>>
>>         Regards,
>>
>>         Bogdan-Andrei Iancu
>>
>>         OpenSIPS Founder and Developer
>>            https://www.opensips-solutions.com  <https://www.opensips-solutions.com>
>>         OpenSIPS eBootcamp 23rd May - 3rd June 2022
>>            https://opensips.org/training/OpenSIPS_eBootcamp_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
>>>         <bogdan at opensips.org <mailto:bogdan at 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  <https://www.opensips-solutions.com>
>>>             OpenSIPS eBootcamp 23rd May - 3rd June 2022
>>>                https://opensips.org/training/OpenSIPS_eBootcamp_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 at 192.168.0.213:5060
>>>>             <http://sip:9000@192.168.0.213:5060>",
>>>>             "customer,sip:microsip at 192.168.0.44:5060
>>>>             <http://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 at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>>>             http://lists.opensips.org/cgi-bin/mailman/listinfo/users  <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220418/5794bdc8/attachment.html>


More information about the Users mailing list