Hello Kjeld,
you need to check in the onreply route for the reply result code, not the method name.
Look e.g. in the default cfg reply routes to get the idea.
Cheers,
Henning
Am 12.12.19 um 23:34 schrieb Kjeld Flarup:
Hello
I have a problem with some phone numbers at Telenor. Our door telephone does not reply
with an ACK on the 200 OK.
All I found was a weird SDP response with two "connection information" lines
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): BroadWorks 307119541 1 IN IP4 194.247.61.31
Session Name (s): -
Connection Information (c): IN IP4 194.247.61.31
Time Description, active time (t): 0 0
Session Attribute (a): sendrecv
Media Description, name and address (m): audio 23116 RTP/AVP 8 101
Connection Information (c): IN IP4 194.247.61.31
Media Attribute (a): rtpmap:8 PCMA/8000
Media Attribute (a): rtpmap:101 telephone-event/8000
Media Attribute (a): fmtp:101 0-15
Media Attribute (a): maxptime:40
Media Attribute (a): bsoft:1 image udptl t38
Media Attribute (a): sendrecv
Media Attribute (a): silenceSupp:off - - - -
Media Attribute (a): setup:actpass
To debug, I would like to remove one of the "Connection Information (c): IN IP4
194.247.61.31", to see if this is what confuses the door telephone.
But how do I do that?
I tried with this but nothing happeded
onreply_route[DOOR_MANAGE_REPLY] {
if (is_method("INVITE|SUBSCRIBE"))
{
sdp_remove_line_by_prefix("c=IN IP4 194");
}
return 1;
}
--
--------------------- Med Liberalistiske Hilsner ----------------------
Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
Den ikke akademiske hjemmeside for liberalismen -
www.liberalismen.dk<http://www.liberalismen.dk>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Kamailio Merchandising -
https://skalatan.de/merchandising/
Kamailio services -
https://skalatan.de/services
Henning Westerholt -
https://skalatan.de/blog/