Hello Derrick,

in this commit:
79ad018 b/f: add headers to outgoing requests as intended

a bug was fixed which may be the reason this has not worked for you.

Best Regards
Stefan

o Derrick Bradbury on 01/17/2012 06:09 PM:
Hey there...Thanks!

I  Tried that.. still no headers..

I'm actually using the git trunk..
[root@voipmonitor sems]# sems -v
Sip Express Media Server (1.5-0dev-294-g1042b0f (x86/linux))


is there a module I need to include in sems.conf or at the top of the DSM file?

________________________________________
From: Emil Kroymann [[email protected]]
Sent: Tuesday, January 17, 2012 5:30 AM
To: Derrick Bradbury
Cc: [email protected]
Subject: Re: [Sems] Adding a header...

This works for me, if I add carriage return and line feed
to the added headers, like this:

   set(b_leg_hdrs="X-Call-Source: MEDIA\r\n");

Also, you might have missed the semicolon behind the
set(b_leg_hdrs=...) statement.

Regards,
Emil

Am Mon, 16 Jan 2012 19:42:05 +0000
schrieb Derrick Bradbury<[email protected]>:

I'm trying to add a header in an outbound invite with the following
code:

    set(b_leg_caller=@user);
    set(b_leg_callee=$number);
    set(b_leg_domain=$domain);
    set(b_leg_app=followme_callee);
    set(b_leg_var.a_ltag=@local_tag);
    set(b_leg_hdrs=X-Call-Source: MEDIA)
    logAll(2);
    dlg.dialout(b_leg);



And no matter what I'm doing, the header does not appear in the
outbound invite. I've tried the same thing in a B2B, and no headers...

In the trace, I can see the headers:
[#b68fbb90/9652] [execute, ModDlg.cpp:252] DEBUG: placing UAC call:
user<12345>, app<followme_callee>, ruri
<sip:[email protected]>, from<<sip:[email protected]>>
from_uri<sip:[email protected]>, to
<<sip:[email protected]>>, ltag<>, hdrs<X-Call-Source:
MEDIA>, auth_user<>, auth_pwd<not shown>

and the generated invite:

[#b68fbb90/9652] [parse_via_params, parse_via.cpp:548] DEBUG:
has_rport: 1 [#b68fbb90/9652] [send_request, trans_layer.cpp:889]
DEBUG: Sending to XXX.XXX.XXX.XXX:5060<INVITE
sip:[email protected] SIP/2.0 Via:...>  [#b68fbb90/9652]
[send, transport.cpp:98] DEBUG: send  msg --++--
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP XXX.XXX.XXX.XXX:5555;branch=z9hG4bKqmomnafT;rport
From:
<sip:[email protected]>;tag=47B7D16E-4F1432BD00049FFC-B68FBB90
To:<sip:[email protected]>  CSeq: 10 INVITE
Call-ID: 7DAA759A-4F1432BD0004A002-B68FBB90
Contact:<sip:[email protected]:5555>
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 199

v=0
o=sems 1 1 IN IP4 XXX.XXX.XXX.XXX
s=sems
c=IN IP4 XXX.XXX.XXX.XXX
t=0 0
m=audio 10000 RTP/AVP 0 8 96
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=sendrecv
--++--


Am I missing something?

Thanks,
Derrick






--
Emil Kroymann
VoIP Services Engineer

Email: [email protected]
Tel: +49-30-203899885
Mobile: +49-176-38389303

ISACO GmbH
Kurfürstenstraße 79
10787 Berlin
Germany

Amtsgericht Charlottenburg, HRB 112464B
Geschäftsführer: Daniel Frommherz

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems



--
tel:+491621366449
sip:[email protected]
mailto/xmpp:[email protected]
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to