Hi, Sasmita!
You are right, I've checked now and unfortunately in this case the
siprec module does not send the request headers to B2B. Therefore the
only way you can do this is to "manually" add them in the INVITE caught
by local_route.
Best regards,
Răzvan
On 1/11/19 11:48 AM, Sasmita Panda wrote:
My initial INVITE looks like below :
Request-Line: INVITE sip:[email protected]:5507
<http://sip:[email protected]:5507/> SIP/2.0
Message Header
Via: SIP/2.0/UDP
180.151.95.154:52075;rport;branch=z9hG4bKPjc71c77196989435d8a66406b2f3911e9
Max-Forwards: 70
From:
sip:[email protected]:5507;tag=f4e76f6568f74697b55a865842214362
To: sip:[email protected]:5507
<http://sip:[email protected]:5507/>
Contact: <sip:[email protected]:52075
<http://sip:[email protected]:52075/>>
Call-ID: 7fa9909d3769498380c33e52758eca16
CSeq: 11538 INVITE
X-Proxy: false
Allow: SUBSCRIBE, NOTIFY, REFER, MESSAGE
Supported: replaces, timer
Session-Expires: 3600
Min-SE: 90
User-Agent: WebAstra
X-Info: normal;;A=sip3;C=140;R=4
Content-Type: application/sdp
Content-Length: 225
Message Body
Below is the Invite opesips generate for recording server :
Request-Line: INVITE sip:x.x.x.x:5060 SIP/2.0
Message Header
Via: SIP/2.0/UDP x.x.x.y:5507;branch=z9hG4bK5ad5.d0081b53.0
To: sip:x.x.x.x:5060
From: <sip:x.x.x.x:5060>;tag=204a7ab5593cac3dd64ab293b65e4314-ce21
CSeq: 2 INVITE
Call-ID: B2B.430.6291654.1547195241
Max-Forwards: 70
Content-Length: 1379
User-Agent: OpenSIPS (2.4.3 (x86_64/linux))
Require: siprec
Content-Type: multipart/mixed;boundary=OSS-unique-boundary-42
Contact: <sip:x.x.x.y:5507>
Message Body
Even though I have mentioned the customer_headers parameter still its
not adding . What must be the error ? Is there any issue with siprec
module of opensips-2.4.3 ?
Please do help me .
*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/
On Fri, Jan 11, 2019 at 3:16 PM Sasmita Panda <[email protected]
<mailto:[email protected]>> wrote:
My initial INVITE looks like below :
Request-Line: INVITE sip:[email protected]:5507
<http://sip:[email protected]:5507> SIP/2.0
Message Header
Via: SIP/2.0/UDP
180.151.95.154:52075;rport;branch=z9hG4bKPjc71c77196989435d8a66406b2f3911e9
Max-Forwards: 70
From:
sip:[email protected]:5507;tag=f4e76f6568f74697b55a865842214362
To: sip:[email protected]:5507
<http://sip:[email protected]:5507>
Contact: <sip:[email protected]:52075
<http://sip:[email protected]:52075>>
Call-ID: 7fa9909d3769498380c33e52758eca16
CSeq: 11538 INVITE
X-Proxy: false
Allow: SUBSCRIBE, NOTIFY, REFER, MESSAGE
Supported: replaces, timer
Session-Expires: 3600
Min-SE: 90
User-Agent: WebAstra
X-Info: normal;;A=sip3;C=140;R=4
Content-Type: application/sdp
Content-Length: 225
Message Body
Below is the Invite opesips generate for recording server :
*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/
On Fri, Jan 11, 2019 at 1:42 PM Sasmita Panda <[email protected]
<mailto:[email protected]>> wrote:
X-Info header is coming in the initial Invite , still its not
adding .
Even I am not getting anything in the logs too.
*/Thanks & Regards/*
/Sasmita Panda/
/Senior Network Testing and Software Engineer/
/3CLogic , ph:07827611765/
On Fri, Jan 11, 2019 at 1:38 PM Răzvan Crainea
<[email protected] <mailto:[email protected]>> wrote:
Hello!
Is the X-Info header received in the initial INVITE, or is
it added by
your script? In case it is received, it should be added if
you set it in
the custom_headers parameters. If you add it yourself in
the script, it
won't be added.
Nevertheless, you can modify the INVITE generated by b2b in
local_route
- you can add your header there. Hope this helps!
Best regards,
Razvan
On 1/11/19 10:03 AM, Sasmita Panda wrote:
> Hi All,
>
> version: opensips 2.4.3 (x86_64/linux)
>
> I am using siprec module with orex (3rd party software ) .
> I wanted to send 1 customize header of main dialog to the
dialog getting
> forwarded to recording server .
>
> As I know , opensips acts as a b2b UA , and generate its
own Invite for
> recording server in this case . Its only sending the
default headers and
> wont send any information of the initial dialog .
>
> I have a header X-Info . I wanted to pass this . I have
tried the below
> thing .
>
> loadmodule "b2b_entities.so"
> loadmodule "b2b_logic.so"
> modparam("b2b_logic", "custom_headers", "X-Info")
>
> I have tried to send custom header through b2b_logic ,
but that wont
> work . It wont add the header . What should I do for this ?
>
>
>
>
>
> */ Thanks & Regards/*
> /Sasmita Panda/
> /Senior Network Testing and Software Engineer/
> /3CLogic , ph:07827611765/
>
> _______________________________________________
> Users mailing list
> [email protected] <mailto:[email protected]>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
Meet the OpenSIPS team at the next OpenSIPS Summit:
https://www.opensips.org/events
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
Meet the OpenSIPS team at the next OpenSIPS Summit:
https://www.opensips.org/events
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users