Commit 6209fafe authored by pintar's avatar pintar
Browse files

new templates

parent 0afe89a7
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -179,6 +179,15 @@ module LibSip_Templates
		  headers := *
		};

		template SipUrl mw_SipUrl_Host(charstring p_host) :=  	// SIP-URL with a calling party number
		{
				scheme := c_sipScheme,  		// contains "sip"
				userInfo:= {userOrTelephoneSubscriber:=*, password:=*},
				hostPort := {host:=p_host, portField:=*},
				urlParameters := *,
				headers := *
		};

		template SipUrl mw_SipUrl_Anonymous :=  	// SIP-URL with a calles party number
		{
		  scheme := c_sipScheme,  		// contains "sip"
@@ -211,6 +220,12 @@ module LibSip_Templates
		  contactParams := *
		};

		template HostPort mw_hostPort(template charstring p_host) :=
		{
		  host  := p_host,
		  portField := *
		};
		
		template StatusLine mw_statusLine1xx   := {sipVersion := c_sipNameVersion, statusCode := (100..199), reasonPhrase := ?};
		template StatusLine mw_statusLine4xx   := {sipVersion := c_sipNameVersion, statusCode := (400..499), reasonPhrase := ?};
		template StatusLine mw_statusLineFinal := {sipVersion := c_sipNameVersion, statusCode := (200..699), reasonPhrase := ?};